vmtools is a tool that comes with VMware, which can realize the transfer of guest and virtual machine files. Installation under Windows is relatively simple.
We right click under the virtual machine to set
Since the editor has already installed vmtools, on the other hand, it should be noted that installing vmtools requires the virtual machine to be turned on. If it has been installed, it will be like this
When the Windows virtual machine is turned on, click Install vmtools and a wizard will appear. Follow the wizard step by step to complete the installation.
However, what the editor mainly wants to introduce is to install vmtools under linux. It is not like a fool-like installation like Windows, and it can't be installed at the beginning.
At the beginning, out of curiosity, the editor searched for the installation of vmtools in linux, and I will tell you here.
We click to install the vmtools tool when the linux virtual machine is turned on. Here the editor has already installed it, so I will reinstall it for everyone to demonstrate.
Of course, since everyone needs an image from the beginning, it will remind you whether to remove the previous image, because the installation of vmtools requires its image, and the vmtools CD image will not appear on the desktop when it is installed for the first time.
Then the editor will teach you to use the command to mount the mirror
mount -t iso9660 /dev/cdrom /mnt/cdrom
Here, the cdrom under /mnt does not have this folder by default, we just execute the command to create it
mkdir - p /mnt/cdrom
OK, then execute the mount command and it is successful
Then you will find these two files under /mnt/cdrom
We execute the command to decompress it, or right-click to decompress it
tar zvxf VmwareTools-9.2.31031360.tar.gz
After unzipping, this folder appears
Then we open it and find this file
Here we can't run it in an interfaced way, but need to run it in the form of a terminal, so we directly cd to this directory, enter the file name and press Enter, and it runs (because there are many setting options in the middle, it is not possible to use the interface formatted display)
During the installation process, you will be asked to confirm whether various settings are installed. We just press Enter to confirm the installation. Among them, we need to choose the resolution. We choose the one with 1024*768, and then press Enter
it's installed
Then the problem came, even if we installed vmtools directly, we still couldn't copy and paste files directly. I'll offer two ways
1. Execute the command: /user/bin/vmware-user
Or directly find this terminal file and run
Let's copy the file and see
You can't drag and drop directly here, but you need to copy and paste
2. Since vmtools is installed, we can use its shared file directory
First we share a file on the client
Then we come to the settings interface of the virtual machine
We choose a locally shared file or folder according to the wizard
OK, after the configuration is complete, select OK to save.
We come to the linux interface and find this file
click in
Haha, that's the folder we share
Of course, this second part is related to our initial mount configuration, do you remember? When installing vmtools, we mounted it to /mnt/cdrom, so here hgfs is the directory of our shared files. Any files shared by the client will be in this directory. Of course, we need to specify the client to share in the configuration. file or folder.