Re: vhd file with windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



mattias <mjonsson1986@xxxxxxxxx> 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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux