kvm: -chardev tty,id=serial0,path=/dev/ttyS0: warning: The alias 'tty' is deprecated, use 'serial' instead

Fathi

Renowned Member
May 13, 2016
127
4
83
52
Tunis, Tunisia
Hi,
I am trying to setup a kannel sms gateway preferably as a container or, if not possible, as a vm. Still looking for concise documentation.
Modem is a serial device plugged on ttyS0 of the node running proxmox hypervisor.
command entered: qm set 116 -serial0 /dev/ttyS0
result: update VM 116: -serial0 /dev/ttyS0
a new line serial0: /dev/ttyS0 appears on the vm config file.
qm start 116 returns kvm: -chardev tty,id=serial0,path=/dev/ttyS0: warning: The alias 'tty' is deprecated, use 'serial' instead

What is the correct way to pass a serial modem to an lxc container (if possible) or to vm ?
If container with serial modem is possible, what type of container: priviledged or unpriviledged ? features enabled ?
As you may have guessed i prefer an unprivileged container with the minimum features enabled to have just the serial modem "seen" and managed for use with kannel.
I read a warning on one of the posts that this functionality is experimental. Is it still experimental ? Is it stable ?
TIA.
 
Last edited:
Hi,

if the modem is a USB device that just exposes a serial device it may be easier to pass through the whole USB device (possible through the PVE web interface).

The serialX config keys are mostly meant for serial consoles, so a serial device not expecting to be used as tty console may or may not work.

For CT (LXC) pass through you may want to check the forum search result first, there are various threads describing the basics or successfully solving a problem with that:

https://forum.proxmox.com/threads/lxc-usb-passthrough-zwave-stick.30058/
https://forum.proxmox.com/threads/usb-serial-device-in-lxc-container.86501/
 
  • Like
Reactions: Fathi
Hi,

if the modem is a USB device that just exposes a serial device it may be easier to pass through the whole USB device (possible through the PVE web interface).

The serialX config keys are mostly meant for serial consoles, so a serial device not expecting to be used as tty console may or may not work.

For CT (LXC) pass through you may want to check the forum search result first, there are various threads describing the basics or successfully solving a problem with that:

https://forum.proxmox.com/threads/lxc-usb-passthrough-zwave-stick.30058/
https://forum.proxmox.com/threads/usb-serial-device-in-lxc-container.86501/
Hi and thank you. From what i know, this is a SIEMENS TC35 pure serial modem, an old piece of reliable hardware that survived all server deaths and are still using and moving from older to newer hardware several times.
I managed to detect the modem from inside the VM and is seen by the vm as it is seen by proxmox itself. But it doesn't receive nor send sms, with some issues i am solving one by one. My final target is to have it working from inside a container, and if not possible from inside a vm.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!