Thursday, May 29, 2008

Keeping a tap on virtual machines

Ok, I'm close to admitting defeat now. I can't keep track of all of the virtual machines that are created around me. The fact that we are using VMware ESX, VMware Server, Xen, and KVM all together does not make the job easier. Just keeping an overview of what runs on which server, which IP addresses are used, and which credentials are needed to access them fills up a big table in a wiki page already. Just keeping that page updated is a struggle. There are of course specific tools (some nicer, some not so) for each of the virtualization solutions, but I still have to find the One Tool To Rule Them All, One Tool To Find Them, One Tool To Bring Them All And In The Darkness Bind Them!

So right now, I'm more often than not, accessing all the different server consoles and trying to find the machine that I'm looking for. Also, while the VMware virtualization center is nice and easy to use, it does not show you the IP addresses of the machines. Logging in to each of them through the console is time-consuming. Using IP addresses as names helps though, so that is what I started doing (obviously only for machines with static IPs).

Getting IP addresses for Xen guests is easier because the configuration files actually contain the IP addresses. There is a way to get current IP addresses from VMware guests as well, but they have to be running and they have to have VMware tools installed. VM tools are a high hurdle, especially for non-mainstream operating systems where you have to download, compile and install the tools yourself. An alternative is to look into the ARP and forwarding tables of the upstream switch and search for the IP address based on the MAC address (which you can get e.g. through the VC client). You have to make sure though, that the machine is in the ARP table, so that creates a chicken-and-egg problem. If you know at least the subnet of the machine and that subnet is not too big (/24 works fine), you can fill the table by fping-ing the range.

1 comment:

Anonymous said...

Hi Norbert,
Your blog is very interesting and some of the comments that you are making around managing VM sprawl - is one of the core problems we at VMLogix (http://www.vmlogix.com) try to solve (with our LabManager product, across multiple hypervisors - Citrix, Microsoft, VMware in a hypervisor agnostic fashion).

I also note that you have some experience with VMware Lab Manager - have you tried VMLogix LabManager?

We run our blog at http://blog.vmlogix.com - and have several posts on automation and related to virtual lab management. We would love it if you took a moment to go through some of the posts and chimed in with your thoughts/comments.

If you want to get in touch with me, you can drop me a note at srihari@vmlogix.com

Again, informative posts!

- Srihari Palangala, VMLogix