Re: how to mount a bootable VM image file?

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

 



There's a pretty cool thing caled libguestfs, and a tool called guestfish


I've never used it (just stumbled on it recently) but it should do exactly what you need :-) And it supports RBD.

Jan


On 02 Dec 2015, at 18:07, Gregory Farnum <gfarnum@xxxxxxxxxx> wrote:

On Wednesday, December 2, 2015, Judd Maltin <judd@xxxxxxxxxxxxxx> wrote:
I'm using OpenStack to create VMs.  They're KVM VMs, and I can see all the authentication information I need on the process tree.  I want to mount this bootable image on the hypervizor node to access its filesystem and fix a file I messed up in /etc/ so I can get the VM to boot.

[root@ceph mnt]# mount -t ceph 192.168.170.53:6789:/volumes/d02ef718-bb44-4316-9e93-5979396921da_disk /mnt/image -o 'name=volumes,secret=AQDG7fBVqH3/LxAA8pQ0IF5LKQzAPYKTv8SvfQ=='
mount: 192.168.170.53:6789:/volumes/d02ef718-bb44-4316-9e93-5979396921da_disk: can't read superblock

How can I find and use the partition inside this raw, bootable file image?

You've probably created it using features that the kernel client you have installed doesn't understand. You'd need to either use a newer kernel or (more likely) just hook it up to a VM with QEMU.
-Greg


 
Thanks folks,
-judd

--
Judd Maltin
T: 917-882-1270
Of Life immense in passion, pulse, and power, 
Cheerful—for freest action form’d, under the laws divine, 
The Modern Man I sing. -Walt Whitman

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux