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

Re: [Xen-users] How to create an img.

  • To: deshantm@xxxxxxxxx
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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.


Todd Deshane

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



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.