shared folder in virtual machine
shared folder in virtual machine
- 首先在virtual box点击
Insert Guest Additions CD Image
- 在虚拟机中运行弹出来的窗口
- 在Terminal中输入
sudo adduser $YourUserName vboxsf
- Restart
But when you cannot mount the disk automatically, you have to do it manually. Steps are as follows:
-
Devices -> Install Guest Additions..
-
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
- Then
sudo adduser $YourUserName vboxsf
- Restart.