Managing servers hosting virtual machines

From WormBaseWiki
Revision as of 17:37, 16 August 2010 by Cgrove (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

There are two options for managing servers hosting virtual machines, the VMWare Server console, and a web interface to the console.

The Console Application

The console application can be used to start and stop VMs as well as set various networking and device configuration.

Using X-forwarding, open a trusted session to the host machine:

$ ssh -Y host

And start the console:

vmware &

Connect to localhost

(The console can also be used remotely, via port 902)

In order for VMs to appear in the web-based management interface, they must be listed in the Console inventory. Select "Open" from the contextual menu and browse to the .vmx file for your VMX.

The VMWare Management interface

The VMWare Management interface is a web-based interface using its own built-in apache server

To start the Apache server, type

/etc/init.d/httpd.vmware start

To stop the Apache server, type

/etc/init.d/httpd.vmware stop

To restart the Apache server, type

/etc/init.d/httpd.vmware restart

Connect to the interface:


This shell script simplifies tunneling to machines running the VMX management interface:

 echo "Opening a tunnel to a VMX Management Interface..."
 echo ""
 if [ -z ${user} ]; then
 #        echo "   ---> No user provided. Defaulting to '${user}'."
 if [ -z ${gateway} ]; then
 #        echo "   ---> No gateway provided. Defaulting to '${gateway}'."
 if [ -z ${destination} ]; then
 #        echo "   ---> No gateway provided. Defaulting to '${destination}'."
 echo "Tunneling to ${destination} through ${gateway} as user ${user}..."
 echo "   ---> To change these values:"
 echo "        $0 username gateway destination"
 ssh -t -l todd -L 8333:localhost:10000 \
 ssh -l todd -L

See [[WormBase_Infrastructure#Frozen_release_servers Frozen Release Servers] for a list of servers hosting virtual machines.