Failed to map usbserial #6129
Unanswered
aleblack
asked this question in
UTM Help (macOS)
Replies: 2 comments
-
It might be because the user can't access it, and therefore, QEMU needs to run at root. This is hacky, but you could probably fix this by making the QEMU binary in UTM setuid so it automatically runs as root. A better idea may be |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is not possible as UTM is a sandboxed app. You might be able to do something like create a PTTY device and manually socat that into your USB device. Alternatively, capture the USB device directly in the VM. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the issue
Qemu failed to map /dev/tty.usbserial-X inside guest VM
Configuration
I'm trying to map a usb serial port to the VM by adding these lines in the Arguments configuration of utm:
-chardev serial,path=/dev/tty.usbserial-D201046T,id=digifly -usb -device usb-serial,chardev,digifly
but I got an error from Qemu on startup:
QEMU error: QEMU exited from an error: qemu-aarch64-softmmu: -chardev serial,path=/dev/tty.usbserial-D201046T,id=digifly: Could not open '/dev/tty.usbserial-D201046T': Operation not permitted
but /dev/tty.usbserial-D201046T exist, it's owned by root and has permission of 666:
❯ ls -la /dev/tty.usbserial-D201046T
crw-rw-rw- 1 root wheel 0x9000002 Feb 8 15:48 /dev/tty.usbserial-D201046T
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions