KVM/Qemu cheat sheet

I changed from VirtualBox to KVM/Qemu. Here are some tips, hints and commands to remember:

A graphical user interface to monitor and manage virtual machines:
virt-manager

list running and not running virtual machines:
virsh list --all

mount qcow2 harddisks and partitions into the host system:
modprobe nbd max_part=8
qemu-nbd --connect=/dev/nbd0 image.qcow2
fdisk /dev/nbd0 -l
mount /dev/nbd0p1 /mnt/somepoint/
...
umount /mnt/somepoint/
qemu-nbd --disconnect /dev/nbd0

TODO: snap shots, volumes, pools, creation, …