Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual machine Arm64 does not see USB devices Host Rasp pi4 #152

Open
pro100805 opened this issue Dec 31, 2024 · 5 comments
Open

Virtual machine Arm64 does not see USB devices Host Rasp pi4 #152

pro100805 opened this issue Dec 31, 2024 · 5 comments

Comments

@pro100805
Copy link

pro100805 commented Dec 31, 2024

hello, by running this command: sudo apt search qemu-server

I get the following response

Sorting... Done
Full Text Search... Done
libpve-guest-common-perl/unknown,now 5.1.6 all [installed,automatic]
Proxmox VE common guest-related modules

qemu-server/unknown,now 8.3.3+port2 arm64 [installed,automatic]
Qemu Server Tools

qemu-server-dbgsym/unknown 8.3.3+port2 arm64
debug symbols for qemu-server

and : qemu-system-arm --version

I get the following response

QEMU emulator version 9.2.0 (pve-qemu-kvm_9.2.0-1+port2)
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers

virtual machine with router (and WIN 11) do not see USB devices, with virtual machine on Ubuntu everything is fine
tell me what I need to do

#135

@pro100805
Copy link
Author

Hi, i have a virtual computer with an arm 64 router. In version 8.2.7 the modem connected via USB worked fine. After the update the router stopped seeing the USB modem. The hardware remains unchanged

@pro100805 pro100805 changed the title Virtual machine does not see USB devices Virtual machine Arm64 does not see USB devices Host Rasp pi4 Dec 31, 2024
@jiangcuo
Copy link
Owner

jiangcuo commented Jan 2, 2025

https://github.com/jiangcuo/qemu-server/blob/e48ebea4570c64547cc1747523f6032e4d68e621/PVE/QemuServer/PCI.pm#L181

You can modify the bus number of this xhci to 0 and use an available addr.

'xhci' => { bus => 0,addr => 17 }         /usr/share/perl5/PVE/QemuServer/PCI.pm

@pro100805
Copy link
Author

having made changes in the PCI.pm file, the following message appears when trying to start the virtual machine

kvm: -device qemu-xhci,p2=15,p3=15,id=xhci,bus=pcie.0,addr=0x1: PCI: slot 1 function 0 not available for qemu-xhci, in use by usb-ehci,id=ehci
TASK ERROR: start failed: QEMU exited with code 1

@jiangcuo
Copy link
Owner

jiangcuo commented Jan 2, 2025

Use addr=17 or other free

@pro100805
Copy link
Author

thanks, I have selected the following values and everything works

'xhci' => { bus => 0, addr => 30 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants