當前位置:編程學習大全網 - 網站源碼 - qemu動態設備管理(hotplug)

qemu動態設備管理(hotplug)

1.? 直接采用monitor管理

$qemu-kvm? -usb -monitor stdio

(qemu) device_add usb-host,vendorid=0x03f0,productid=0x134a,id=usb0 #增加usb設備

(qemu) device_del usb0 ?#刪除對應id的usb設備

2. 采用virsh管理:

virsh qemu-monitor-command --hmp testwin7 'device_del usb-host,vendorid=0x03f0,productid=0x134a,? id=usbxx0'

刪除:?virsh qemu-monitor-command testwin7 --hmp "device_del usbx"

查詢:?virsh qemu-monitor-command testwin7 --hmp "info usb"

  • 上一篇:服務器上傳源碼提示網絡中斷
  • 下一篇:很多企業認為OA適合中小企業,BPM適合大中型企業。真的是這樣嗎?
  • copyright 2024編程學習大全網