mount qcow2

페이지 정보

작성자 조희승 댓글 0건 조회 9,389회 작성일 15-10-20 21:26

본문

http://alexeytorkhov.blogspot.kr/2009/09/mounting-raw-and-qcow2-vm-disk-images.html


Mounting a partition from raw image is pretty simple:

losetup /dev/loop0 image.img
kpartx -a /dev/loop0
mount /dev/mapper/loop0p1 /mnt/image





To mount qcow2 images there is (at least in F-11 qemu) very useful qemu-nbd util. It shares image through kernel network block device protocol and this allows to mount it:

modprobe nbd max_part=63
qemu-nbd -c /dev/nbd0 image.img
mount /dev/nbd0p1 /mnt/image


qemu-nbd -d /dev/nbd0

댓글목록

등록된 댓글이 없습니다.