Page 1 of 1

Problem with the serial port

Posted: 30. Apr 2009, 10:31
by hanymedic
Hello,every body

i installed virtualbox 2.2 on ubuntu 9.04 and installed win xp as a guest OS

i wanted to use serial port in the win xp,so i made the configuration in the virtualbox setting as follow :
Enable serial port
port number :com1 irq:4 i/o port:0x3f8
port mode :host device
port path :/dev/ttyS0

and when i save the configurations and try to access xp the virtualbox get crashed
with that error:
Failed to start the virtual machine windows XP.
Failed to open host device '/dev/ttyS0' (VERR_DEV_IO_ERROR).
Unknown error creating VM (VERR_DEV_IO_ERROR).

and in detail tab:
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Console
Interface:
IConsole {9511bc54-15ee-4ddf-808e-472aba03809c}


plz try to find me asolution ASAP


thx in advance
Good Luck !!!

Re: aproplem with the serial port

Posted: 30. Apr 2009, 16:56
by Perryg
Do you actually have something plugged in the serial port? If Ubuntu can not see anything it will not load it and none of the guests will be able to use it either.

Try on the host
cat /var/log/dmesg |grep tty
see if ttyS0 shows up.

Re: Problem with the serial port

Posted: 30. Apr 2009, 18:17
by baf
Also show the output of:

Code: Select all

ls -l /dev/ttyS0
id

Re: Problem with the serial port

Posted: 3. May 2009, 07:41
by hanymedic
thx all but i still have the same problem

when i "cat /var/log/dmesg |grep tty"
it was the O/P
[ 0.004000] console [tty0] enabled
[ 1.621128] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 1.621562] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A


when i type "ls -l /dev/ttyS0"
the O/p is
crw-rw---- 1 root dialout 4, 64 2009-04-30 10:58 /dev/ttyS0l

the o/p of "id" is
,125(vboxusers),5000(virtual),5001(tty)

Re: Problem with the serial port

Posted: 3. May 2009, 10:48
by baf

Code: Select all

when i type "ls -l /dev/ttyS0"
the O/p is
crw-rw---- 1 root dialout 4, 64 2009-04-30 10:58 /dev/ttyS0l

the o/p of "id" is
,125(vboxusers),5000(virtual),5001(tty)
Well to use that serialport your user must be a member of "dialout" because only root and that group may use it.

Re: Problem with the serial port

Posted: 3. May 2009, 15:18
by hanymedic
i still have the same problem
i tested it and when i write
"grep dialout /etc/group"
the o/p is:
dialout:x:20:hany,root

where hany is my own user which i run Virtualbox from it

Re: Problem with the serial port

Posted: 3. May 2009, 15:27
by hanymedic
also when i access system-> administration-> Users and Groups

i didn't find the dialout Group :(

Re: Problem with the serial port

Posted: 3. May 2009, 16:03
by baf
Have you logged in and out since you added yourself to dialout ?
If that doesn't help reboot.
id must show it before it works.

Re: Problem with the serial port

Posted: 4. May 2009, 07:28
by hanymedic
i reboot but still have the same problem :(

Re: Problem with the serial port

Posted: 4. May 2009, 08:27
by baf
Does

Code: Select all

id
show you as a member of dialout?

Re: Problem with the serial port

Posted: 4. May 2009, 10:41
by hanymedic
o/p of "id" is:
uid=1000(hany) gid=1000(hany) groups=4(adm),20(dialout),24(cdrom),26(tape),29(audio),46(plugdev),108(lpadmin),114(netdev),123(admin),124(sambashare),125(vboxusers),1000(hany),5000(virtual),5001(tty)

o/p of "grep dialout /etc/group" is:
dialout:x:20:hany,root

Re: Problem with the serial port

Posted: 6. May 2009, 07:31
by hanymedic
plz any body has a solution for this ????

Re: Problem with the serial port

Posted: 27. May 2009, 10:07
by zkfarmer
I have a same problem, finally, reinstall virtualbox solve the problem,my os is ubuntu9.04

Re: Problem with the serial port

Posted: 30. Nov 2016, 17:22
by cuevas1208
Make sure you are not using(connected) to the port with your host OS.

Re: Problem with the serial port

Posted: 30. Nov 2016, 18:16
by mpack
Hmm. Thanks for the contribution, however... after being dead for 7 years it's probably best to let this topic RIP. Locking it.