Ticket #6115 (new enhancement)

Opened 8 years ago

Last modified 7 years ago

Connect/Disconnect Serial ports (uart) on-the-fly via controlvm

Reported by: lack Owned by:
Priority: minor Component: uart
Version: VirtualBox 3.1.0 Keywords: disconnect controlvm
Cc: Guest type: Linux
Host type: Windows


There doesn't seem to be any way to connect or disconnect Serial Devices on-the-fly.

Obviously I cannot add a *new* serial port while a VM is running, but I would expect that I should be able to change an existing serial port from "disconnected" to "server" to "client" to "file" to a raw device whenever I like, just like I can already simulate a network cable disconnect via the GUI or 'VBoxManage controlvm setlinkstate'

This is important to me because I often have my laptop connected to a docking station, and to undock I must close all open COM ports -> Having a uart configured in a runnig VM counts as "open", so I must shut down my VMs before I can undock my PC. This is of course less than optimal.

With VMWare I could simply mark the serial port as "disconnected" before undocking: To the Guest it appears that I pulled out the serial cable, no input, no output. The host would of course close the COM port and allow me to undock.

Change History

comment:1 Changed 8 years ago by frank

  • Type changed from defect to enhancement

comment:2 Changed 7 years ago by cmorinico

I would like this feature too. I often need to share the serial port between host/guest OS, and actually I have to shutdown the VM to use it on the host OS. A connect/disconnect option would be great. Now it is really annoying to have to shutdown the VM to free the serial port.

comment:3 Changed 7 years ago by dsjstc

Big ol' "me too" on this one. I have one modem and four VMs that occasionally want to use it.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use