|
Step1. install vmtools for Linux:
Choose VM> reinstall VMware Tools...
After that, the Ubuntu Desktop in the virtual machine will see the VMware Tools CD symbol
Enter the following command in Ubuntu (use the root account)
Mkdir/mnt/CDROM
Mount/dev/CDROM/mnt/CDROM
CD/mnt/CDROM
Tar-zxvf VMwareTools-8.1.3-203739.tar.gz-C/tmp
CD/tmp/vmware-tools-distrib
/Vmware-install.pl
Then press enter to wait for a while before the installation is complete.
To view the status after installation, run the following command:
Lsmod
The result is as follows:
Module size used
Vmblock 10778 1
Vsock 37134 0
Vmhgfs 48997 1
Binfmt_misc 6599 1
Acpiphp 17207 0
Snd_ens1371 18782 2
Gameport 9327 1 snd_ens1371
Snd_ac97_codec 99227 1 snd_ens1371
Ac97_bus 1014 1 snd_ac97_codec
Snd_pcm 71475 2 snd_ens1371, snd_ac97_codec
Snd_seq_midi 4588 0
Snd_rawmidi 17783 2 snd_ens1371, snd_seq_midi
Snd_seq_midi_event 6047 1 snd_seq_midi
Snd_seq 47174 2 snd_seq_midi, snd_seq_midi_event
Snd_timer 19067 2 snd_pcm, snd_seq
Ppdev 5556 0
Psmouse 59033 0
Snd_seq_device 5744 3 snd_seq_midi, snd_rawmidi, snd_seq
Vmware_balloon 3703 0
Serio_raw 4022 0
Parport_pc 26058 1
SND 49038 11 snd_ens1371, snd_ac97_codec, snd_pcm, snd_rawmidi, snd_seq, snd_timer, snd_seq_device
Intel_agp 26566 1
Soundcore 880 1 SND
Snd_page_alloc 7120 1 snd_pcm
Agpgart 32011 1 intel_agp
Shpchp 29886 0
I2c_piix4 8635 0
VMCI 26574 1 vsock
LP 7342 0
Parport 31492 3 ppdev, parport_pc, lp
Mptspi 14824 3
Mptscsih 32198 1 mptspi
Mptbase 85346 2 mptspi, mptscsih
Floppy 54311 0
Scsi_transport_spi 21268 1 mptspi
Vmxnet 15558 0
Step2. set the shared directory:
For example, choose VM> Settings> Options> shared folders.
Click "add" in the lower-right corner of the dialog box and click "Next"
In the text box "name", enter the name of the shared directory. Here, I share two folders in Windows 7. One is the English name and the other is the Chinese name.
In "host path", click "Browse", select the shared directory, and click "Next ". After clicking "Next", you do not need to change anything on the displayed interface. Click "finish" directly ".
Here enable this share refers to the long-term validity of the sharing, and the directory can be read and written; read-only refers to the long-term validity of the sharing, and the directory is read-only.
Step3. view the shared directory in Ubuntu
Enter the following command
CD/mnt/HGFS
Ls
You can see the shared directory in Windows 7. |