Trying to wrestle with usb permissions and passing through devices. (Qemu/VMS)
by lawnm0wer from LinuxQuestions.org on (#51HHD)
Hello slackers, I recently made this thread, and I figured it would be better to respond in here since I haven't gotten a response from LQ's Virtualization forum in over 48 hours to my question.
I am almost there with a gamer's VM, but I just have a few more hurdles that are proven to be quite obnoxious. I need guest audio and I need to transfer some backed-up data from an external to my guest.
At this point I tried to pass through a usb port using this line along with my other usb options.
Code:-device usb-host,hostbus=3,hostport=2The other options worked, but for that usb port, all I got was "permissioned denied", so it seems like I was having a permissions issue.
I ended up finding this thread, and hoping things would work I blindly adjusted a command from that thread to the one below.
Code:chmod a+w /dev/bus/usb/003/002Nothing seems to have happened because I still kept getting permission denied.
I personally want to pass the usb through rather than use networking (or some kind of hack involving copying what I want to a disk image and plugging that to the vm.) That way, only only would I be able to drop USB disks in and out at will, I could use game controllers or other usb devices whenever I needed or felt like it.
Code:bash-5.0$ qemu-system-x86_64 -audio-help
Environment variable based configuration deprecated.
Please use the new -audiodev option.
Equivalent -audiodev to your current environment variables:
(Since you didn't specify QEMU_AUDIO_DRV, I'll list all possibilities)
-audiodev id=pa,driver=pa
-audiodev id=alsa,driver=alsa
-audiodev id=oss,driver=oss
-audiodev id=sdl,driver=sdl
-audiodev id=none,driver=none
// from lspci
...
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
...Tried testing out my onboard audio's functionality to see if it worked on the host. Nothing. Audio works fine through my DAC, otherwise. What kind of driver do I need so I can pass through either one?
thank you for your help!


I am almost there with a gamer's VM, but I just have a few more hurdles that are proven to be quite obnoxious. I need guest audio and I need to transfer some backed-up data from an external to my guest.
- Data Transfer
At this point I tried to pass through a usb port using this line along with my other usb options.
Code:-device usb-host,hostbus=3,hostport=2The other options worked, but for that usb port, all I got was "permissioned denied", so it seems like I was having a permissions issue.
I ended up finding this thread, and hoping things would work I blindly adjusted a command from that thread to the one below.
Code:chmod a+w /dev/bus/usb/003/002Nothing seems to have happened because I still kept getting permission denied.
I personally want to pass the usb through rather than use networking (or some kind of hack involving copying what I want to a disk image and plugging that to the vm.) That way, only only would I be able to drop USB disks in and out at will, I could use game controllers or other usb devices whenever I needed or felt like it.
- Audio
Code:bash-5.0$ qemu-system-x86_64 -audio-help
Environment variable based configuration deprecated.
Please use the new -audiodev option.
Equivalent -audiodev to your current environment variables:
(Since you didn't specify QEMU_AUDIO_DRV, I'll list all possibilities)
-audiodev id=pa,driver=pa
-audiodev id=alsa,driver=alsa
-audiodev id=oss,driver=oss
-audiodev id=sdl,driver=sdl
-audiodev id=none,driver=none
// from lspci
...
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
...Tried testing out my onboard audio's functionality to see if it worked on the host. Nothing. Audio works fine through my DAC, otherwise. What kind of driver do I need so I can pass through either one?
thank you for your help!