[SOLVED] Mount usb device on virtual machine

issa2020

Member
Sep 9, 2020
78
4
13
Hello Evrybody,

so i create a linux machine ubuntu and i want add a usb device on it

on my serveur proxmox :

Code:
root@proxmox:~# lsusb | grep AVerMedia
Bus 001 Device 002: ID 07ca:a110 AVerMedia Technologies, Inc.

so now i add my device on my virtual machine with this command :


Code:
root@proxmox:~# qm set 110 -usb0 host=07ca:a110
update VM 110: -usb0 host=07ca:a110
root@proxmox:~# qm monitor 110


ok so now i connect on my virutal machine and i get this :


Code:
stagiaire@plex:~$ lsusb
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

do u know why my USB device is not Up on my virtual linux


thanks all
 
Last edited:
hi,


some changes require a guest reboot. have you rebooted the virtual machine after making the change?
 
yes i reboot :

So i try in command line to see what usbhost mounter :

Code:
root@proxmox:~# qm monitor 110

Entering Qemu Monitor for VM 110 - type 'help' for help

qm> info usbhost

  Bus 1, Addr 2, Port 3, Speed 480 Mb/s

    Class 00: USB device 07ca:a110, TD110


but on the virtual machine nothing : /


Code:
stagiaire@plex:~$ lsusb
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

and i reboot after adding the usb
i can see this in the web interface

1599665910411.png

other information this my conf vm files :



Code:
bootdisk: scsi0
cores: 1
ide2: none,media=cdrom
memory: 1024
name: Plex
net0: virtio=02:15:B3:D6:19:45,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
parent: FreshInstall
scsi0: LUN01:vm-110-disk-0,size=8G
scsihw: virtio-scsi-pci
smbios1: uuid=f4314f69-a8d8-4263-a172-3f3f7617a269
sockets: 1
usb0: host=01-3
vmgenid: 163d349d-41e6-4227-82be-4ec74bd927b8

[PENDING]
agent: 1
usb0: host=07ca:a110

[FreshInstall]
bootdisk: scsi0
cores: 1
ide2: none,media=cdrom
memory: 1024
name: Plex
net0: virtio=02:15:B3:D6:19:45,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
runningcpu: kvm64,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+lahf_lm,+sep
runningmachine: pc-i440fx-5.0+pve0
scsi0: LUN01:vm-110-disk-0,size=8G
scsihw: virtio-scsi-pci
smbios1: uuid=f4314f69-a8d8-4263-a172-3f3f7617a269
snaptime: 1599244210
sockets: 1
vmgenid: a23a9fbb-2d55-467b-b303-fa98fb8473d9
vmstate: LUN01:vm-110-state-FreshInstall

[avantInstallUSB]
bootdisk: scsi0
cores: 1
ide2: none,media=cdrom
memory: 1024
name: Plex
net0: virtio=02:15:B3:D6:19:45,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
parent: FreshInstall
runningcpu: kvm64,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+lahf_lm,+sep
runningmachine: pc-i440fx-5.0+pve0
scsi0: LUN01:vm-110-disk-0,size=8G
scsihw: virtio-scsi-pci
smbios1: uuid=f4314f69-a8d8-4263-a172-3f3f7617a269
snaptime: 1599649738
sockets: 1
vmgenid: a23a9fbb-2d55-467b-b303-fa98fb8473d9
vmstate: LUN01:vm-110-state-avantInstallUSB
 
Last edited:
it's still listed as a pending change (note the different color) - that means it's not applied yet.

try running: qm stop VMID && qm start VMID
 
ok i can see the USB on my guest OS, but i can"t install the driver

how to be sure communication is work please ?



How my god, i remove the USB, and i can"t stop restart or acccess consol to the VM


got this :


can't lock file '/var/lock/qemu-server/lock-110.conf' - got timeout
 
Last edited:
welll, i thinks the mount usb works on the guest OS, but now i can make the usb worls on command line i see this :

1599668801883.png


but my TVHEADEND don't see it :'(-


1599668826375.png
Grrrr what is wrong :'(
 
Hello there can u tell me what the difference :


View attachment 19796


Using Id USB and using USB PORT

please

if you pass a device, a specific device will be passed. if you pass the port, the device on the specified port will be passed.

welll, i thinks the mount usb works on the guest OS, but now i can make the usb worls on command line i see this :

1599668801883.png



but my TVHEADEND don't see it :'(-
maybe you are missing some packages? do you see any errors in the logs?
 
  • Like
Reactions: issa2020
hello ok works for me !!

i got an usb Key connect on PROXMOX and i m using it over my virtual machine so cooool !!!
 
great!

please mark the thread as [SOLVED] so others know what to expect :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!