apt-get install kvm
modprobe nbd max_part=8
kvm-nbd --connect=/dev/nbd0 ubuntu.10-10.x86-64.20101010.qcow
fdisk -l /dev/nbd0
Disk /dev/nbd0: 10.4 GB, 10485760000 bytes
4 heads, 32 sectors/track, 160000 cylinders
Units = cylinders of 128 * 512 = 65536 bytes
Disk identifier: 0x00013a61
Device Boot Start End Blocks Id System
/dev/nbd0p1 1 160000 10239984 83 Linux
mount /dev/nbd0p1 /mnt/test
ls /mnt/test/
bin dev home lib lost+found mnt proc sbin srv tmp var
boot etc initrd.img lib64 media opt root selinux sys usr vmlinuz
umount /mnt/test
kvm-nbd -d /dev/nbd0
/dev/nbd0 disconnected