Mounting KVM image
Alex
mysqlstudent at gmail.com
Fri Jun 11 17:16:46 UTC 2010
Hi,
I have a 5GB kvm image that I created some time ago, and would like to
mount it on the host system to access it. I've located a few documents
online for how to do this, but it doesn't seem to work properly.
Can someone direct me to information on how to mount a qcow2 image as
a local filesystem on FC13?
I've tried to convert it to 'raw', but then when I try to mount it, I see:
# file systmp-kvm.*
systmp-kvm.img: Qemu Image, Format: Qcow , Version: 2
systmp-kvm.raw: x86 boot sector, LInux i386 boot LOader; partition 1:
ID=0x83, active, starthead 0, startsector 1, 48194 sectors; partition
2: ID=0x85, starthead 0, startsector 48195, 83827170 sectors, code
offset 0xeb
# sfdisk -l systmp-kvm.raw
Disk systmp-kvm.raw: cannot get geometry
Disk systmp-kvm.raw: 5221 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
systmp-kvm.raw1 * 0+ 2 3- 24097 83 Linux
systmp-kvm.raw2 3 5220 5218 41913585 85 Linux extended
systmp-kvm.raw3 0 - 0 0 0 Empty
systmp-kvm.raw4 0 - 0 0 0 Empty
systmp-kvm.raw5 3+ 5102 5100- 40965749+ 83 Linux
systmp-kvm.raw6 5103+ 5220 118- 947834+ 82 Linux swap / Solaris
# mount -o loop,offset=$((63*1024)) systmp-kvm.raw /mnt/newimage/
mount: you must specify the filesystem type
Ideas greatly appreciated!
Thanks,
Alex
More information about the users
mailing list