I know it’s totally an overkill to install Webmin to be able to freely and remotely control some basic features of the xen virtual Machines. But so far I haven’t found a really simple and decent replacement for it. Let me know if you do: michel@linuxint.com

It took me a little while to find the correct information to finally install a Very basic Webmin based Xen Virtual machines control panel on Debian Lenny. So here are the instructions.

Install the latest webmin from Internet:
wget http://freefr.dl.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510_all.deb
dpkg -i webmin_1.510_all.deb

Download the extra Xen Virt-Manager module for webmin.
wget http://perso.nintendojo.fr/~mortal/virt-manager.tar.gz

Connect to Webmin and Install the New virt-manager Webmin Module in Webmin.
(Use the Webmin interface to do that. No need to decompress the file before)
Webmin ==>> Webmin Configuration ==>> Webmin Modules

Install the libirt Library in Debian
apt-get install libvirt-bin virtinst

Change the configuration of xend Daemon:
File: /etc/xen/xend-config.sxp
Add:
(xend-unix-server yes)
(xend-unix-path /var/lib/xend/xend-socket)
(vncpasswd 'yourvcnpasswd')

Restart xend daemon:
/etc/init.d/xend restart

You should find the virt-manager module under:
System ==>> Virtual Machine Manager

EXTRA: To allow the VNC Viewer Java applet of Virtual Machine Manager to use the correct VNC port, change the port number in the Virtual Machine Manager Module CGI script as follows:
File: /usr/share/webmin/virt-manager/view.cgi
FROM: 30000
TO: 5900

– Make sure your firewall doesn’t block the ports:
Webmin: Port 10000
VNC ports for Virtual Machines: 5901 to 5999

Have fun.

%d bloggers like this: