VM and serial port

hamradio

New Member
Apr 10, 2009
7
0
1
I have a vm machine running a ubuntu application.
I need to connect to serial port, there is only one, a GSM modem to use with Smstools.

When smstools start write tthis on the log

2009-04-10 07:01:58,2, smsd: Smsd v3.0.10 started.
2009-04-10 07:01:58,2, smsd: Running as smsd:dialout.
2009-04-10 07:01:58,3, GSM1: Cannot open serial port /dev/ttyS0, error: Permission denied
2009-04-10 07:01:58,2, GSM1: Modem handler 0 terminated.
2009-04-10 07:02:53,2, smsd: Smsd main program received termination signal.
2009-04-10 07:02:53,2, smsd: Smsd main program is awaiting the termination of all modem handlers.
2009-04-10 07:02:53,2, smsd: Smsd main program terminated.
2009-04-10 07:03:09,2, smsd: Smsd v3.0.10 started.
2009-04-10 07:03:09,2, smsd: Running as smsd:dialout.
2009-04-10 07:03:09,3, GSM1: Cannot open serial port /dev/ttyS0, error: Permission denied
2009-04-10 07:03:09,2, GSM1: Modem handler 0 terminated.

I don't know if the problem to access ttyS0 is inside the virtual machine on at Proxmox level.
I'm a beginner so I need a little help.

Thank Carlo
 
I have a vm machine running a ubuntu application.
I need to connect to serial port, there is only one, a GSM modem to use with Smstools.

You cant access serial port host hardware inside a VM (due to a bug in KVM). Maybe the next version will support it.
 
I think that this is a good new for you and developing team, I have had success to receive into a VM created by a template to receive a SMS message from a serial GSM modem. Next I try to sent a message.

This is my small trick but it works

SOLUTION

into proxmox shell, not virtual machine, input:

vzctl set XXXX --devnodes ttyS0:rw --save

replace XXXX with VMID and eventually ttyS0 with desired device

I hope to help anyone with this.

Ciao Carlo
IW2FIV
 
does it work today for KVM?
 
Last edited by a moderator: