VirtualBox

Ticket #1406 (closed enhancement: fixed)

Opened 6 years ago

Last modified 4 years ago

Duplicate port forwards should throw error

Reported by: Xiol Owned by:
Priority: minor 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

comment:1 Changed 6 years ago by frank

  • Component changed from other to VM control

comment:2 Changed 4 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fixed since VBox 3.1.0.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use