cancel
Showing results for 
Search instead for 
Did you mean: 

ctrlX QEMU USB devices

ctrlX QEMU USB devices

WolfgangDannert
Established Member

Hello,

how can a USB device be mounted in the ctrlX QEMU VM and used inside?

I have tested the procedure in the QEMU documentation (https://qemu.readthedocs.io/en/latest/system/devices/usb.html?highlight=ICH9#companion-controller-su...) but I only see the USB controllers and not the USB devices.

Detected USB controllers in dmesg:

WolfgangDannert_0-1669989983714.png

Here are the different (separately) parameters I tested in the launch.bat file:

...
-usb ^
-device usb-host,vendorid=0x1234,productid=0x5678 ^
-device usb-ehci,id=ehci ^
-device usb-host,bus=usb-bus.0,vendorid=0x1234,productid=0x5678 ^
-device usb-host,bus=ehci.0,vendorid=0x1234,productid=0x5678

-device qemu-xhci

The vendor and product ID are sample values. For testing I took the values from the USB stick I want to use.
With an Ubuntu 20.04 in an Oracle VM I can access the USB device. With QEMU I have not been able to do this yet.
Can someone help me here?
Thanks

4 REPLIES 4

CodeShepherd
Community Moderator
Community Moderator

We will check this.

nickH
Community Moderator
Community Moderator

Hello, 

I also tried to get a usb-device into my qemu App Build Environment without success. It looks the same like your output looks like. Unfortunatly I can't figure out the reason for this at the moment. 

In the meenwhile you could also use your VirtualBox Ubuntu20 VM as a build environment. You could look at this documentation on how to do that. 

Best regards,

Nick

CodeShepherd
Community Moderator
Community Moderator

Any news here or can this topic be closed?

A USB device could be connected and detected within the VirtualBox Ubuntu20 VM.

The problem persists in the QEMU VM.

The use of the QEMU VM is still the target.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist