Softaculous


Topic : Attach USB Options


Posted By: bytemenetworking on October 6, 2016, 4:09 pm
I would like to see an option to attach connected usb devices to guest vms for KVM OpenVZ and XEN

I was able to get connected USB KVM's working very easily with a temp solution but would like to see a permanent way to add them from the GUI.

In the example below I was able to add a connected USB WiFI adapter to the guest VM.

Step one:
Identify the connected USB device from cli.
# lsusb
Bus 001 Device 002: ID 0bda:8171 Realtek Semiconductor Corp. RTL8188SU 802.11n WLAN Adapter

Step two:
Create xml config to apply to running VM.
Contents of wifi.xml

    <hostdev mode='subsystem' type='usb'>
      <source>
      <vendor id='0x0bda'/>
      <product id='0x8171'/>
      </source>
    </hostdev>

Step three:
Apply the wifi.xml config to the running VM.

# virsh attach-device v1002 /saved/path/to/wifi.xml

Step four:
Go to VM and verify its connected. For my case I tried with Linux and Windows and both showed the connected wireless adapter and both functioned.

To remove "detach" adapter:
# virsh detach-device v1002 /saved/path/to/wifi.xml


If you guys could add this feature it would be sweet. I see this being useful for SysAdmins that need to backup and move data via external USB device to ship to another datacenter.

Thanks for the read.

Casey

Posted By: asim_shaikh on October 7, 2016, 7:22 am | Post: 1
Hi,

Thank you for your valuable suggestion.

We have noted down your feature request.



-----------------------
Regards,
Virtualizor Team
http://www.virtualizor.com

Posted By: cambo.host on August 15, 2017, 8:26 am | Post: 2
+1 for this feature request

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.