How setup serial port link in VirtualBox between two Guest Virtual Machine in Linux

I needed to test serial communication  between two VirtualBox Guest machine in Linux.

- My host operating system was Ubuntu 10.10
- My guest operating systems was Microsoft Windows XP and Debian Lenny.

In host machine you don’t need to install or configure anything.
In guest virtual machines you need to configure serial port settings.

First Guest VM serial port settings – Debian

Figure 1. – First Guest VM Serial Port Settings

Enable Serial Port check box: checked
Port Number: COM1
Port Mode: Host Pipe
Create Pipe check box: checked
Port/File Path: /tmp/vboxS0

Second Guest VM serial port settings – Microsoft Widows XP

Figure 2. – Second VM Serial Port Settings

Enable Serial Port check box: checked
Port Number: COM1
Port Mode: Host Pipe
Create Pipe checking box: unchecked
Port/File Path: /tmp/vboxS0

Starting VirtualBox Machines:
First you need to start machine with checked “Create Pipe” check box (in my example is Debian VM). After you can start your second machine (in my example is Microsoft Windows XP VM).

If you try to start first with unchecked “Create Pipe” check box machine then you getting one error message.

Figure 3. – Error Message If you try to start VM with unchecked “Create Pipe” check box

Testing
I’m enabled serial console login in Debian Linux and I don’t have any problem to connect to linux machine from Windows terminal program.

Figure 4. – Proof off working serial port connection

This entry was posted in Debian, Serial Port, Ubuntu, VirtualBox, Windows and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>