shared folder in virtual machine

shared folder in virtual machine

  1. 首先在virtual box点击 Insert Guest Additions CD Image
  2. 在虚拟机中运行弹出来的窗口
  3. 在Terminal中输入sudo adduser $YourUserName vboxsf
  4. Restart

Stack Overflow相关链接

But when you cannot mount the disk automatically, you have to do it manually. Steps are as follows:

  1. Devices -> Install Guest Additions..

  2. Type the following in the guest terminal

sudo mkdir --p /media/cdrom
sudo mount -t auto /dev/cdrom /media/cdrom/
cd /media/cdrom/
sudo sh VBoxLinuxAdditions.run
  1. Thensudo adduser $YourUserName vboxsf
  2. Restart.

相关链接