Guest disks are LVM block device and qcow2 images.
Using both Virtio-SCSI and Virtio-blk
With “disk mappings” I mean how can I tell which device on host are mapped to which device on guest?
I tried the command:
virt-filesystems --filesystems --long --uuid --domain W10_SQL_Test
Which give this result:
Name Type VFS Label Size Parent UUID /dev/sda1 filesystem ntfs Recovery 523239424 - 18FC1BBFFC1B95DA /dev/sda2 filesystem vfat - 103809024 - 1A22-6B91 /dev/sda4 filesystem ntfs Drive-C 106727211008 - E66A260F6A25DD55 /dev/sdb2 filesystem ntfs Drive-E 53668216832 - 1C287CC4287C9E88 /dev/sdc2 filesystem ntfs Drive-D 53668216832 - EE18A5E618A5ADD1 /dev/sdd2 filesystem ntfs Drive-F 53668216832 - 9A0C8F9B0C8F7155
Device names are not the same as the one specified in the VM XML so that cannot be used.
And I’ve not been able to find the UUID anywhere in the Windows guest, Windows is using completely different IDs (where does these UUID come from?)
I did succeed by looking at the controller address in Windows (e.g. “PCI bus 7, device 0, function 0” which is equal to the address specified in the VM XML) and then lookup the child-devices of the controller in device-manager. But that’s a lot of manual work…any easier way?