Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-25-2011, 09:40 AM   #1
LQ Newbie
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
redirecting serial port to VirtualBox by lan

Hello guys!
I need redirect serial port from ONE computer to ANOTHER computer, and at the another send this port to VirtualBox with WindowsXP. VB needed because i need to use software for windoze

I do this:
ONE computer:
socat tcp-l:54321,reuseaddr,fork file:/dev/ttyS0,nonblock,waitlock=/var/run/tty0.lock

ANOTHER computer:
socat pty,link=/tmp/ttyS0,waitslave tcp:ONE:54321

Now (at ANOTHER) i've set serial port in VirtualBox as
COM1, HostDevice, /tmp/ttyS0

After starting VirtualBox popup warning message:
"The virtual machine execution may run into an error condition as described below. We suggest that you take an appropriate action to avert the error.
Ioctl failed for serial host device '/tmp/ttyS0' (VERR_INVALID_PARAMETER). The device will not work properly.

Error ID: DrvHostSerialFail
Severity: Warning "

Where did I go wrong? thanx

ps. Sorry for my english
Old 02-25-2011, 10:41 AM   #2
Senior Member
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.3 (Netbook) and 18.3 (Desktop)
Posts: 1,389

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
Check this out, it may be usefull.

I found it via Google!

Play Bonny!
Old 02-28-2011, 07:19 AM   #3
LQ Newbie
Registered: Jun 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you, Soadyheid.
But this not quite for me. I've already configured VirtualBox's serial port. All ok, but ioctl in error "The device will not work properly." Very strange message.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is a USBtty (USB serial port) treated the same as tty (normal serial port) in C? spudgunner Programming 1 11-12-2010 01:19 PM
VirtualBox serial port setup frustration the-yikes Slackware 21 07-23-2010 08:06 AM
redirecting serial data to an external devices using bluetooth The_Spriteman Linux - General 1 04-25-2010 11:48 PM
Virtualbox winxp virtual machine just can't access serial port xmrkite Linux - Virtualization and Cloud 5 11-11-2009 10:52 PM
Redirecting errors to Serial Port paragkalra Linux - Newbie 4 12-05-2007 03:23 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration