Option serial is ambiguous

eduardosilva

New Member
Sep 10, 2012
4
0
1
Hello,

I'm trying to add a serial port (usb adapter) to a KVM Guest (pve 3.3)

Code:
# qm set 100 -serial /dev/ttyUSB0 
Option serial is ambiguous (serial0, serial1, serial2, serial3)
400 unable to parse option

Any ideas or suggestions?

Thank you
 
Just as an update,

Maybe the problem is related to the name /dev/ttyUSB0?

I manually added
Code:
args: -serial /dev/ttyUSB0
to 100.conf and after powering off/on the Serial port was correctly mapped :)

Thanks
 
Cheers dietmar,

Simply use:

# qm set 100 -serial0 /dev/ttyUSB0

I've tried that before posting, also didn't worked. The error is a bit different
Code:
# qm set 100 -serial0 /dev/ttyUSB0
400 Parameter verification failed.
serial0: value does not match the regex pattern
qm set <vmid> [OPTIONS]

Same issue with 1,2 and 3 :P

Hand editing the vm conf file did the trick.

Maybe qm set is expecting for a device like /dev/ttyS[0-9] ?


Thank you :)