Hello.
Just read this https://pve.proxmox.com/wiki/USB_Devices_in_Virtual_Machines and thought trying a tp-link nano usb wireless adapter and a memory stick on a Centos vm. Running latest stable Proxmox.
However I got extremly confused with the different device assignment methods.
"How to connect devices to a running machine without shutting it down is demonstrated by the examples from above. If device is assigned in that way the assignment is valid until the machine stops. The assignment is independent of the actual status of the device (whether it´s currently plugged in or not), i.e. it can be plugged in and out multiple times and will be always assigned to the VM; regardless if the "Productid" or "busaddress" method is used."
By the examples from above? Taking the Alcor stick example, how does one assign it to VM without shutting it down? With "qm set 804 -usb0 host=058f:6387" on Proxmox host's command line, or with "device_add usb-host,vendorid=0x058f,productid=0x6387,id=someid" in qm monitor? What's the difference between them?
What happens when VM stops? Is there harm if device is physically unplugged from physical host?
Regarding removing device from VM, if I wanted to permanently remove it the correct way would be first "device_del <idofyourdevice>" in qm monitor, then "qm set VMID -delete 'usbX' " in host's command line?
What happens -and what harm- in VM if just doing 2nd step without doing 1st step?
Finally, from "qm set VMID -delete 'usbX' " and /etc/pve/qemu-server/804.conf, is there a preferred way to remove device from config, or are they just 2 different ways of doing same task?
Thanks very much beforehand for help.
Just read this https://pve.proxmox.com/wiki/USB_Devices_in_Virtual_Machines and thought trying a tp-link nano usb wireless adapter and a memory stick on a Centos vm. Running latest stable Proxmox.
However I got extremly confused with the different device assignment methods.
"How to connect devices to a running machine without shutting it down is demonstrated by the examples from above. If device is assigned in that way the assignment is valid until the machine stops. The assignment is independent of the actual status of the device (whether it´s currently plugged in or not), i.e. it can be plugged in and out multiple times and will be always assigned to the VM; regardless if the "Productid" or "busaddress" method is used."
By the examples from above? Taking the Alcor stick example, how does one assign it to VM without shutting it down? With "qm set 804 -usb0 host=058f:6387" on Proxmox host's command line, or with "device_add usb-host,vendorid=0x058f,productid=0x6387,id=someid" in qm monitor? What's the difference between them?
What happens when VM stops? Is there harm if device is physically unplugged from physical host?
Regarding removing device from VM, if I wanted to permanently remove it the correct way would be first "device_del <idofyourdevice>" in qm monitor, then "qm set VMID -delete 'usbX' " in host's command line?
What happens -and what harm- in VM if just doing 2nd step without doing 1st step?
Finally, from "qm set VMID -delete 'usbX' " and /etc/pve/qemu-server/804.conf, is there a preferred way to remove device from config, or are they just 2 different ways of doing same task?
Thanks very much beforehand for help.