Tuesday, July 3, 2007

VMware linux guest VM to see shared folder

It is straightforward for VMware windows guest VM to use shared folder from host, however, it is not the case for the VMware linux guest. Although in VMware linux guest, /mnt/hgfs is default mount point for any shared folder, it was not created by default; the vmware-tools also not installed by default. without these 2 elements, we are not able to use shared folder feature in VMware linux guest, the VMware workstation user guide did not document it. here is my summary of action based on VMTN's discussion threads:
1. install VMware-tools
by attach linux.iso and click ' install vmware tools' in the VMWare menu/ VM tab. you will get VMware-tools icon on your Linux guest VM GUI. you will be able to install RPM.
2. mkdir /mount/hgfs
the default mount point for shared folder.
3. if you run /etc/init.d/vmware-tools restart, you may get warning on ' your VMware tools was not configured properly'
1. run /usr/bin/vmware-tools-configure.pl, please run it in local machine, rather remote session. the configure script will detect it for you.
2. after the configuration, you may use /usr/bin/vmware-toolbox to invoke VMware Toolbox for audio, shrink etc feature.
3. at this moment, the NIC eth0 is disconnected. in order to use vmxnet driver, run the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
depmod -a
modprobe vmxnet
/etc/init.d/network start
4. the /mnt/hfgs got shared folder.

1 comment:

nicobrevin said...

Just what I was looking for, cheers.