Share files with virtual machines and physical machines
Source: Internet
Author: User
The diagram uses virtual machines and physical machines to share files-general Linux technology-Linux technology and application information. The following is a detailed description. [I = s] This post was last edited by wangyu
Many new users will choose to use virtual machines to practice their first installation of Linux, which is secure and will not damage the hard disk. However, many users have encountered the problem of sharing files between virtual machines and physical machines, the following are some methods I have summarized for reference. Generally, new users are practicing in Windows. Therefore, images are captured in Windows and uploaded to tu.poco.cn. It is said that external links are supported.
I. Using USB flash drives
This is too simple, but some USB flash drives with poor performance are not supported. Not all computers can use them, and there is no technical content. We will not discuss it here.
Ii. FTP Server
Although there is a Samba server dedicated for Linux and Windows communication, FTP is based on two host systems, so I will only talk about the establishment of FTP here.
First download the FTP Server. I use the FileZilla Server.
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
I use the English version for the convenience of some friends who cannot find the Chinese version. Edit -- Users, open the following interface:
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
Add a user in the red circle on the right, allow the user on the left, and set the password as needed. Then select Shared folders on the Left Page.
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
Add to Add a directory, Set as home dir to Set the root directory, and Set the check boxes above the root directory to grant permissions to the directory and files. You can Add them as needed because I have not selected the directory, so it is gray for the moment. Share it by yourself. We recommend that you select all the boxes.
Then, open cmd and run the ipconfig command to view the IP address of your physical machine.
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
My name is 172.18.17.71.
Okay. After the server is set, you can start the virtual machine. If you just download it from a physical machine, you can use a browser.
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
Enter ftp: // 172.18.17.71 in the address bar to log on to my FTP server. Do not forget the account and password (you can also set Anonymous Logon on the server, but if you want to transfer data between two machines, it is not safe, so that anyone can modify your directory)
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
If you want to pass files from a virtual machine to a physical machine, the browser will not work except to grant the corresponding permissions on the server. In this case, you have to open the FTP client, many releases come with gFTP.
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
Add the FTP address to the Host, and use the default Port. If your server is not using the default Port, change it here. The User and Pass are the account and password respectively.
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
After logging on, the user directory in your Linux is on the left, and the directory you set on the server is on the right, as long as the corresponding drag and drop (some FTP clients may not support drag and drop)
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
3. Create a CD image
Of course, an available CD image can not be made at will, but we can modify a ready image. I chose UltraISO to modify the image.
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
Select a folder in the lower-left window, and select an image in the lower-right corner. The image directory is displayed in the upper-right corner. Drag the files to be used in the virtual machine to the image window in the upper-right corner, save or save it
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
Open the virtual machine. I use the Chinese version of VirtualBox. Set the virtual machine to be started, select the system, and ensure that the optical drive is available. Then, you must put the optical drive behind the hard drive; otherwise, the drive is started with a CD.
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
Now we can start the virtual machine. This time we changed the Virtual Machine. Debian is orthodox after all. The previous virtual machine was a gadgets Slitaz, But I installed it on the hard disk. There is CDROM on the Debian desktop. If not, you can find it in/mnt.
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
No. tmp is the folder I put in the image.
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
If you do not understand, you can ask IRC. For more information about how to use IRC, see dabao's post.
Http://www.linuxdiyf.com/bbs/viewthread.php? Tid = 178386
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