USB Passthrough to Linux guest (Community Edition)

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
zarianu
Posts: 1
Joined: Fri May 26, 2023 2:45 pm

USB Passthrough to Linux guest (Community Edition)

Post by zarianu » Fri May 26, 2023 3:30 pm

Hello fellow labbers,

any success stories passing through USB device (WiFi-dongle in my case) from host to guest linux system?

I'm using bare metal installation of latest CE at the moment with no luck - I've tried recipe from EVE-NG Pro Cookbook (changing machine type to q35 and adding ',if=virtio -usb -device usb-host,hostbus=x,hostaddr=y' to QEMU custom options), tried to add '-device qemu-xhci -device usb-host,hostbus=x,hostaddr=y' based on QEMU docs.

Hope you could help me with the issue, thanks in advance.

Here's my system info:
kost@eve-ng:~$ eve-info
Fri 26 May 2023 03:20:40 PM UTC
---------------Packages Installed----------------
ii eve-ng 5.0.1-19
ii eve-ng-dynamips 5.0.1-1
ii eve-ng-pro-guacamole 5.0.1-1
ii eve-ng-qemu 5.0.1-1
ii eve-ng-schema 5.0.1-1
ii eve-ng-vpcs 5.1-eve-ng
ii linux-image-5.17.8-eve-ng-uksm-wg+ 1

---------------Hostname--------------------------
Static hostname: eve-ng.zln.lan
Operating System: Ubuntu 20.04.6 LTS
Kernel: Linux 5.17.8-eve-ng-uksm-wg+
Architecture: x86-64
---------------Disk Usage------------------------
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 1.8M 6.3G 1% /run
/dev/sda3 192G 80G 102G 45% /
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/loop1 64M 64M 0 100% /snap/core20/1891
/dev/loop3 92M 92M 0 100% /snap/lxd/24061
/dev/loop2 68M 68M 0 100% /snap/lxd/22753
/dev/loop0 64M 64M 0 100% /snap/core20/1852
/dev/loop5 54M 54M 0 100% /snap/snapd/19122
/dev/loop4 54M 54M 0 100% /snap/snapd/18933
/dev/sda1 1.1G 9.5M 1.1G 1% /boot/efi
tmpfs 6.3G 0 6.3G 0% /run/user/1000

---------------CPU Info--------------------------
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 46 bits physical, 48 bits virtual
CPU(s): 24
On-line CPU(s) list: 0-23
Thread(s) per core: 2
Core(s) per socket: 12
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 63
Model name: Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz
Stepping: 2
CPU MHz: 1423.182
CPU max MHz: 3100.0000
CPU min MHz: 1200.0000
BogoMIPS: 4600.18
Virtualization: VT-x
L1d cache: 384 KiB
L1i cache: 384 KiB
L2 cache: 3 MiB
L3 cache: 30 MiB
NUMA node0 CPU(s): 0-23
Vulnerability Itlb multihit: KVM: Mitigation: VMX disabled
Vulnerability L1tf: Mitigation; PTE Inversion; VMX vulnerable
Vulnerability Mds: Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Meltdown: Vulnerable
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Vulnerable, IBPB: disabled, STIBP: disabled
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good n
opl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsa
ve avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single intel_ppin ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cq
m xsaveopt cqm_llc cqm_occup_llc dtherm ida arat pln pts md_clear flush_l1d
Regards,
Konstantin

rusty725
Posts: 360
Joined: Thu Mar 29, 2018 4:19 pm

Re: USB Passthrough to Linux guest (Community Edition)

Post by rusty725 » Thu Jun 13, 2024 10:54 pm

not all dongles might work, depends on drivers ubuntu has.

Post Reply