When you use a virtual machine to run Ubuntu, the host and the host machine share files. Method 1: Run Ubuntu on the XP platform. When files need to be transmitted to each other, you can achieve this through sharing. First, create a folder under Ubuntu, and then create a folder on the Local Computer for sharing. Then, mount the folder on the ubuntu terminal by running the mount command. For example, local ip Address: 192.168.0.1 Local Shared Folder: 6688. cc Local User name: linuxidc Local Password: l
How to share files between the host and the host when running Ubuntu on a virtual machine
Method 1:
Run Ubuntu on the virtual machine on the XP platform. When files need to be transmitted to each other, you can share the file. First, create a folder under Ubuntu, create a folder on the local machine and share the folder, and then mount it on the ubuntu terminal by running the mount command.
For example:
Local ip Address: 192.168.0.1
Local Shared Folder: 6688.cc
Local User name: linuxidc
Local Password: linuxidc
Ubuntu Mount Folder:/home/liuxf/6688.cc
Mount command: mount // 192.168.0.1/6688.cc/home/liuxf // 6688.cc-o username = linuxidc, password = linuxidc, dmask = 777, fmask = 777
However, this does not support automatic loading during Ubuntu startup. Sharing is required once upon each startup.
You can use the following method to map network disks to create network disks in XP.
Method 2:
1. Create a folder under Ubuntu, right-click the folder, select Properties, share, and enable "share this directory ".
Note: Samba is required for sharing. The system will prompt you to install it. After the installation is complete, you must restart ubuntu to make it take effect. When you return to XP, you can see a ***-desktop server (Samba, Ubuntu) shared directory in the network neighbor.
2. Return to the Windows XP system, right-click "Network Neighbor", select "ing network drive", find the folder shared under Ubuntu in "Browse", and select it to complete the ing, open "my computer" and you will find an additional "network drive", just like our hard disk.
At this time, you can copy a few files in the XP system to the corresponding network drive, and then enter the Ubuntu system, you can see the file we just copied; of course, we can also put files in the shared folder for use in the XP system.
When creating file sharing, note that the NIC of the host must be enabled; otherwise, the sharing cannot be created. To open the NIC, connect the network to the route. Do not leave the network port empty.
You can consider attaching a hard disk under xp, as the old man said.