You have to mount your folder on your VM.
First you need to install Guest Additions (although I already did this during the installation).
- Start your VM
Devices
>Insert Guest Additions CD image...
- I had to manually mount the CD:
sudo mount /dev/cdrom /media/cdrom
- Install the necessary packages:
sudo apt-get install make gcc linux-headers-$(uname -r)
- Install the Guest Additions:
sudo /media/cdrom/VBoxLinuxAdditions.run
Now you can mount your share using:
mkdir ~/new
sudo mount -t vboxsf New ~/new
Where New
is the name of your shared folder.
Now you can access the shared folder at ~/new
.
Note: this is not permanent. To permanently mount your folder you should add the following line to /etc/fstab
(sudo nano /etc/fstab
):
New /home/user/new vboxsf defaults 0 0
Obviously you should replace user
in /home/user/new
by your own username.
1. 安装增强功能包(Guest Additions)
/media/VBoxGuestAdditions-4.1.4
进入命令行终端,输入: