Article 51HHD Trying to wrestle with usb permissions and passing through devices. (Qemu/VMS)

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.
  • Data Transfer
trying to do it through XFCE has resulted in no success. I can read manuals and learn things but I didn't know where to start to transfer through network-related programs.

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
A few reddit posts I've seen mention either passthough onboard, connected to a USB DAC (which I have), or the other way around. I tried reading up how to do this on the qemu wiki, and I didn't know where or how to start, so I ran this command:

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!latest?d=yIl2AUoC8zA latest?i=QopLrBkaWJw:T1wRK1oGWk0:F7zBnMy latest?i=QopLrBkaWJw:T1wRK1oGWk0:V_sGLiP latest?d=qj6IDK7rITs latest?i=QopLrBkaWJw:T1wRK1oGWk0:gIN9vFwQopLrBkaWJw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments