Mounting the VMWare Tools Installation CD

I was recently installing the VMWare tools onto a debian etch virtual machine which I downloaded from the thoughtpolice.co.uk site, and I ran into problems. When the installation instructions from thoughtpolice say to type

mount /dev/cdrom /mnt/

This gives me an error about “You must specify the mount type” or similar. I found that actually you should type:

mount /dev/cdrom

and see the disk appear in /media/cdrom0. Thanks to this article which helped me out (I am pretty sure its the same one that helped me last time we had this problem as well!).

Zend Core Mysql Error

I’ve had this error more than once. On a debian virtual machine, with Zend Core installed, and when mysql doesn’t restart when the machine reboots. It looks something like this:

debian:/usr/local/Zend/mysql/bin# ./mysqld
080627 12:31:16 [ERROR] Can't find messagefile '/usr/local/mysql/share/mysql/english/errmsg.sys'
080627 12:31:16 [ERROR] Aborting

This is for two reasons. First: you need to be up one level of directory to be able to run these commands. Some errors will tell you that but this one doesn’t. Secondly, you need to use the mysqld_safe command.

debian:/usr/local/Zend/mysql# bin/mysqld_safe
Starting mysqld daemon with databases from /usr/local/Zend/mysql/data

This works for me – I have no idea if it is the prescribed method but background the process above and you’re good to go.

Installing VMWare Tools

I recently did some work with Debian Etch virtual machines which I downloaded from the good people at thoughtpolice. Here are my notes on getting the VMWare tools added to that machine.

To be able to do anything interesting with a virtual machine, you need to install the VMWare tools onto the virtual machine. With the virtual machine, choose to “Install the VMWare tools” – this does a virtual equivalent of putting the right CD into the machine and you can then mount the CD and run the install program (follow the instructions on the VMWare site, they probably update theirs). I found that under Debian Etch I needed to first use aptitude to install some additional things that the tools needed to get themselves set up. These were:

  • gcc
  • psmisc
  • binutils
  • make
  • the kernel sources for the relevant version – do linux-headers-$(uname -r) to get the right version.

Then run the VMWare tools installation and everything should go through smoothly. If you installed VMWare tools but didn’t get all the setup completed because libraries were missing, you can just re-run the vmware-config-tools.pl script ( in /usr/bin/ for me).

VMWare Virtual Machines on NTFS

I keep having a problem with my virtual machines. I’m running kubuntu but the virtual machines are on an NTFS partition (because I use them from windows occasionally). The error message appears at startup and goes like this:


VMware Player unrecoverable error: (vcpu-0)
Failed to allocate page for guest RAM!
A log file is available in "/path/to/VM/vmware.log". A core file is available in "/path/to/VM/core". Please request support and include the contents of the log file and core file.
To collect data to submit to VMware support, run "vm-support".
We will respond on the basis of your support entitlement.

I looked in the log file and saw that immediately before the “Failed to allocate page” bit it said:


Could not mmap paging file : No such device

Apparently this is a known problem with VMs on an NTFS parition, but luckily the solution is very simple. I found a post which recommended editing the .vmx file and adding the following line:


mainMem.useNamedFile=FALSE

This worked perfectly for me, I hope it helps someone else too. See also my post about installing vmware tools