VirtualBox

Opened 16 months ago

Last modified 14 months ago

#21454 new defect

Error: vmnet_start_interface returned 1001

Reported by: urbanchef Owned by:
Component: other Version: VirtualBox-7.0.6
Keywords: Cc: roman.mushchinskiy@…
Guest type: Linux Host type: Mac OS X

Description

Unable to use host only network with 192.0.2.0/24 network

00:00:01.271232 VMNet: Host network with mask 255.255.255.0 (192.0.2.1 to 192.0.2.200) 00:00:01.271907 VMSetError: /Users/vbox/tinderbox/mac-rel/src/VBox/Devices/Network/DrvVMNet.m(650) int drvVMNetConstruct(PPDMDRVINS, PCFGMNODE, uint32_t); rc=VERR_INVALID_PARAMETER 00:00:01.271911 VMSetError: Error: vmnet_start_interface returned 1001 00:00:01.272118 VMSetError: /Users/vbox/tinderbox/mac-rel/src/VBox/Devices/Network/DevE1000.cpp(8287) int e1kR3Construct(PPDMDEVINS, int, PCFGMNODE); rc=VERR_INVALID_PARAMETER 00:00:01.272121 VMSetError: Failed to attach the network LUN 00:00:01.272141 PDM: Failed to construct 'e1000'/1! VERR_INVALID_PARAMETER (-2) - Invalid parameter.

% cat /etc/vbox/networks.conf

  • 192.0.2.0/24
  • 0.0.0.0/0 ::/0

Attachments (2)

log.txt (63.9 KB ) - added by urbanchef 16 months ago.
Снимок экрана 2023-02-02 в 15.26.47.png (79.3 KB ) - added by urbanchef 16 months ago.

Download all attachments as: .zip

Change History (4)

by urbanchef, 16 months ago

Attachment: log.txt added

comment:1 by urbanchef, 16 months ago

% cat /etc/vbox/networks.conf
* 192.0.2.0/24

comment:2 by w16r, 14 months ago

I ran into a similar problem with VirtualBox 7.0.6 on macOS 12.6.3.

The cause appears to be a limitation of Apple’s vmnet framework, which VirtualBox is now obliged to use for host-only networking: the starting and ending IP addresses for the virtual network have to be in RFC 1918 private address space, which of course 192.0.2.0/24 is not.

This limitation isn’t disclosed in Apple’s documentation, but it is mentioned in the comments for vmnet_start_address_key and vmnet_end_address_key in the vmnet.h header file, installed (at least on my computer) in:

/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/vmnet.framework/Versions/A/Headers/vmnet.h

I’d suggest to the VirtualBox developers that, on macOS hosts, the Host-only Networks pane in Network Manager and VBoxManage hostonlynet should check for IP addresses outside the RFC 1918 ranges and warn the user. At the very least, this limitation ought to be mentioned in the Host-Only Networking section of the VirtualBox manual:

https://www.virtualbox.org/manual/ch06.html#network_hostonly

This limitation is completely separate, by the way, from the /etc/vbox/networks.conf restriction described in the VirtualBox manual.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use