W
W
waltaki2021-03-26 20:41:20
CentOS
waltaki, 2021-03-26 20:41:20

How to add vdi support to qemu-img?

# qemu-img convert -f vdi -O qcow2 vs50_fixed.vdi vs50_fixed.qcow2
qemu-img: Could not open 'vs50_fixed.vdi': Unknown driver 'vdi'


How to add vdi support to qemu-img?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2021-03-26
@waltaki

How to add vdi support to qemu-img?

Take qemu fairly new, with vdi support (it's been there for > 10 years, this part shouldn't cause problems). Configure it with the key --enable-vdi. Build. Something like that:
$ wget https://download.qemu.org/qemu-5.2.0.tar.xz
$ tar -xf qemu-5.2.0.tar.xz
$ mkdir build
$ cd build
$ ../qemu-5.2.0/configure --prefix=`pwd`/root --enable-vdi --enable-tools --disable-user --disable-system
$ make && make install
$ root/bin/qemu-img --help | grep vdi
Supported formats: blkdebug blklogwrites blkverify bochs cloop compress copy-on-read dmg file ftp ftps host_cdrom host_device http https luks nbd null-aio null-co nvme parallels qcow qcow2 qed quorum raw replication throttle vdi vhdx vmdk vpc vvfat

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question