How to hot plugin a new vhost-user-blk-pci device to running VM?

Michal Prívozník mprivozn at redhat.com
Mon May 24 11:04:44 UTC 2021


On 5/21/21 5:28 PM, 梁朝军 wrote:
> Thanks all of you for your help.
> One more question regarding  vhost-user-blk-pci type device,  how to identify a vhost-blk disk in QEUM VM ?  for example, disk name looks like vda,vdb,..., but that some application in VM want to detect  that a certain entry is really the device it is waiting for. Specific for windows , they always show as disk 0, 1, 2….etc
> Is there any way to identify those disk with each other in VM?

In general no. Usually disks will be enumerated sequentially - thus the
first disk on a sata/scsi/usb/.. bus will be sda, the second will be
sdb, and so on. But libvirt can't guarantee it - the same way you can't
guarantee how a disk is going to be called with real HW.

Michal




More information about the libvir-list mailing list