mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
fix(host): usb host device add device_id
This commit is contained in:
@@ -520,7 +520,7 @@ func GetNicDeviceModel(name string) string {
|
||||
}
|
||||
|
||||
func generateUsbDeviceOption(usbControllerId string, usb *desc.UsbDevice) string {
|
||||
cmd := fmt.Sprintf("-device %s,bus=%s.0", usb.DevType, usbControllerId)
|
||||
cmd := fmt.Sprintf("-device %s,bus=%s.0,id=%s", usb.DevType, usbControllerId, usb.Id)
|
||||
cmd += desc.OptionsToString(usb.Options)
|
||||
return cmd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user