Ticket #6115 (closed enhancement: fixed)
Connect/Disconnect Serial ports (uart) on-the-fly via controlvm -> fixed in 6.0
Reported by: | lack | Owned by: | |
---|---|---|---|
Component: | uart | Version: | VirtualBox 3.1.0 |
Keywords: | disconnect controlvm | Cc: | |
Guest type: | Linux | Host type: | Windows |
Description (last modified by michael) (diff)
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:2 Changed 12 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.