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

RE: [Xen-API] How Pygrub work on VHD

Thanks for your quick response,

my understanding is driver (maybe in user space) behind /dev/xvda
translates raw disk image format to VHD image format on demand, when
pygrub works on /dev/xvda

What I'm doing is,

1. Create a lvm vdi on iscsi SR,
2. dd a vhd file to this vdi,
3. attach this vdi to a (empty)PV vm as device 0(vbd),
4. mark this vbd bootable,
5. then start this vm

There are errors, it complains, /dev/xvda is not a disk image,

I suspect xapi takes this vdi disk as a raw disk image,

how can I tell xapi this vdi is vhd format?
Does this works by dding vhd file to a lvm logical volume on iscsi SR?


Thanks,
- Anthony






On Mon, 2010-01-25 at 12:40 -0800, Dave Scott wrote:
> Hi,
> 
> > As I know Pygrub only works on disk image(may be wrong :-)), Can
> > somebody explain how pygrub works on VHD image file? I just check the
> > pygrub code, it still checks if it's disk image.
> > 
> > Thanks in advance.
> 
> Xapi attaches the vhd to dom0 as (eg) /dev/xvda and runs pygrub on the block 
> device.
> 
> Cheers,
> Dave
> 


_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api