- Make sure your serial port is enabled in BIOS.
- Make sure your serial port is found in the host operating system. For that, type:
setserial -g /dev/ttyS0
If the output says “unknown”, your port is not accessible by the host OS. This happens for example when disconnecting power from the docking station on a ThinkPad T61 using Ubuntu 10.10, because the serial port is only available on the docking station and is assumed “disconnected” when switching to battery operation, even though the dock is still physically connected. Re-connecting power to the docking station does not help here, but restarting does. - Configure your VirtualBox virtual machine to have a serial port. For that, use the following settings in the configuration dialog for your VM:
- serial port: enable
- port number: COM1
- IRQ and port settings: ignore, use the defaults
- Port Mode: Host Device
- Port Path: /dev/ttyS0
- Start the Windows XP guest OS and add the COM port to Windows XP:
- Go to “Start -> Control Panel”
- Double click the “Hardware” item (“Add New Hardware Wizard”)
- Click “Next”
- Choose “Yes, I have already connected the device”
- Click “Next”
- Choose the last list item “Add new hardware device”
- Click “Next”
- Click “Search for and install the hardware automatically”
- Click “Next”, it will search and find the new COM port.
Note that when trying to start VirtualBox without the serial port being available to the host device, VirtualBox will refuse to start with a variety of error messages.
Leave a Reply