I have a PL2303 USB serial adapter that I am trying to use in a Windows 11 guest. I appreciate that the simplest thing to do is pass through the entire USB device to the guest, however there is no driver support in Windows 11 for this device. Therefore I want to pass just the serial port from the host to the guest. My expectation is that the serial port will just appear as a com port in the guest Windows.
How do I do this? On the VM I can add a serial port in the GUI but there are no options associated with it - it just maps to a "socket".
The device is recognised:
module is loaded:
Device has a link:
I tried running these commands:
But when I try to start the guest I get:
Any help appreciated!
How do I do this? On the VM I can add a serial port in the GUI but there are no options associated with it - it just maps to a "socket".
The device is recognised:
Bash:
$ sudo dmesg | grep pl2303
[ 6.049664] usbcore: registered new interface driver pl2303
[ 6.049704] usbserial: USB Serial support registered for pl2303
[ 6.050432] pl2303 1-10:1.0: pl2303 converter detected
[ 6.051565] usb 1-10: pl2303 converter now attached to ttyUSB0
module is loaded:
Bash:
kevin@abe:/dev/serial/by-id$ lsmod | grep pl2303
pl2303 32768 0
usbserial 65536 2 pl2303,ftdi_sio
Device has a link:
Bash:
cd /dev/serial/by-id/
kevin@abe:/dev/serial/by-id$ ls -la
...
lrwxrwxrwx 1 root root 13 Nov 3 17:54 usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0 -> ../../ttyUSB0
I tried running these commands:
Bash:
root@abe:~# qm set 103 -args "-chardev tty,path=/dev/ttyUSB0,id=hostusbserial"
update VM 103: -args -chardev tty,path=/dev/ttyUSB0,id=hostusbserial
root@abe:~# qm set 103 -args "-device pci-serial,chardev=hostusbserial"
update VM 103: -args -device pci-serial,chardev=hostusbserial
But when I try to start the guest I get:
Code:
swtpm_setup: Not overwriting existing state file.
kvm: -chardev tty,path=/dev/ttyUSB0,id=hostusbserial: 'tty' is not a valid char driver name
stopping swtpm instance (pid 65135) due to QEMU startup error
TASK ERROR: start failed: QEMU exited with code 1
Any help appreciated!