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
1 | sudo mkdir --p /media/cdrom |
- Then
sudo adduser $YourUserName vboxsf
- Restart.