I'm using a real drive as my windows 11 VM drive in libvirt using QEMU. This is working fine, however, when I open task manager, the drive shows as "QEMU HARDDISK", and shows up as an HDD (the drive is a sata SSD). My goal is to make sure the drive shows up as it is. This means showing the real vendor, name, using the real UUID (not quite sure how to test that one), and showing the correct type (SSD instead of HDD). How can I accomplish this?
scsi-block
device in qemu (while what you are using is probablyscsi-hd
oride-hd
, depending on the type of the emulated host controller). No idea how to make libvirt use it though, and first you'll need to replace the host controller withvirtio-scsi
if that's not what you have been using. The host controller requires a driver that Windows doesn't ship, and as always, changing boot drive host controller could render the system unbootable. (Besides, since the virtio windows drivers are pretty "fragile", usingscsi-block
could lead to performance or other issues.)bus="sata"
indicates that you are emulating a SATA controller and therefore, AFAIKide-hd
is used behind the scene. It seems that if you add a virtio-scsi controller to the VM, and changebus
toscsi
, you would be able to use virtio-scsi + scsi-hd, but there doesn't seems to be a "native" libvirt way to make use of scsi-block...wwn
on the page and take a look at items nearby.)