Share host files (Ubuntu, VMWare, and sharing) in Ubuntu under virtual machines)

Source: Internet
Author: User

Abstract:

 


How to share files between the host and the host when a virtual machine runs Ubuntu.

 
Introduction:

First set the Virtual Machine: Virtual Machine-> Settings
-> Hardware-> network adapter. set it to "Bridge: connect directly to the physical network" and "NAT: Use the shared Host IP Address" in the network connection area.


Set the Ubuntu network IP address

Ping the test to see if the Ping is successful. Click "Network Tools" under "system-> System Management"

If the Ping is successful, you can start the following steps.

Note: If you use a proxy server to access the Internet, you also need to set up a proxy server. Otherwise, you will not be able to access the Internet.

 
 

Method 1: Mount

First, create a folder under Ubuntu, then create a folder on the local machine and share it, and then mount it on the Ubuntu terminal by running the mount command.
 
For example:
 
Local IP Address: 192.168.1.119
Local Shared Folder: Share
Local User name: lxf
Local Password: 8
 
Ubuntu Mount Folder:/home/lxf/ubuntu_share1
 
Mount command: Mount // 192.168.1.119/share/home/lxf // ubuntu_share1-O username = lxf, password = 8, dmask = 777, fmask = 777

 

 
You can also click "location", select "connect to server", select windows sharing in the server type, and set the Server IP address and the name of the shared folder in windows.

Click Connect to mount the Windows shared folder to Ubuntu.

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: Access the Ubuntu shared folder through a network disk in Windows

1. Create a folder under Ubuntu, right-click the folder, select Properties, share, enable "share this directory", andAllow others to write data in this sharing
.

Note: Samba is required for sharing. The system will prompt you for installation. After the installation is complete,You need to 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 Windows XP, right-click "Network Neighbor", and select "ing network drive ",

Find the shared folder 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 Ubuntu 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.

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.