qemu-img vdi support

Patches which Fabrice has not yet added to the CVS. When You're adding a patch, please add some simple instructions with the following info: 1. For which version of QEMU your patch is (CVS or my snapshots are always most recommended) 2. Simple instructions how to apply the patch 3. Few remarks about the patch..

qemu-img vdi support

Postby bmwiedemann on Sat Jan 03, 2009 10:28 pm

This patch is based on the patch from http://blogs.sun.com/VirtualGuru/entry/ ... vm_virtual and includes 2 minor compile fixes plus one update so that it now applies to the recent qemu-0.9.2svn20081008 (as shipped with OpenSUSE-11.1)
It should allow using the qemu-img tool to convert between VirtualBox Virtual Disk Image (VDI) files and all qemu image formats thus greatly enhancing compatibility between the two technologies.

http://lsmod.de/~bernhard/linux/qemu-img-vdi.patch

apply as usual with patch -p0

Ciao
Bernhard M.
bmwiedemann
 
Posts: 0
Joined: Sat Jan 03, 2009 10:10 pm

Re: qemu-img vdi support

Postby bmwiedemann on Sun Feb 15, 2009 9:54 pm

I updated the patch to fix a small bug in VDI_probe and change the "VDI" format string to lower-case when I was at it.
Also I found out, that this patch allows qemu and KVM to directly access VirtualBox Disk Images natively - i.e. just run the OS within.
bmwiedemann
 
Posts: 0
Joined: Sat Jan 03, 2009 10:10 pm

Re: qemu-img vdi support

Postby bmwiedemann on Sun Jun 28, 2009 9:09 pm

more recent versions of qemu (I used kvm-87) need a slightly different modification.
The main code all gets into block/vdi.c now:
http://lsmod.de/~bernhard/linux/vdi.c
and the Makefile needs to list block/vdi.o right next to block/vmdk.o
There is probably some way to let configure put it there. Anyone knows?
bmwiedemann
 
Posts: 0
Joined: Sat Jan 03, 2009 10:10 pm


Return to Patches Repository

Who is online

Users browsing this forum: No registered users and 1 guest