VirtualBox supports file sharing by installing the enhancement package.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.