LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-31-2011, 02:40 PM   #1
jrahma
Member
 
Registered: Oct 2011
Posts: 39

Rep: Reputation: Disabled
Virtualbox Serial Port Step-by-Step


Can anyone guide on how to setup the serial port to work if using VirtualBox.

My host is Windows Server 2008 and My guest is debian.

I just need a simple thing...

I need the Serial port to work on the V-machine (debian) when so I can collect the PBX data..
 
Old 10-31-2011, 02:45 PM   #2
elliott678
Member
 
Registered: Mar 2005
Location: North Carolina
Distribution: Arch
Posts: 977

Rep: Reputation: 74
Well, VirtualBox can't give guest OS access to the host system's serial port. I believe VirtualBox can give the guest access to a USB port, so maybe a USB to RS232 adapter could work.

EDIT: I stand corrected, I thought those were virtual serial ports, I didn't realize they could be mapped to physical ones.

Last edited by elliott678; 10-31-2011 at 03:36 PM.
 
Old 10-31-2011, 03:23 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,011

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
http://techtooltip.wordpress.com/200...n-virtual-box/
 
Old 11-01-2011, 02:54 AM   #4
jrahma
Member
 
Registered: Oct 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
I already saw the wordpress article and gone through it step-by-step but it's still not working..
 
Old 11-01-2011, 03:30 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,011

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
What symptoms do you have? Any clues to what went wrong?
 
Old 11-01-2011, 05:59 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
It's pretty straight forward, that wordpress article shows all the steps that are required. I have my VirtualBox set up this way, exporting COM1 from my WinXP machine into the Ubuntu VM. kermit has no trouble communicating with my Gumstix board through a null modem cable on this port with it set up like this.
 
Old 11-02-2011, 01:55 AM   #7
jrahma
Member
 
Registered: Oct 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
I wish it was that easy my friend!

I have tried all the options with the serial but it's still not working...

Ok.. could you please guide on this..

My host is WINDOWS SERVER 2008 and my guest is Debian Squeeze.

1. I have gone to the Serial Port Setting in VirtualBox.
2. Enabled Serial Port is checked.
3. Port Number : COM1
4. Port mode is : Host Pipe.
5. (Create Pipe) is checked.
6. Port File/Path: \\.\pipe\COM1

In Debian
7. I started Putty.
8. Choosed Serial Mode
9. In Serial line : \\.\pipe\COM1
10. In Speed: I tried 9600 and 115200

BUT...

I am getting the following error when I click Open in Putty to open the connect:

Quote:
Unable to open connection to:
Unable to open serial port

Thanks,
Jassim
 
0 members found this post helpful.
Old 11-03-2011, 10:07 AM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Where did you get those config parameters? As described in the wordpress article, I have mine set to:

Port Number: COM1
Port Mode: Host Device
Port Path: COM1

Then in linux:
kermit -l /dev/ttyS0

I usually use kermit, but minicom works as well, and I see no reason why putty, or any other terminal client wouldn't work. You just need to use the /dev/ttyS0 device for COM1.
 
Old 11-05-2011, 03:31 AM   #9
jrahma
Member
 
Registered: Oct 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thanks for your reply..

I have set it up on Vbox but when I try to run the command on linux I get the following:

kermit: command not found
 
0 members found this post helpful.
Old 11-05-2011, 11:43 PM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by jrahma View Post
Thanks for your reply..

I have set it up on Vbox but when I try to run the command on linux I get the following:

kermit: command not found
Then you don't have Kermit installed.

There are many different clients you can use, Kermit is just my preference. Kermit, minicom, putty, whatever you choose, you just need to connect to /dev/ttyS0.
 
Old 11-06-2011, 05:56 AM   #11
jrahma
Member
 
Registered: Oct 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
it's working..

Thank you..
 
0 members found this post helpful.
  


Reply



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
LXer: Complete Step by Step Guide to Make ISO Images in Ubuntu LXer Syndicated Linux News 0 06-09-2011 02:20 PM
Install Netgear wg311v wireless card on Fedora Core 6 (step by step help thanks!) jpop Linux - Hardware 1 03-07-2007 12:16 PM
Step by Step guied for Installation pent@net Dvb card under linux mobassir Linux - Networking 4 06-07-2006 07:31 PM
extremely detailed step by step instructions wanted for nvdia driver installation!!! saquib Linux - Hardware 1 03-09-2006 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:33 AM.

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