Install VMware tools, you can easily achieve this operation
Installation process
1. Click on the toolbar virtual machine---install VMware tools
2. Enter the directory:
cd /media/VMware tools/
ls
cp /VMware tools-10.0.10-4301679.tar.gz /tmp
cd /tmp
ls
cd /vmware -tools-distribl
ls
./vmware-install.pl
For all subsequent installations, press the Enter key until the installation is complete. After the installation is complete, the replication operation between the virtual machine and the local host can be realized.