Installation REQUIRED for KVM: Intel VT or AMD-V extensions (vmx or svm in /proc/cpuinfo)
yum groupinstall kvm
Kickstarting When kickstarting a KVM, you may have occasion to start over if you've made a typo or forgot to setup the VLAN network or something. Simply perform a “virsh destroy {guest_name}” followed by a “virsh undefine {guestname}”. Voila, clean slate to try and kickstart again.
Notes
/etc/libvirt/qemu/
/var/log/libvirt/qemu/
modprobe acpiphp
virsh attach-disk domainname /path/to/source/disk/or/vg vd?
virsh dumpxml domainname > /tmp/domainname.tmp.xml sdiff /etc/libvirt/qemu/domainname.xml /tmp/domainname.tmp.xml
Edit the machine configuration file: /etc/libvirt/qemu/{server}.xml
boot dev
to cdrom
<disk type='file' device='cdrom'> <source file='/net/kickstart/kickstart/iso/rhel-server-5.5-x86_64-dvd.iso'/> <target dev='hdc' bus='ide'/> <readonly/> </disk>
linux rescue
virsh migrate --live {guest} qemu+ssh://{remote_host}/system
libvirt stores it's configuration as xml in '/etc/libvirt/qemu'. The xml is easy to understand, and is similar to VMware *.vmx files. While it is possible to edit these files in place and restart libvirt-bin for the changes to take affect, the recommended method for modifying the attributes of a virtual machine is via virsh (or virt-manager, if it supports changing the hardware you want to change). The concept is simple:
For example, to edit the machine named 'foo' (you can get a list of your machines with 'virsh list –all'), do:
$ virsh dumpxml foo > /tmp/foo.xml (edit /tmp/foo.xml as needed) $ virsh define /tmp/foo.xml