VMware

Useful error from VMware vCenter

After what felt like an eternity VMware vCenter server produced the follow error, how nice of it to give me just part of the path to the logfile. After searching the drive for the log I discovered didnt even exist.

VMware Server VNC console

I use a Mac as my desktop and I’ve never successfully gotten the VMware Server console thing in the web interface to work. Which means if I need console access to a VM I have to boot a copy of windows somewhere and use IE in that.  This little trick gets me out of having to to that.

Add the following lines to the VMX config file for each VM you want access to, then you can just connect in with any VNC client and get the console. Use the host/ip address of the vmware server itself when you connect. I halted each of my VMs while editing that file because I wan’t to make sure VMware wasn’t going to write to the file as well.

RemoteDisplay.vnc.enabled = "TRUE"
RemoteDisplay.vnc.password = "password"
RemoteDisplay.vnc.port = "port"

If you want more than one VM to use VNC you have to use different port numbers.

Enabling vmware-tools clock sync from inside the guest

Just found out how to turn on vmware-tools clocking syncing from inside the guest, rather than editing the .vmx file on the host.

Once you have vmware-tools installed and configured try this:

/usr/sbin/vmware-guestd --cmd "vmx.set_option synctime 0 1"

To verify this has worked look for this line in the corresponding .vmx file:

tools.syncTime = "TRUE"

vmrun – Control VMware Fusion from the command line

I’ve just needed to snapshot a virtual machine running under VMware Fusion on my Mac but I only had SSH access. I’ve discovered the vmrun utility which is hidden away in XXX. VMware have a PDF of how to use it here. Very handy!

% export PATH=/Library/Application\ Support/VMware\ Fusion/:$PATH
% vmrun listSnapshots SpaceWalk.vmx

Total snapshots: 1
Fresh 5.2 all updates
% vmrun -T fusion snapshot SpaceWalk.vmx "SpaceWalk Installed"
% vmrun listSnapshots SpaceWalk.vmx
Total snapshots: 2
Fresh 5.2 all updates
SpaceWalk Installed
%

Bravo!

VMware any-any patch

I’ve had troubles with vmware on redhat/fedora in the past. (See here or here) But I’ve now found a one stop solution to putting VMware on all things RedHat or Fedora. Follow the instructions in this VMware forum post. This has worked for me with VMware Server on Fedora 6 and 7 and also VMware Workstation 6 on Fedora 7. Thanks Petr!