Long story short, you can seem KVM as replacement of VMware, XEN, VirtualBox, and so on (If you don't know what am I talking about, please give a look about what is Virtualization).
If you have play with similar solutions once before, the virtualization GUI shouldn't be new to you. The virtualization GUI usually provide an interface for client creation, managment and also operation, e.g. when you start a virtual client, the GUI will provide a window for it and display its screen message as like as real PC. So any similar solution for KVM? Yes, virt-manager (http://virt-manager.et.redhat.com/) is one of similar choice.
Besides previous 2 mini-HOWTO (KVM on Debian mini-HOWTO and libvirt + KVM on Debian mini-HOWTO), here I will guide you though how to employ virt-manager for more high level visualization handling.
Some background information
As the beginning (refer to KVM on Debian mini-HOWTO), we only use KVM directly plus some low level toolkits. It demonstrate the most basic idea about how KVM functioning, e.g. play with suitable hardware (Intel-VT or AMD-V supported CPUs), install required packages, prepare network, create required disk image and so on. Or at least, if everything else gone wrong, you may still have some idea about how to fix it.
For the next generation, libvirt comes in as an assistance (refer to libvirt + KVM on Debian mini-HOWTO). It provide some handy solution for client installation or daily maintenance tasks. From my point of view as a system administrator, this is already enough for production, and I am also using it for production more than 3 months without any critical problem.
virt-manager is now acting as the last abstraction layer for KVM, when compare the similar architecture with VMware. Since it is target for the final abstraction of virtual client management, there is not much different in basic operation with above 2 solutions. If you have never play with that before, go back and give a quick review with it :-)
Prepare your Debian sid
I will assume you have KVM and libvirt install and functioning correctly. Run the following command for additional packages installation:
apt-get update
apt-get install virt-manager virt-viewerBasic operation before playing with virt-manager
As mentioned before, please go though the following procedures and ensure you have a functional environment for KVM:
- Prepare network.
- Create required disk image.
- Start client installation with virt-install.
- Preform some basic management operation with virsh.
So now you are able to work with KVM in CLI. There is not much short cut for virtual client initialization (simple, stable and elegant), but virt-manager can simplify our daily life. Let's play with it now.
A quick look with virt-manager
virt-manager in CLI (for sure that, you will need to have X running, or remote X server as like as Xming installed). Figure 1. show the main screen when it start.
From the console you can start, pause or shutdown the client directly. Sometime client may not response to shutdown command correctly, e.g. a Windows XP client with ACPI off, therefore you can go to "Virtual Machine -> Destroy" and force kill the client instant. Figure 2. show a console of an active client, which running with Debian etch installation.
Most likely the above operations are the most common use of virt-manager. Browse client status and information, open virtual client console without any CLI command, a better visual look and feel, and that's all.
Other indeed configuration
Conclusion
As you can see that most operation can function without using virt-manager, so what is the benefit of using it? Well, I think it is a handy toolkits for daily maintenance and able to save some of our time from remember a lot of CLI commands, but not means we should replace our basic knowledge of how KVM functioning with this helper.
The design of virt-manager is quite correct, since not every end users are power user. My only complain is about its stability and functionalities, e.g. can't create disk image other than RAW, which will cause a lot of useless disk space. May be the next generation should belong to web interfaces, so we will able to operate our virtual client as like as that of MS VirtualPC (well... MS VirtualPC use ActiveX for display client console though web, I don't know how can we replace it with open source standard technology...).
virt-manager is still a very young program. Let's give it more time for improvement and look forward for its growth :-)


















web interface
There are some VNC clients entirely written in java, so it is possible to use them to connect to your VM`s in a similar way MS is doing it. but i can`t see why is it so necessary, because one`d better use normal vnc or RDP client.
Post new comment