Results 1 to 7 of 7

Thread: File-sharing between Host and Guest OS

  1. #1
    Join Date
    Apr 2007
    Location
    Iceland
    Beans
    35
    Distro
    Ubuntu 9.10 Karmic Koala

    File-sharing between Host and Guest OS

    I've got VirtualBox-2.1 ose installed on my ubuntu desktop and I'm using WindowsXP as the guest os.

    I would like to be able to access files on my Host machine from the Virtual machine!

    Is this possible?

    Edit: How do I mark my threads as solved! I've done it before I believed I went to "Thread tools > Mark thread as solved" but that option isn't there anymore
    Last edited by boglio; March 3rd, 2009 at 05:49 AM.

  2. #2
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: File-sharing between Host and Guest OS

    IMO the easiest way is to use Samba. Samba should work out of the box between guest and host, use host only networking to increase security or use bridged networking.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  3. #3
    Join Date
    Jul 2008
    Location
    Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: File-sharing between Host and Guest OS

    Quote Originally Posted by boglio View Post
    I've got VirtualBox-2.1 ose installed on my ubuntu desktop and I'm using WindowsXP as the guest os.

    I would like to be able to access files on my Host machine from the Virtual machine!
    Imho the easiest is the install openssh-server on the host, and then use WinSCP (http://winscp.sf.net) as client.
    The ip-address would be 10.0.2.2 on your host, in case you're using
    the default NAT network option for your guest VM in VirtualBox.

  4. #4
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,793

    Re: File-sharing between Host and Guest OS

    My favourite quick and dirty sharing tools are Proftpd and Filezilla. Note that Filezilla can also do SFTP to a SSH server. So ssh-server on Ubuntu and Filezilla on Windows is another easy way.

    Cheers,

    Herman

  5. #5
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: File-sharing between Host and Guest OS

    Any network protocol (ssh, sshfs, Samba, NFS, FTP, http) will work and they are as easy to learn as are the "Shared Folders" feature of Virtualbox.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  6. #6
    Join Date
    Sep 2007
    Beans
    587
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: File-sharing between Host and Guest OS

    Here's what i just did.

    From the XP client, install Guest Additions.

    Then under Devices, choose "Shared Folders".

    Choose the appropriate folders.

    Then under windows explorer, map a network drive and click "browse". Select from "Virtualbox shared folders".

    The odd thing for me is the fact that my /home directory worked fine, but it I tried to share my /home/username directory, it refused connection. The interesting part is that I can access my /home/username directory if I simply mount the /home.

  7. #7
    Join Date
    Apr 2007
    Location
    Iceland
    Beans
    35
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: File-sharing between Host and Guest OS

    Thanks for the help guys, I've got things up and running!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •