vhd file with windows
if i have a vhd image created by e.g virtualbox
can i boot it with kvm?
Quoted 3 lines · mattias
if i have a vhd image created by e.g virtualbox
can i boot it with kvm?
With QEMU/KVM, yes, you can use something like (old but still supported syntax):
$ qemu-system-x86_64 -name guest=win10 -machine q35,accel=kvm -cpu ... -m ... -drive file=/var/lib/libvirt/images/ws2019_gen1.vhdx,format=vhdx,if=none,id=drive-ide0-0-0 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -vnc :1
alternatively, you can convert the image to QCOW2:
$ qemu-img convert -O qcow2 /var/lib/libvirt/images/ws2019_gen1.vhdx /var/lib/libvirt/images/ws2019_gen1.qcow2
Signature · 1 line
Vitaly