qcow2 Disk Image mounten

Kurzanleitung um eine gcow2 Disk-Image auf Ubuntu LTS 10.04 zu mounten:

Als root, mit einem qcow2 image

modprobe nbd max_part=8
qemu-nbd --connect=/dev/nbd0 db1_old.qcow2
# mount first partition
mount /dev/nbd0p1 /mnt/

wieder freigeben:

umount /mnt/
qemu-nbd --disconnect /dev/nbd0

quelle: http://blog.loftninjas.org/2008/10/27/mounting-kvm-qcow2-qemu-disk-images/

Stichwörter: , , ,
Posted by: Fabian Thommen on 15. Juni 2010 @ 08:56
Filed under: kvm,Lucid Lynx (10.4 LTS),Server,Ubuntu

Keine Kommentare »

Noch keine Kommentare

RSS-Feed für Kommentare zu diesem Artikel. TrackBack URL

Hinterlasse einen Kommentar