I am now learning Linux. When I was installing a virtual machine, the bottom interface would prompt me whether to install Tools. I was curious, I just learned it briefly, and tried to install it.
It's very simple in the windows virtual machine, but in Linux, it is still a bit difficult for beginners
Anyway, I looked at the strategies written by other bloggers, and after a while, I finally installed it successfully. Now I will summarize and share with you.
One, briefly introduce Vmware Tools
VMware Tools is an enhancement tool that comes with VMware virtual machines, which is equivalent to the enhancements in VirtualBox (Sun VirtualBox Guest Additions). It is a driver provided by VMware to enhance the performance of virtual graphics and hard disks, and to synchronize the clock of the virtual machine and the host.
Only when VMware Tools is installed in the VMware virtual machine, can the file sharing between the host and the virtual machine be realized . At the same time, it can support the free drag and drop function (that is, you can directly drag files in). The mouse can also be used between the virtual machine and the host. Move freely between time (no need to press ctrl+alt), and the virtual machine screen can also be full screen
2. Before you start
Let me introduce my current environment first, for your reference only
VMware® Workstation 16 Pro
Linux virtual machine
CentOS 7
The local Yum source warehouse has been configured, and some basic software packages have been "yum install" such as httpd, gcc, gcc-c++, make, etc. Students in need can read my previous blog link: https:// blog.csdn.net/weixin_51486343/article/details/111035843
3. Don’t say much, do it
First, click "Virtual Machine (M)" in VMware, and select "Install Tools" from the drop-down menu (I have installed it before, so it shows reinstallation here)
The following interface will be displayed, click to confirm, and then check whether the CD-ROM drive for tools appears on the desktop
Pay attention to the following details, all ticked, there will usually be a prompt message, if the desktop still does not appear, restart
Then I will create a new directory in the opt directory under the / directory
[root@localhost ~]# cd /opt/
[root@localhost opt]# mkdir tools
[root@localhost opt]# ls
rh tools
Double-click the "VMware Tools" on the desktop and copy the compressed package to the newly created directory. Why should it be in the opt directory? Because the opt directory is a user-level program directory, which mainly stores optional programs.
Note that you need to be the root user to have permission to operate
Select, right click and select "Copy to..."
Copy to the newly created directory under opt just now
Go back to check and find that there is
[root@localhost ~]# cd /opt/tools/
[root@localhost tools]# ls
VMwareTools-10.3.22-15902021.tar.gz
Decompress and check
[root@localhost tools]# tar -zxvf VMwareTools-10.3.22-15902021.tar.gz
...
...略
[root@localhost tools]# ls
VMwareTools-10.3.22-15902021.tar.gz vmware-tools-distrib
Then enter the folder we unzipped, and use the ls command to see what files are under it
[root@localhost tools]# cd vmware-tools-distrib/
[root@localhost vmware-tools-distrib]# ls
bin caf doc etc FILES INSTALL installer lib vgauth vmware-install.pl
After that, it’s easier to execute, just press Enter to confirm and install by default
Note that if you ask yes or no, enter "y" or press Enter to confirm
Restart the virtual machine to make VMware Tools take effect
Fourth, realize the shared folder between Windows and VMware-Linux virtual machines
Enter virtual machine settings-options-shared folders-always enable-add
Here I just choose a folder
Check in the virtual machine to see if there is a windows shared directory . You can find our shared directory in /mnt/hgfs
With ==
By the way, students, about adjusting the screen size, you can choose from the drop-down options in the "View (V)" of the VM. Generally I use Xshell. This function is not very useful for me.