How to implement file sharing, copy and paste between virtual machines and hosts

Source: Internet
Author: User
Tags file copy ip number

How to implement File replication and sharing between Linux systems and Windows operating systems in VMware virtual machines.

Today, a friend asked me how to implement Linux and external Windows operating system File replication and sharing in the virtual machine, take advantage of this leisure time, write down this solution for those who have not solved this problem for reference, small fly has written the wrong place also hope that we have a lot of advice, thank you.

For friends using VMware virtual machines to achieve the file copy transfer between Linux and Windows is actually very simple, the key is the installation of Vmtools gadgets success or not, the installation of this gadget Baidu there are a lot of, think I write can not use their own check. Now let's introduce the installation method.

First you know that the disk format of Windows and Windows disk format is different, so there is no direct copying and posting files between the two, so for VMware virtual machines, can use vmtools this tool to solve (other virtual machines I don't know, VMware is also the reason to choose because the gadget is really easy to use, simple operation. Here I install under my Red Hat Enterprise version 5linux and say that the other versions are actually the same.

The first thing to know is that Vmtools is installed in a virtual operating system. Nonsense not much to say, to begin the installation. Step One: Open the setting under the VMware menu bar VM to find the CD/DVD that option, of course, directly to the left of the column at the beginning of the right button to find or in the right side of the preview box directly selected is also possible.

Select the Use ISO Image file option on the right after the CD/DVD is selected, and then find the following linux.iso, note that this is not your Linux operating system image, this default is under the VMware installation directory, after the selection is OK to next.

OK then power on the virtual system. Load successful words on the desktop will have a VMware Tools CD-ROM, click on the CD, The Inside vmwaretools****.rpm (* is the content of the contents of which I omitted, the completion of their own) that package file copy to the desktop to do the next step, pay attention to look at the suffix name, don't get wrong.

Switch Superuser, open the terminal, execute the command "CP vmwaretools****.rpm/tmp", and then switch to/tmp below the directory, do not ask me to order, do not know can go to the text Exchange Hotel.

Install the RPM package file "RPM–IVH" (* indicates file name, this is the instructions to install the RPM package file, the installation seems to choose what things I do not remember very clearly, we look at Ann and then you can ask me again, I remember as if you are going to lose no or yes, the loss is yes, Then let the number of 0 to lose, where to see the specific situation, the so-called specific situation refers to their own notebook resolution, for example, my notebook is 14.1, so I choose 1280*768, as if the corresponding is 14, so enter 14, and then enter.

The final step, after the installation is completed also in this directory Terminal input command "vmware–config-tools.pl".

Restart the virtual machine will be able to see the effect, if you still can not copy paste means that you are not installed. I don't want to dwell on it.

A second method:

Configure the SMB service and what is SMB. Baidu look at their own to know that SMB is through the outside system to achieve the virtual machine system shared folder fast access to the method. For example, I have configured the SMB service, you can directly under XP Click to Run and then enter \\192.168.0.50 can access my directory under Linux share, as for other computers can not know. Where 192.168.0.50 is my Linux virtual machine IP.

How to install SMB services I'm not going to write it. (My Red Hat is a custom installation, installed at the time of the special installation of Ubuntu I did not configure so I do not know, hehe), we can find their own online, I will talk about configuration.

Switch User terminal input "gedit/etc/samba/smb.conf" to modify the following information, sometimes prompted insufficient permissions, which is to modify the authority, such as I am lazy, directly to add 777 of user rights, opened and found

#============================ Share Definitions ==============================

Add the following similar code:

[Root]

Comment = Root directories

browseable = yes

writable = yes

Path =/root (here is the directory to share)

Valid users = Yingxian (here is the shared login name)

Save shutdown Run "/etc/init.d/smb restart" after add complete

Add the SMB user, that is, the shared login, "Useradd Yingxian", set the password for the user under Samba "smbpasswd-a Yingxian"

here basically is the configuration complete, there is a key need to disable the Linux operating system firewall, Red Hat is the setup of this command to set, Ubuntu I am not familiar with, and must ensure that the virtual machine and the outside network is smooth oh. OK, Test ha, click the run below the Windows system to enter the \\ip number. If the configuration is successful will require the login name and password, wood response is not a success.

Here I create a file under Windows test under a shared directory

Look, the file appears on the Linux desktop at the same time, stating that the Samba configuration was successful and effective

to configure samba here under Ubuntu I am not clear, only for your reference, recommend the friend with VMware or use the first kind of it. Well, stay up late to write down the text, thank you for your support and advice

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.