The most notable changes/features are:
- per default i'm using now the qxl video card for guests
- for many options there are default's which the init-script would use if there are no settings
- guests don't have to run as root, you can specify an different user
- spice support (you can choose between vnc and spice)
- qemu guest agent support (qga has to be installed in the guest)
- snapshot mode, guests can run in an snapshot-mode where changes won't be saved.
|init script start and stop|
Download the script: LinkBasically most of these packages should be already installed on any system. However, you must configure an bridge first otherwise networking wouldn't work. To install the script there are just a few steps to do. First, extract the file:
tar xzf qemu-init-script.tar.gz -C /etc/init.d/
Move the default.config to /etc/conf.d/:
mv /etc/init.d/kvm.config /etc/conf.d/
For every guest you have to create an symlink to the init script (example for a guest called windows7):
cd /etc/init.d/ ln -s kvm.init kvm.windows7
You also have to create an new config file for this windows7 guest:
cd /etc/conf.d/ cp kvm.default kvm.windows7
Afterwards you have to edit the config to your needs. Basically you must change at least VM_IMAGE and BRDEV. BRDEV is the name of your bridge and VM_IMAGE is the path to the image file or lvm2 partition.
For an new guest you also have to change the boot settings. VM_BOOT_DEV sets how to boot (network/disk/cdrom/floppy), while VM_CDROM should point to an iso file or a cd.
The rest of the config should be quite self explaining. Anyway, i've tried to explain all variables as good as possible.