LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 09-26-2012, 01:08 PM   #1
puntino
Member
 
Registered: Sep 2006
Location: Italy
Distribution: Suse 10.1
Posts: 78

Rep: Reputation: 15
Using serial port from Linux guest on VMware


Hello,
I would like to send data to the virtual serial port provided by Vmware. Actually, my laptop is not equipped with a physical serial port, that's not a problem since I use the file option available in VmWare (Setting->Add->Serial Port -> Use output file)
The file is in the same root folder of my virtual machine and has been created by VmWare after the first configuration of the serial port.
I also checked the vmaware BIOS which has the AUTO option for the serial port, thus it should detect the serial port automatically.
When I perform a redirection on the serial port something like
Code:
echo "hello" > /dev/ttyS0
I receive no errors, but if I read from the serial port
Code:
cat /dev/ttyS0
the command gets stuck and the file used from Vmware
to log the data to the serial port is empty.

I also tried to use the command
Code:
setserial -g /dev/ttyS0
before starting to write with the echo command
setserial prompts the message:
Code:
/dev/ttyS0, UART:16550A, Port: 0x03f8, IRQ: 4
(apparently correct).

my system configuration is:
VmWare 7.1.13 running on Windows 7 (host system)
Linux 2.6.24 (guest)
Any help?
 
Old 09-26-2012, 03:37 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,965

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Laptops tend have the parts of a serial port left over so you never know what is what. If you were to add in a serial adapter it may or may not start at com1 but a higher number so com3 or more is common.

Go through chapter 16 again maybe on this link. http://www.vmware.com/pdf/ws7_manual.pdf
 
Old 09-27-2012, 02:44 PM   #3
puntino
Member
 
Registered: Sep 2006
Location: Italy
Distribution: Suse 10.1
Posts: 78

Original Poster
Rep: Reputation: 15
You were right. I have to redirect to ttyS2 rather than ttyS0.
Thank you.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i connect linux guest OS to a windows guest OS in vmware? nooralain Linux - Networking 8 05-03-2012 10:51 AM
ESXi Guest Serial Port (add device) Bhagyesh Linux - Virtualization and Cloud 0 12-09-2010 01:26 AM
Fedora 5 Main os vmware 5 guest os winxp, Help setting up serial ports o lizard_king825 Linux - Hardware 1 08-06-2008 05:01 AM
RH9 as guest OS (VMWARE) doesn't detect the serial ports mosh Linux - General 0 06-20-2004 03:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:06 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