VirtualBox

Ticket #5487 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Identical names for port forwarding in machine.xml crashes VM at start

Reported by: User54321 Owned by:
Priority: major Component: network/NAT
Version: VirtualBox 3.0.12 Keywords:
Cc: Guest type: Linux
Host type: Windows

Description

While being lazy in configuring the port forwarding through NAT I added to the machines .xml config file the 6 lines (both 3 for SSH and HTTP):

      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/HTTP/HostPort" value="9022"/>
      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/HTTP/GuestPort" value="22"/>
      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/HTTP/Protocol" value="TCP"/>

      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/HTTP/HostPort" value="9080"/>
      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/HTTP/GuestPort" value="80"/>
      <ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/HTTP/Protocol" value="TCP"/>

Copy'n'Paste'd there where paired entries with identical "names"-Attribute, but different port configuration (both HTTP instead of SSH/HTTP). In this case, the VN crahes at bios boot time.

Although it is the user's fault, the VM should not crash directly but rather be tolerant on such an config error and follow a rule like "first port forwarding used" and display an error message.

Change History

comment:1 Changed 4 years ago by frank

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

Fixed as of VBox 3.1.0.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use