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-devel

Re: [Xen-devel] fdisk hard drive image

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] fdisk hard drive image
From: Mark Williamson <Mark.Williamson@xxxxxxxxxxxx>
Date: Fri, 11 Feb 2005 17:04:50 +0000
Cc: Gonéri Le Bouder <goneri@xxxxxxxxxxxxx>
Delivery-date: Fri, 11 Feb 2005 17:15:21 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <420C9B8C.9020300@xxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <420C9B8C.9020300@xxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.7.1
> Currently, i use a partition image to run my XenU (/dev/hda2) and "fdisk
> -l" return nothing and can't open /dev/hda .

So your config file looks like:
disk = ['file:/path/to/file,hda2,w']

Then in the guest you run:
# fdisk -l /dev/hda

And get "can't open /dev/hda"?

That's to be expected, since you're using a Xen "virtual" partition and there 
isn't a real hda behind it.

> I want to use a full hard drive image (not partition image) from my Xen0
> as hda in my XenU. I want to be able to run fdisk on hda in my XenU to
> list and regenerate partitions.

Should work as far as I know.

> I tried with this (/img is my hard drive image):
>
> disk = ['/img,hda,w']

This should be:
disk = ['file:/img,hda,w']

otherwise the tools don't know what kind of backing you want for the VBD.

> disk = ['phy:loop3,hda,w'], loop3 is /img attached to /dev/loop3 by
> losetup.

That should just work if the setup of /dev/loop3 worked OK.  Can you 
mount /dev/loop3 in dom0 OK?

Can you please post what errors you're getting from these attempts?

Cheers,
Mark

> Is it possible ?
> Can anyone help me ?
> Thanks in advance.
>
> Regard,
>
>     Gonéri Le Bouder
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id396&op=Click
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

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