Opened 17 years ago
Closed 15 years ago
#1406 closed enhancement (fixed)
Duplicate port forwards should throw error
Reported by: | Xiol | Owned by: | |
---|---|---|---|
Component: | VM control | Version: | VirtualBox 1.5.6 |
Keywords: | Cc: | dane.elwell@… | |
Guest type: | other | Host type: | other |
Description
I accidentally setup port forwards with the same name, which caused VirtualBox to hang when starting the VM. Ideally, this should throw up an error message without hanging indefinitely.
Example, in [vm].xml:
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" value="TCP"/> <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" value="22"/> <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" value="22"/> <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" value="TCP"/> <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" value="80"/> <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" value="80"/>
This will cause an indefinite hang. Changing the name of the second port forward to something else restores normal functionality.
Obviously this was my fault for cutting and pasting and not paying attention, but an error message for this type of problem would be a nice addition to stop idiots like me from spending 15 minutes trying to figure out what went wrong! :)
Change History (2)
comment:1 by , 17 years ago
Component: | other → VM control |
---|
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed since VBox 3.1.0.