Just a question : On NetBSD,qemu allows passing an nVidia GPU from the host to a Linux and /or Windows guest ? thanks.
On Mon, Mar 24, 2025 at 9:31 PM Vitaly Shevtsov <shev.vt1...@gmail.com> wrote: > It's just a USB stick (Kingston DataTraveler) > > It's recognized by the kernel as: > [ 15381.341529] umass0 at uhub5 port 2 configuration 1 interface 0 > [ 15381.341529] umass0: Kingston (0x0951) DataTraveler 3.0 (0x1666), > rev 2.10/0.01, addr 7 > [ 15381.341529] umass0: using SCSI over Bulk-Only > [ 15381.351529] scsibus0 at umass0: 2 targets, 1 lun per target > [ 15381.351529] sd0 at scsibus0 target 0 lun 0: <Kingston, > DataTraveler 3.0, > disk removable > [ 15381.351529] sd0: fabricating a geometry > [ 15381.351529] sd0: 29510 MB, 29510 cyl, 64 head, 32 sec, 512 > bytes/sect x 60437492 sectors > [ 15381.361604] sd0: fabricating a geometry > [ 15381.361604] sd0: GPT GUID: 4e0321bd-dfee-47ad-b2dc-4879b9721620 > [ 15381.361604] dk4 at sd0: "1f41835f-af7b-470b-8d60-e6b10332e142", > 60432384 blocks at 4096, type: ffs > > On Tue, Mar 25, 2025 at 1:23 AM Manuel Bouyer <bou...@antioche.eu.org> > wrote: > > > > On Tue, Mar 25, 2025 at 12:54:50AM +0500, Vitaly Shevtsov wrote: > > > I'm sorry, but it still doesn't work :) > > > > > > Do you run QEMU as root to be able to pass USB devices or as a > non-root user? > > > > > > I use the following to run VM in QEMU: > > > qemu-system-x86_64 -m 4G -cpu host -smp 4 -M q35 -accel nvmm -usb > > > -device usb-host -drive file=vm.qcow2 -nic user,model=e1000 -rtc > > > base=localtime > > > And I get the this error: > > > qemu-system-x86_64: libusb_kernel_driver_active: -12 [NOT_SUPPORTED] > > > > > > Whichever bus/port I try, it always ends up with this error? What did > I miss? > > > > What device do you try to pass though ? It needs to show up as ugen, > > and the user running qemu needs read/write access to /dev/ugen* > > > > I used something like: > > -usb -device > usb-host,bus=usb-bus.0,port=1,vendorid=0x1d50,productid=0x606f > > > > I think I also got the error -12, but that's not the problem. > > > > -- > > Manuel Bouyer <bou...@antioche.eu.org> > > NetBSD: 26 ans d'experience feront toujours la difference > > -- > -- Mario.