Hi,
I have a dual boot system Win10 and Tumbleweed and now want to make a image of the WIN 10 installation and use it with QEMU .
So I made a dd image of the partition, the image is readable, I can convert it into a qcow2 file, but I don’t know how to boot this image in QEMU.
lsbk output of the pysical disk
nvme0n1 259:0 0 1,8T 0 disk
├─nvme0n1p1 259:1 0 900M 0 part
├─nvme0n1p2 259:2 0 260M 0 part /boot/efi
├─nvme0n1p3 259:3 0 128M 0 part
├─nvme0n1p4 259:4 0 88G 0 part /home/win10
├─nvme0n1p5 259:5 0 21,5G 0 part
├─nvme0n1p6 259:6 0 1,7T 0 part /
└─nvme0n1p7 259:7 0 7,6G 0 part [SWAP]
the imagefile is from partition p4
Grub boots Windows Boot Manager (on /dev/nvme0n1p2)
What can I do to boot this image. I work with the graphical virt-manager
I would start with virtual disk having two partitions - ESP and Windows. I would also replicate GUID of both partitions from the physical ones. Copying bootloader from the physical ESP may work, otherwise you would need to repair Windows boot.
@ubecker in the windows install, select custom, and use the partitioner tool… you need three efi, MS reserved 16MB and the windows partition, but it should do it automatically?
I want to use a image of an existing win10 installation, which I create with dd. I also have converted the image to qcow2, but can’t boot this image, because there is o bootmanager in this partition, see original posting.
Now I’m stuck at the advice from #2 of this thread
@ubecker Not really sure, might be easier to do a fresh install of Windows? In the past I have used a physical disk with Windows on it’s own separate SATA controller with vfio-pci for the controller and qemu only…
You create virtual disk and partition it from within VM. Or you can do it directly on the host. If virtual disk is of type raw, you can simply use any tool like fdisk directly on the underlying file. If virtual disk is of type qcow2 or similar, you can use qemu-nbd to export it as a block device.