VirtualBox supports file sharing by installing the enhancement package.
Environment:
Win10 64-bit
Virtualbox 5.1.30
Ubuntu-16.04.3-server-amd64.iso
1. After ubuntu is installed, open the virtualbox installation path folder and find VBoxGuestAdditions. iso (enhancement package ).
2. Right-click the file and select load. a dvd drive is displayed in the resource manager directory.
3. Disable Ubuntu and create a folder to be shared under win, for example, E: \ code. Then, perform the following operations on the virtualbox interface:
4. After Ubuntu is restarted, create a folder to be shared under Ubuntu, for example,/home/<username>/codeshare.
5. In the Ubuntu system running window, select a device and install the enhancement feature.
6. Enter sudo mount/dev/cdrom/mnt/vboxDVD In the Ubuntu command line (/mnt/vboxDVD can also be replaced with/media/cdrom ). Mount the file in the DVD drive to the vboxDVD folder (defined by yourself. Enter the/mnt/vboxDVD directory and Run ls to see the reinforced package file that has been decompressed.
7. run sudo./VBoxLinuxAdditions. run in the/mnt/vboxdvd directory.
This indicates that the installation is successful. The last line of information can be ignored.
8. Run sudo mount-t vboxsf code codeshare and find that the codeshare folder color has changed. Go to codeshare and create the file test. py. Test. py can also be seen in the code folder under win. You can also create temp. py in the code folder and see it in codeshare.
9. After file sharing is successful, you can use your favorite editor or IDE encoding in win. The running environment is deployed on Ubuntu.
10. Run df-h to view disk attaching.
11. After restarting Ubuntu, you must re-mount the code folder under windows. Follow the eighth step.
PS: run the umount/dev/sr0 and eject commands respectively to completely uninstall the DVD.