* vhd file with windows
@ 2021-09-22 13:22 mattias
2021-09-22 13:41 ` Vitaly Kuznetsov
0 siblings, 1 reply; 2+ messages in thread
From: mattias @ 2021-09-22 13:22 UTC (permalink / raw)
To: kvm
if i have a vhd image created by e.g virtualbox
can i boot it with kvm?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: vhd file with windows
2021-09-22 13:22 vhd file with windows mattias
@ 2021-09-22 13:41 ` Vitaly Kuznetsov
0 siblings, 0 replies; 2+ messages in thread
From: Vitaly Kuznetsov @ 2021-09-22 13:41 UTC (permalink / raw)
To: mattias; +Cc: kvm
mattias <mjonsson1986@gmail.com> writes:
> 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
--
Vitaly
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-22 13:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22 13:22 vhd file with windows mattias
2021-09-22 13:41 ` Vitaly Kuznetsov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.