Usefull libvirt + tools commands
- provision VM using KVM
virt-install --connect qemu:///system --accelerate -n virt01 -m 54:52:00:37:2E:B9 -r 1024 --vcpus=1 -f ~/virt_images/customer1.qcow -s 20 --vnc --os-type linux --os-variant=rhel5 --network=network:default -l http://192.168.1.250/os/CentOS/5.5/os/x86_64/ -x "ks=http://192.168.1.250/ks/project_customer1.ks"
- list all VM's running (optional --all to see all VM's)
virsh list [--all]
- shutdown VM ( initiates proper OS shutdown via ACPI calls )
virsh shutdown [domain]
- destroy VM ( same as pulling out power cable on real metal )
virsh destroy [domain]
- start an already defined VM
virsh start [domain]
- undefines a VM from the system
virsh undefine [domain]
- hook up to the VNC console of a domain
virt-viewer [domain]
There is plenty more to this but these are the usefull basics.