Add support for VDI images
PATCH 1/1 Add support for VDI images
This patch adds support for reading, writing and creation (and thus conversion) of VDI images (VirtualBox image format). Creation of derived images above read-only base images also works, through a hack (the base image filename is stored as the comment of the derived image)
It's mainly a thin wrapper around VirtualBox OSE source code.
It may not compile on non-Linux hosts, and it definitely won't work on big endian hosts. So, there's still a bit of work to do for those interested by running it on those platforms.
Even
Makefile +1 -1
@@ -32,7 +32,7 @@ recurse-all: $(patsubst %,subdir-%, $(TARGET_DIRS)) -qemu-img$(EXESUF): qemu-img.c cutils.c block.c block-raw.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c block-bochs.c block-vpc.c block-vvfat.c block-qcow2.c +qemu-img$(EXESUF): qemu-img.c cutils.c block.c block-raw.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c block-bochs.c block-vpc.c block-vvfat.c block-qcow2.c block-vdi.c $(CC) -DQEMU_TOOL $(CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) $(LDFLAGS) $(BASE_LDFLAGS) -o $@ $^ -lz $(LIBS) dyngen$(EXESUF): dyngen.c
Makefile.target +1 -1
@@ -367,7 +367,7 @@ VL_OBJS+=cutils.o VL_OBJS+=host-utils.o VL_OBJS+=block.o block-raw.o -VL_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o block-bochs.o block-vpc.o block-vvfat.o block-qcow2.o +VL_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o block-bochs.o block-vpc.o block-vvfat.o block-qcow2.o block-vdi.o VL_OBJS+=irq.o ifdef CONFIG_WIN32 VL_OBJS+=tap-win32.o
block-vdi.c +3111 -0
2,984 lines not on this page · raw message
block.c +1 -0
Lines of this file are not shown. View the raw message.
vl.h +1 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
Hi,
Quoted 8 lines
This patch adds support for reading, writing and creation (and thus conversion) of VDI images (VirtualBox image format). Creation of derived images above read-only base images also works, through a hack (the base image filename is stored as the comment of the derived image)
It's mainly a thin wrapper around VirtualBox OSE source code.
It may not compile on non-Linux hosts, and it definitely won't work on big endian hosts. So, there's still a bit of work to do for those interested by running it on those platforms.
What about writing a native implementation? At least with read support, for importing from Virtualbox.
--
Alex