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] How to create an img.

To: deshantm@xxxxxxxxx
Subject: Re: [Xen-users] How to create an img.
From: maillists0@xxxxxxxxx
Date: Sat, 20 Dec 2008 17:25:43 -0500
Cc: xen-users mailing list <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 20 Dec 2008 14:26:33 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=+QzSZhCFgxOscLh2ukZgNEXhrJQtvz35r2XtUkZm7fk=; b=XcwS2lttrnrYw4tfaa9ML4DKPowxYaZ+MeQjjjPcfgF1ckZV6jQ+4P2IqlkhBs5mK/ jJgkeV8yRg7k3PHYvrQ9W5dLoVSW4Qfd0ipkAFtBIREncz8V7fWRkb26WWOe5ebPNHHh djMkhkiFOyhQd0vORc5I9V12n5qWxAsQih5WA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=q0i0qEhtGUfHHn+Yc4Go983eigJacjbzdXH2sk5/65Nc5TLVu2XET6KuVoxNv7piiO Cr1+V5s5nGPUTzkBuZW/Q7bfV7n4PjJ8zNcCsBvdSIexF1iPfurmjxqLja4nvtiIxB1l 5WiPFRBJEUZ+0utOj2lj93vhEcVedliEfqSXE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1e16a9ed0812201340rbe893a1v567b0a3c05e55ce6@xxxxxxxxxxxxxx>
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: <dc64e7230812200843k7675e8e8ve208ba044c61ef85@xxxxxxxxxxxxxx> <1e16a9ed0812201003o5ad52669ha4675aa2367b6f56@xxxxxxxxxxxxxx> <dc64e7230812201337i1bec7b31p6bdeec330a6d149b@xxxxxxxxxxxxxx> <1e16a9ed0812201340rbe893a1v567b0a3c05e55ce6@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Sat, Dec 20, 2008 at 4:40 PM, Todd Deshane <deshantm@xxxxxxxxx> wrote:
On Sat, Dec 20, 2008 at 4:37 PM,  <maillists0@xxxxxxxxx> wrote:
>
>
>
>>
>> This should give you the pieces you are missing:
>> (kpartx is your friend here)
>>
>> http://www.centos.org/docs/5/html/Virtualization-en-US/ch-virt-accessing-data.html

> Thanks! I have a question. I'm not sure what to use for "guest1" in this
> line: kpartx -av /dev/xen/guest1. In /dev/xen on my system, I have this list
> of devices:
>
> blktap0  blktap1  evtchn  tapctrlread1  tapctrlwrite1
>
> How do I know which one my guest is using?

Those instruction assume that you are working with logical volumes.
The kpartx should be applied to the disk image file, whatever that
may be. That will then make the partitions available in /dev/mapper.
If you are working with LVs either as the disk or on the disk, then
the standard LVM commands apply.


Hope that helps.

Cheers,
Todd

--
Todd Deshane
http://todddeshane.net
http://runningxen.com

I figured that's what was going on. When I try to use kpartx -av (or -lv for a dry run) against the files I'm using as disk images though, I get a simple "failed to stat() filename" message. The machines start just fine, though, and I can manually stat them. No



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>