Since the qcow2 format is not a simple linear block format like disks and raw files, it is necessary to use the network block device tool that's part of the qemu toolkit.....from qcow
I list the procedure I did for the memory..
Console 1:
/* run a nbd server */
$ qemu-nbd xxx.qcow2
Console 2:
/* check the network state, port 10809 is listening ... */
$ netstat -atnp |grep qemu-nbd
tcp 0 0 0.0.0.0:10809 0.0.0.0:* LISTEN 30075/qemu-nbd
/* connect to a server running nbd-server */
$ sudo nbd-client localhost 10809 /dev/nbd0
/* mount NBD0 to /mnt */
$ sudo mount /dev/nbd0 -o loop /mnt/
沒有留言:
張貼留言