Friday, November 29, 2013

Mounting a XEN/KVM/QEMU Image on ARCH Linux


Attach image 

#Load nbd driver
modprobe nbd max_part=8

#Attach system image 
qemu-nbd --connect=/dev/nbd0  System.img

#Mount Second partition
mount /dev/nbd0p2 /media

Release image


#Umount partition 
umount /media/

#Remove image 
qemu-nbd  -d /dev/nbd0

#Remove driver 
modprobe -r nbd 

No comments:

Post a Comment