WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Mounting images created with virt-install

To: jayeola@xxxxxxxxx
Subject: Re: [Xen-users] Mounting images created with virt-install
From: John Haxby <john.haxby@xxxxxxxxxx>
Date: Mon, 18 May 2009 12:08:39 +0100
Cc: "Xen-users@xxxxxxxxxxxxxxxxxxx" <Xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 18 May 2009 04:09:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1242641434.14323.37.camel@jx86>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <1242641434.14323.37.camel@jx86>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (X11/20090320)
John Maclen wrote:
Note sure how to mount one created by virt-install

file /xen/cx32bit.img /xen/cx32bit.img: x86 boot sector; partition 1: ID=0x83, active,
starthead 1, startsector 63, 208782 sectors; partition 2: ID=0x83,
starthead 0, startsector 208845, 398\
4120 sectors, code offset 0x48
Use losetup to create a /dev/loopN for the image file and then kpartx to create device files for the partitions. If one of the partitions is used for LVM you'll need to activate the volume group (and if that's the same name as a volume group in dom0 you're in for some head scratching). See the man pages for losetup, kpartx and vgscan / vgchange.

Oh, and despite the name, kpartx does not have anything to do with KDE or X.

jch

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>