LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-02-2008, 04:06 PM   #16
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301

Good to see that there is a solution. I haven't used Window$ in a long time, so I would not have guessed it.
 
Old 01-15-2009, 04:02 PM   #17
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,134

Rep: Reputation: 7300Reputation: 7300Reputation: 7300Reputation: 7300Reputation: 7300Reputation: 7300Reputation: 7300Reputation: 7300Reputation: 7300Reputation: 7300Reputation: 7300
Quote:
Originally Posted by ivanatora View Post
The SOLUTION:
Go to Windows and using the Add New Hardware wizzard add your ports. It will detect them automatically!
Thank you!
Greatly appreciated.
 
Old 02-01-2009, 08:25 AM   #18
paracelsus
LQ Newbie
 
Registered: Jul 2005
Distribution: Gentoo
Posts: 9

Rep: Reputation: 0
Please excuse this shameless plug, but I've worked out that the alleged 'pipe' is actually a socket and it can be used with socat. For details, see the blog post:

http://automatthias.wordpress.com/20...in-virtualbox/
 
Old 12-02-2009, 01:41 AM   #19
themattski
LQ Newbie
 
Registered: Dec 2009
Posts: 1

Rep: Reputation: 1
Virtualbox Serial Ports - Fedora 12 Linux Host

Just sharing some info on what I did to get serial ports working in my Fedora Core 12 (fc12) host machine with Windows XP Guest:

Here is the short answer:

I used the following settings in Virtualbox (version 3.0.10_OSE) :
Port Number: COM1
IRQ: 4
I/O Port: 0x3F8
Port Mode: Host Device
Port/File Path: /dev/ttyS0

I also needed to add the user (my login) to the 'dialout' Group.


This info may be helpful for other users troubleshooting Virtualbox Serial Port problems (the long version).

Firstly you can check that Linux has loaded your serial port driver with the command:
Code:
# dmesg | grep ttyS0
You should see something like this returned:

serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:02: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A


Next you can check who has permissions to access /dev/ttyS0 with the command:
Code:
ls -l /dev/ttyS0
You should see something like this returned:
crw-rw----. 1 root dialout 4, 64 2009-12-02 23:25 /dev/ttyS

We can see that 'root' and the group 'dialout' have permissions to access /dev/ttyS0

You will want to give the Virtualbox user (the user you login as) permissions to access /dev/ttyS0 so add the user to the 'dialout'group by:

a) Click, System --> Administration --> Users and Groups
b) Enter the root password
c) As an optional setep you disable 'Hide System Users and Groups' in the Preferences tab. Now you can see all system users and groups.
d) Double click the user and under the 'Groups' TAB tick 'dialout' (or what ever group your ls -l /dev/ttyS0' returns as having permission to access it)
e) Log-out and log back into Fedora.

If you don't have permission to access the dev/ttyS0 resource you will see the following error in Virtualbox:

Failed to start the virtual machine MACHINE_NAME_HERE
Cannot open host device /'dev/ttyS0' for read/write access. Check the permissions of that device. ('/bin/ls -l /dev/ttyS0'):......

As an additional note I could not use 'COM1' in the 'Port/File Path:' setting in virtualbox but /dev/ttyS0 works. The following error is produced with COM1 set:

Failed to start the virtual machine MACHINE_NAME_HERE
Failed to open the host device 'COM1' (VER_FILE_NOT_FOUND).
Unknown error creating VM (VERR_FILE_NOT_FOUND).


Following the above I also needed to add the serial port to Windows XP – my Guest OS:

Start –> Settings –> Control Panel –> Add Hardware
Next –> Yes I have already… –> (scroll to bottom) Add new hardware device –> Next –> Search and Install the Hardware.

You should now see the com port.

Hope this helps someone as it has helped me.

Last edited by themattski; 12-02-2009 at 02:41 AM. Reason: correct typo in /dev/tty0 - should be /dev/ttyS0
 
1 members found this post helpful.
Old 02-22-2010, 07:22 PM   #20
ZeroFossilFuel
LQ Newbie
 
Registered: Jul 2009
Location: Nunya
Distribution: Ubuntu 9.10
Posts: 5

Rep: Reputation: 0
I just want to thank all for their great insight into this problem. I struggled for hours trying to get this damn serial port to work.

In the end the solution for me was to make sure the host device was named /dev/ttyS0 for COM1 and then allow the hardware wizard to search for installed com ports.

For the very few apps that I must have windoze for, Virtualbox is a God-Send.

Thank you all.

Z
 
Old 07-22-2010, 05:59 PM   #21
kurteknikk
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
Hi,

I'm new to ubuntu. I need to get serial ports 100% working becuase i'm trying to flash a phone, has anyone ever tried running windows xp in virtual box on an ubuntu 10.04 platform... Usb works fine but when i came to flashing i have an error which is probably because serial ports are not working 100% correct... Anyone has an idea about this ?
 
Old 07-23-2010, 08:06 AM   #22
ZeroFossilFuel
LQ Newbie
 
Registered: Jul 2009
Location: Nunya
Distribution: Ubuntu 9.10
Posts: 5

Rep: Reputation: 0
I run XP in Vbox on Lucid host OS on my Dell Precision 670.

Port 1: COM1
Port Mode: Host Device
Port/File path: /dev/ttyS0

Port 2: COM2
Port Mode: Host Device
Port/File path: /dev/ttyS1

When the XP VM boots up, Device Manager should recognize the new virtual hardware and install it. If not, go into Device Manager and force it to scan for new hardware just as you would if windoze was running natively.

It's really that simple.

Z
 
  


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
Virtualbox setup on openSUSE 10.2 madgenius SUSE / openSUSE 2 04-26-2007 10:36 PM
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 09:32 PM
Parallel Port & Serial Port device identification helpmeforlinux Linux - Hardware 3 01-02-2007 01:15 AM
Setup serial port at 1200b, 7bits, even parity and 1 top bit seraph-seph Programming 5 10-21-2006 12:57 PM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 08:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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