virtualbox config
virtualbox shared folder
默认会员
sudo usermod -aG vboxsf $(whoami)
in order to use shared folder functionality few prerequisites need to be met:
Make sure that Guest Additions are properly installed on the guest OS.
Users in a guest Ubuntu must be in the group vboxsf to be able to access shares.
Define a directory on the host that will be used in the virtual machine using the settings dialogue of Virtual Box.
Do not share personal folders like /home/username or My Documents
avoid special characters or empty spaces in the path to the shared folder
use different names for share and mountpoint
create a mountpoint on the guest OS (best in your HOME directory).
Testing shared folders functionality can thus be done by creating a shared directory on the host (e.g. C:\myshare), define this as a shared folder for your guest system in Virtual Box settings (e.g. share), create a mount point in your guest os (e.g. mkdir /home/username/host)and mount this in the guest OS with the command:
sudo mount -t vboxsf -o uid=1000,gid=1000 share /home/username/host
where the option -o makes sure that you will have access to the mount (that will otherwise be owned by root).
For further information on shared folders see also the Virtual Box User Manual.
Files or directories can also be shared over the network by using Samba on the host and the guest.
http://askubuntu.com/questions/30396/error-mounting-virtualbox-shared-folders-in-an-ubuntu-guest