Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any way in virtual box to have more than 2 serial ports?

When I try to set a 3rd or 4th serial port I get "Argument slot is invalid. RT_ELEMENTS(mSerialPorts))". The documentation claims it supports 4 virtual serial controllers at the 4 standard address'. Whats the point of supporting 4 virtual COM ports at the 4 standard addresses if you can only connect 2 to any virtual machine?

share|improve this question

1 Answer 1

The online documentation reflects that you can only configure up to two serial ports for simultaneous use, though the four common ports are presented as options as well as the ability to tweak their IO Base and IRQ.

http://www.virtualbox.org/manual/ch03.html#serialports

I tried to hand edit the machine definition to force the use of four ports, but it appears (at least under VBox 4.0.2) that is just ignores that section if it is not correctly specified. After opening the GUI to check what it thought, it silently removed ports 3 and 4 from my configuration and left ports 1 and 2 enabled and configured.

Your best bet (if this works with your needs) is to get a couple of USB serial controllers and let the virtual machine capture those devices and present them to the guest operating system as devices.

For what it is worth, here is the chunk of XML I used to try and configure the VM.

<UART>
  <Port slot="0" enabled="true" IOBase="0x3f8" IRQ="4" hostMode="Disconnected"/>
  <Port slot="1" enabled="true" IOBase="0x2f8" IRQ="3" hostMode="Disconnected"/>
  <Port slot="2" enabled="true" IOBase="0x3e8" IRQ="4" hostMode="Disconnected"/>
  <Port slot="3" enabled="true" IOBase="0x2e8" IRQ="3" hostMode="Disconnected"/>
</UART>
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.