[webmin-devel] Virtual Machine Manager Module

Clément VERET <[email protected]> Tue, 18 Aug 2009 17:50:41 +0200
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
Hi everyone,

Its' been a long time since I was looking for a Xen/KVM module able to
manage the state (online, offline, etc…) of virtual machines… Since
nobody has written something satisfying for Webmin concerning
virtualization, I decided to write a module which fills my needs.

It's named virt-manager and can handle the state of virtual machines
through the virsh tool (listing, stopping, starting, suspending,
etc…). As it is virsh based, I expect it to work on every system based
on libvirt (including Xen and KVM). Unfortunately, I was only able to
test this module on CentOS 5, I'm not sure it can work on other
system…

That is the main part of the module so don't expect something
extraordinary (like installing machine, deploying ghost, etc…) : this
is just a minimum adminstration tool.

However, I though it would be sweet if you can just see the "physical"
console of the VM directly though VNC. As the vfb of Xen (and KVM) is
only listenning on localhost:5900+<machine_id> by default (and
changing that is REALLY annoying), I wrote a simple port forwarding
script so I can connect an Java VNC applet directly on Dom0 (via port
30000+<machine_id>) and see the DomU console without modifying its
configuration. This last part is probably not as secure and as clean
as I wanted it to be so you can just ignore it, delete it or
decativate it.

You can download the module directly on
http://perso.nintendojo.fr/~mortal/virt-manager.tar.gz or a patch that
applies to the webmin 1.480 source on
http://perso.nintendojo.fr/~mortal/virt-manager.patch

Hope this would help someone…
-- 
Clément Véret

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel