Posts Tagged ‘VM’

VMWare Server console without web interface

July 26, 2013

I have not been able to get the web interface to my old VMWare Server 2.0.2 working. I gave up on it months ago, but today tried again to get a console to the guest VMs. I found this post that explained how to use X11 forwarding to run the remote console directly. Works great from my linux box.

Using VIX and vmrun with VMPlayer 5.0.0 on linux

November 1, 2012

I’ve been having problems with VMWare on a Linux host. I have a guest OS of Windows 7 Pro 64 bit. After running for a day or so it will usually get into a state where something is going crazy with the video driver and Linux appears to be unresponsive.  I can remotely log into the linux box and see that VMWare is using a lot of resources, but there should be plenty of memory still. Hopefully I can figure out why this is happening, but until then, I’d like to be able to shut down the VMWare guest gracefully without having to kill the app.

I am using the free VMPlayer 5.0.0 which does not come with any command line tools for control of guest VMs. However, VIX tools are available as a separate download. (You will need a My VMware account to download the package.)

Once I downloaded and installed the package I tried using the vmrun tool, but was running into some issues.

$ vmrun -T player list
Unable to connect to host.
Error: The specified version was not found

This page pointed my in the right direction. For VMPlayer 5.0.0 I had to add this line to the file /usr/lib/vmware-vix/viwrapper-config.txt

player   14  vmdb  5.0.0 Workstation-8.0.0-and-vSphere-5.0.0

Add that line below the last player line.

Now I was able to see my running guest VM and shut it down gracefully.

$ vmrun -T player list
Total running VMs: 1
/VM/Windows7x64/Windows7x64.vmx
$ vmrun -T player stop /VM/Windows7x64/Windows7x64.vmx soft

Documentation on VIX tools can be found here.
Also useful was this link.

Multicast over Linux bridge

July 9, 2012

Lately I’ve been working on testing multicast functionality. The quickest way to set up a multicast network has been to create several VMs and hook them together via private bridges. I’ll give a brief outline of the setup to provide some clarity, though what I should really do is provide some nice diagrams. Maybe later…

My setup consists of host A which is the VM host and the multicast sender. Hosts B and C are multicast routers with Xorp PIM router running. A, B and C are all connected to bridge br01. Hosts D and E are listeners to the multicast stream. D is connected to eth1 of B over bridge br02. E is connected to eth1 of C over bridge br03. So there is a bit of a tree being created.

Initially multicast is received properly by hosts D and E. But after 5 minutes E stops receiving any multicast data. The PIM router on C needs to be restarted to recover. After much debugging I found that multicast traffic on br01 was no longer being forwarded on to host C. The solution to this issue is detailed here. Essentially, multicast snooping needs to be disabled because PIM is not supported in the snooping.