I'm trying to run the OS of my x64 NAS in a VM with kvm and libvirt. I made an image of the internal flash with dd. The image has a few partitions, starting with an EFI partition.
virt-install -n mynas --os-type none --ram 1024 --vcpus 2 --boot uefi \
--disk path=mmc.img,bus=virtio,format=raw
The initram boots fine but fails when trying to mount /dev/mmcblk0p2
.. this is because the disk is seen as /dev/vda
, not as a flash device.
Is there a way to get my disk detected as /dev/mmcblk0
in the guest?