我有Qemu 4.2.0并且Debian Testing Bullseye我Kernel 5.4.0需要热插拔 USB 设备。
目前我将我的 USB 设备与
qemu... -usb -device usb-host,hostbus=x,hostaddr=y
但是当我物理移除设备时,我无法再从 VM (Win7) 中检测到它。
那么,我应该怎么做才能向虚拟机发送插入/拔出 USB 信号?
我有Qemu 4.2.0并且Debian Testing Bullseye我Kernel 5.4.0需要热插拔 USB 设备。
目前我将我的 USB 设备与
qemu... -usb -device usb-host,hostbus=x,hostaddr=y
但是当我物理移除设备时,我无法再从 VM (Win7) 中检测到它。
那么,我应该怎么做才能向虚拟机发送插入/拔出 USB 信号?
您可以通过 qemu 监视器进行插拔。请参阅https://en.wikibooks.org/wiki/QEMU/Monitor。
热插拔 USB 设备:
device_add usb-host,hostbus=2,hostport=1.2.2,id=idofyourdevice
热移除 USB 设备:
device_del <idofyourdevice>