Re: Mounting KVM image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2010-06-11 at 13:16 -0400, Alex wrote:
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

Did you try http://equivocation.org/node/107 ?

HTH,


--


Calin

Key fingerprint = 37B8 0DA5 9B2A 8554 FB2B 4145 5DC1 15DD A3EF E857

=================================================
In every hierarchy the cream rises until it sours. -- Dr. Laurence J. Peter
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux