Wednesday, August 26, 2009

installing VMware tools in a gentoo/linux virtual machine

In VMware (ESX/Workstation) select the option to install vmware tools - usually found in the menus (VM -> Install VMware Tools).
  1. log into the virtual machine and mount the cd-rom drive.
  2. ~#mount /dev/cdrom /mnt/cdrom
  3. untar the vmware tools to a temporary location like /tmp
  4. ~#tar xvzf /mnt/cdrom/*.tar.gz /tmp
  5. Create a set of empty rcX.d directories so the tools installer thinks they exist
  6. ~#mkdir /etc/init.d/rc{0,1,2,3,4,5,6}.d
  7. Run the vmware-tools installer and go with the defaults
  8. ~#cd vmware-tools-distrib
  9. ~#./vmware-install.pl
  10. Add vmware tools to startup when the machine boots
  11. ~#rc-update add vmware-tools default