Share a folder from the host Mac OS to the guest Linux system in VirtualBox


Abhishek Jain:

How to share folders between host (Mac) and guest OS (Ubuntu) in Virtual Box?

Abhishek Jain:

You will need the latest version of VirtualBox (4.3.10) with Guest Additions installed in Ubuntu .

  • After powering off the virtual machine and selecting the virtual machine in VirtualBox, go to: Machine > Settings... > Shared Folders
  • For Folder Path, click the icon to browse for the folder you want to share.
  • For Folder Name, enter a name to describe the share.
  • Click OK and start the virtual machine again.
  • Create a mount point which is basically an empty folder.
  • Launch Terminal and enter: sudo mount -t vboxsf folder_name path_to_mount_pointfolder_name is the name you entered earlier to describe the share.
  • You should now be able to browse the shared folder.

If the installation is difficult, such as the following errors:

mount: wrong fs type, bad option, bad superblock on mydata,
   missing codepage or helper program, or other error
   (for several filesystems (e.g. nfs, cifs) you might
   need a /sbin/mount.<type> helper program)
   In some cases useful info is found in syslog - try
   dmesg | tail  or so

Perform the following steps:

sudo rm /sbin/mount.vboxsf
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf

Related


Share an existing ubuntu folder on the host guest with Virtualbox

impulse I am familiar with directory sharing between Ubuntu guest and host. But now I need to share an existing ubuntu folder with the guest machine. I don't know if and how it can be done. Does anyone have any ideas? Marius Matutiae No, it can't be done in th

Reverse share VirtualBox folder? Guest - host?

Nate Parsons I'm familiar with installing Guest Additions and sharing the host folder with the guest, but is there a way to do the opposite? I have an XP host and Ubuntu 10.10 guest with VBox 4.0.2. In other words, I want the host to have direct access to (at

Share an existing ubuntu folder on the host guest with Virtualbox

impulse I am familiar with directory sharing between Ubuntu guest and host. But now I need to share an existing ubuntu folder with the guest machine. I don't know if and how it can be done. Does anyone have any ideas? Marius Matutiae No, it can't be done in th

Connect to host from VirtualBox guest OS?

Naftuli Kay I essentially want to access my host from a guest in VirtualBox. Is there an IP address for my host that I can use from the guest? Are additional steps required to set this up? I want to access the host's Apache, FTP and SSH services. Naftuli Kay T

Connect to host from VirtualBox guest OS?

Naftuli Kay I essentially want to access my host from a guest in VirtualBox. Is there an IP address for my host that I can use from the guest? Are additional steps required to set this up? I want to access the host's Apache, FTP and SSH services. Naftuli Kay T

Share Dropbox folder with host and guest OS (Virtual Box)

lv I'm using VirtualBox on Windows 7 with Ubuntu as the guest OS. I have Guest OS Additions installed and I know how to share folders and mount them automatically. My question is out of pure curiosity. What happens if you set the Dropbox folder in Ubuntu to be

Share Dropbox folder with host and guest OS (Virtual Box)

lv I'm using VirtualBox on Windows 7 with Ubuntu as the guest OS. I have Guest OS Additions installed and I know how to share folders and mount them automatically. My question is out of pure curiosity. What happens if you set the Dropbox folder in Ubuntu to be

Access VirtualBox Mac OS guest on Windows 10 host network

Shahzad Latif | I have a Windows 10 host with an IP address of 192.168.8.101, a subnet mask of 255.255.255.0 and a gateway of 192.168.8.1. I also have Mac OS Sierra installed on VirtualBox on this Windows host. This guest macOS has an IP like 10.0.2.15 and a g

Access VirtualBox Mac OS guest on Windows 10 host network

Shahzad Latif | I have a Windows 10 host with an IP address of 192.168.8.101, a subnet mask of 255.255.255.0 and a gateway of 192.168.8.1. I also have Mac OS Sierra installed on VirtualBox on this Windows host. This guest macOS has an IP like 10.0.2.15 and a g

Access VirtualBox Mac OS guest on Windows 10 host network

Shahzad Latif | I have a Windows 10 host with an IP address of 192.168.8.101, a subnet mask of 255.255.255.0 and a gateway of 192.168.8.1. I also have Mac OS Sierra installed on VirtualBox on this Windows host. This guest macOS has an IP like 10.0.2.15 and a g

Does Mac OS X as guest on VirtualBox with Ubuntu Host?

John I own a legal copy of Mac OS X. I would like to install Ubuntu as the host OS on a new AMD computer and then install Mac OS X as the guest OS via VirtualBox . Does anyone know how easy this will be? Do I need some kind of hack work to run OS X through Vir

Access VirtualBox Mac OS guest on Windows 10 host network

Shahzad Latif | I have a Windows 10 host with an IP address of 192.168.8.101, a subnet mask of 255.255.255.0 and a gateway of 192.168.8.1. I also have Mac OS Sierra installed on VirtualBox on this Windows host. This guest macOS has an IP like 10.0.2.15 and a g

Access VirtualBox Mac OS guest on Windows 10 host network

Shahzad Latif | I have a Windows 10 host with an IP address of 192.168.8.101, a subnet mask of 255.255.255.0 and a gateway of 192.168.8.1. I also have Mac OS Sierra installed on VirtualBox on this Windows host. This guest macOS has an IP like 10.0.2.15 and a g

Access VirtualBox Mac OS guest on Windows 10 host network

Shahzad Latif | I have a Windows 10 host with an IP address of 192.168.8.101, a subnet mask of 255.255.255.0 and a gateway of 192.168.8.1. I also have Mac OS Sierra installed on VirtualBox on this Windows host. This guest macOS has an IP like 10.0.2.15 and a g

Does Mac OS X as guest on VirtualBox with Ubuntu Host?

John I own a legal copy of Mac OS X. I would like to install Ubuntu as the host OS on a new AMD computer and then install Mac OS X as the guest OS via VirtualBox . Does anyone know how easy this will be? Do I need some kind of hack work to run OS X through Vir

Virtualbox: Mount shared folder in Guest FreeBSD from host Ubuntu

user34260 I have Ubuntu 12.10 as host OS and FreeBSD 9 as guest OS in Virtualbox 4.1.18. I have Samba installed in both Ubuntu and FreeBSD and shared some folders from virtualbox with the automountoption ticked as well. I also did it in right click and shareUb

Virtualbox: Mount shared folder in Guest FreeBSD from host Ubuntu

user34260 I have Ubuntu 12.10 as host OS and FreeBSD 9 as guest OS in Virtualbox 4.1.18. I have Samba installed in both Ubuntu and FreeBSD and shared some folders from virtualbox with the automountoption ticked as well. I also did it in right click and shareUb

Share folder from host to guest VM using KVM

OK I want to share a folder from the host machine (Linux) to a Linux VM that is running on it. After some research, I used the 9p (version=9p2000.L) share, following the instructions on the link below: http://www.linux-kvm.org/page/9p_virtio Problem: I can't r