VirtualBox serial port setup frustration
Well i think the topic title describes nicely my predicament!
I'm running Slackware 11. I installed the latest VirtualBox Release a couple of weeks ago. Since then iv'e been ripping apart the internet to try to find out how to setup the Host-Guest serial ports! I dabble in electronics and as such i'm fairly dependant on serial ports, but for the life of i CANNOT figure out how to go about setting them up the serial ports! Please can someone among you help me before i bust a blood vessel in temper! Thanks The Yikes |
Well, first try reading through section 3.7.9 of the virtualbox user manual, it says how to get them working:
http://www.virtualbox.org/download/UserManual.pdf |
Still no luck!
Hi H_TeXMeX_h,
Hey buddy, how goes the study?. I was hoping someone might have a slightly clearer explanation then the following: Quote:
local domain socket? what the heck is that? Thanks The Yikes |
Well, sorry, I cannot translate it ... because I have no idea either :(
But, it says there is an option in the gui that allows you to configure serial ports. Just do option number 2 out of the three listed there, that looks like it is the most sensible: i.e. Connecting the virtual port to a physical serial port on the host. As for my study, well I graduated college ... yay ! :) Now on to medical school ... |
3 Cheers For H_TeXMeX_H
oh man! H_TeXMeX_H i ma so glad for you, you should be REALLY proud of yourself. Gosh the last time we chatted you were busy studying and helping me out. I kept hoping you would do well. Well done buddy fair play to you.
I hope everything you plan for comes to pass! i hope you celebrated? As for the options iv'e tried them all but to no avail. think maybe it might be a host side problem, like maybe i dont have serial ports active or something. 3 more cheers for H_TeXMeX_H Hip hip hooray HIP HIP HOORAY HIP HIP HOORAY!! |
Thanks ! Yes I did celebrate some. But I'll celebrate more when I'm done with school ... :)
Ok, so: 1) Here's good serial how-to: http://tldp.org/HOWTO/Serial-HOWTO-17.html So, first try to find your serial ports on the Linux box. Try either: Code:
lsof /dev/ttyS* # will list serial ports which are open 2) Look through section 8.5 of that manual. It says you can use 'VBoxManage modifyvm' to set up the serial ports. The options are listed there, but the most important ones are: Quote:
Quote:
Code:
VBoxManage modifyvm -uart1 0x3F8 4 # to set up COM1 I've never done this before, so try it out and see if it works. If anyone else has done it, please say so. |
Score 1 out of 2
The 1st command gave me nothing! the second command ls /dev/ttyS
yielded the following results: Quote:
As for the rest of what you said it looks more then promising so once iv'e managed to activate the port in linux i'll give it a try. Thanks H The Yikes! Ok i just took a look at /var/log/dmesg and i found this line Quote:
yet when i issue the following command's VBoxManage modifyvm -uart1 0x3F8 4 I get this. Quote:
VBoxManage modifyvm -uartmode1 /dev/ttyS0 gives me pretty much the same error except at the end it reports i havent entered enough parameters I wonder if insanity is a lonely place? The Yikes |
Curiouser and furiouser!
Well that's it i officially have serial port syndrome!
Man oh Man, okay here's my situation. when i run: Quote:
Quote:
I'v tried google but when it comes to phrasing question's i suck like a thirsty elephant! Thanks The Yikes |
Quote:
Code:
VBoxManage modifyvm COM1 -uart1 0x3F8 4 |
Hi H_TeXMeX_H,
cheers for helping out on this. Well i tried what you suggested but where you have COM1 it should be replaced my the name of the virtual machine. As i stated above even when i try to get a response from the serial port via the terminal by issuing "cat /dev/ttyS0" and "echo "Test" /dev/ttyS0" i get nothing not even an error. Iv'e seen the port detected as Linux boots so i know the hardware is present on some level. Yeesh this is anoying! So has anyone ever had trouble setting up serial ports before? Any advice would be appreciated! Thanks The Yikes |
Maybe try running 'pnpdump --dumpregs', or 'lspci -vv' and see if they are listed there. The howto also mentions 'setserial', but it usually doesn't need to be used.
Has anyone set up serial ports here before ? |
No rsposne for pnpdump --dumpregs
Well i tried both and nothing sttod out on the first command, i would post the feedback here but it's a little long. The second again, threw back nothing, here's the last few lines:
Quote:
The Yikes |
Closer and Closer!
Oh my god H_TeXMeX_H,
i'm such a muppet!. I took a look at /etc/serial.conf and heres some of what i found! Quote:
I'm gonna have a swing at un-remarking them. Will post results in 5-10 minutes! The Yikes |
FaIlure
Well failed again!
my serial ports still dont register in Linux. Oh man this is killing me. I love Slackware and i REALLY dont want to have to change to a lesser distro. The Yikes :( Right here's an update dmesg | grep ttyS gives me this: Quote:
cat /var/log/messages | grep ttyS0 gives me this Quote:
Anyone.... Anything? The Yikes |
Hello,
I have exactly the same problem and I can't find a solution. Running Slackware 12 as a host and Windows XP as a guest. I have uncommented all ttyS0-4 in /etc/serial.conf and rebooted after that. I have: Code:
$ dmesg|grep ttyS Code:
$ lsof /dev/ttyS* There is something else that happened after I tried to enable COM ports - Windows can't stop properly. I have to kill the VirtualBox process always when I want to stop Windows. I tried using COM ports as pipe, but still no success in Device Manager. Is there a way to troubleshoot serial ports? After I do cat /dev/ttyS0 the terminal prompts don't stop and wait or give anything, but returns immediately: Code:
(23:30:50)[root@/home/ivanatora]# cat /dev/ttyS0 Some debug info! I tried to send some file to the serial port (I have a loopback cable): cp /proc/kcore /dev/ttyS0 And listening it on the same time: tail -f /dev/ttyS0 And on the last screen I saw bunch of non printable characters like: ^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[ So after all my serial port is operational? The SOLUTION: Go to Windows and using the Add New Hardware wizzard add your ports. It will detect them automatically! |
All times are GMT -5. The time now is 11:12 AM. |