Can not drag and drop between the virtual machine and the host / installation enhancements failed to do with shared folders substitute

To eliminate the need to configure the general operating environment of the trouble, many courses will require the use of a virtual machine using the virtual machine to mount the given virtual hard disk file after not configure your environment.

Install a virtual machine, the virtual machine configuration are generally relatively easy, but the installation enhancements really claw bar. There are two general ways:

  • After entering the system click on the top menu of the device , click on the installation enhancements ; after the installation is complete restart the virtual machine system to complete the guest additions installation
  • If the installation fails, can ctrl + alt + t recall terminal, using the following command to install. After machining restart the virtual machine to complete the installation.
sudo mkdir –p /media/cdrom
sudo mount -t auto /dev/cdrom /media/cdrom/
cd /media/cdrom/
sudo sh VBoxLinuxAdditions.run

If you are a European emperor, then you get to this point should be able to directly import and export the file: Open the virtual box drag and drop (into the virtual machine, click on the top menu of the device , drag and drop feature is set to two-way) . If successful, you will get the most fun way to directly file into a virtual machine to compile, complete towed back to the host after the change.

If you find that using a variety of methods, that is not installed on the enhancements is no way to drag and drop files. It does not matter, man, I could not either, but I still do not affect very fragrant with a shared folder.

  • Open your virtual box, click on Settings
    ** ** bold style

  • Select Shared Folders
    Here Insert Picture Description

  • See a sign with a plus sign that the upper right corner, click it, add a shared folder
    Here Insert Picture Description

  • The files needed to run the path to the folder selected, checked automatically mount , ok

  • Start your virtual machine, you will find on the desktop mount folder, right in Terminal Open , enter sudo nautilus will get a higher permission to open the folder, you'll find mount shared folders (My column on the left the folder name is assignment0)
    Here Insert Picture Description

  • Open the folder to have it all matter, the point is more convenient, can make changes to the files on the host (this time not to open files on a virtual machine), you can save directly compiled on a virtual machine, are automatic synchronization.

  • After use only need to turn off the virtual machine, back to the settings , select a shared folder , click select and click next to the removal of the shared folder on it.
    Here Insert Picture Description

  • And you see the folder where the host can be found, the operation will be saved to the file in the virtual machine to do (they are essentially operating the same file)

Published 29 original articles · won praise 1 · views 945

Guess you like

Origin blog.csdn.net/qq_44654498/article/details/104889162