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

Re: [Libguestfs] guestfs_list_partitions with vdi



On Thu, Mar 14, 2013 at 12:51:10PM -0400, Skippy VonDrake wrote:
> I'm using a Windows raw disk image that is "converted" to the VDI
> format by custom code that prepends a header to the image.
> 
> I use 'vdi' for GUESTFS_ADD_DRIVE_OPTS_FORMAT of
> guestfs_add_drive_opts().
> After launching the appliance, the call to guestfs_list_partitions()
> results in an empty list.
> Is there a way to add the drive but have an offset into the image
> file as a "starting point"?
> So that it could skip the header which apparently is causing the
> issue.

Essentially libguestfs can do whatever qemu can do.  In this case it
seems as if qemu can't recognize the "vdi" image, nor (looking at the
qemu man page) does it seem that qemu is able to use an offset into an
image.

You'd have to add this feature to qemu, which is probably a simple
enough patch if you know what to do.

The other alternative would be some sort of Linux layer that can
modify offsets in images, eg. something using FUSE or an LD_PRELOAD
library.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)


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