Skip to content

Instantly share code, notes, and snippets.

@xmawja
Created September 12, 2023 14:28
Show Gist options
  • Select an option

  • Save xmawja/5efe15f72b833ed38fb0cb1078e94240 to your computer and use it in GitHub Desktop.

Select an option

Save xmawja/5efe15f72b833ed38fb0cb1078e94240 to your computer and use it in GitHub Desktop.
VirtualBox - Failed to change host network interface parameter.
On Linux, Mac OS X and Solaris Oracle VM VirtualBox will only allow IP addresses in 192.68.56.0/21 range
to be assigned to host-only adapters.
For IPv6 only link-local addresses are allowed.
If other ranges are desired,
they can be enabled by creating /etc/vbox/networks.conf and specifying allowed ranges there.
For example, to allow 10.0.0.0/8 and 192.168.0.0/16 IPv4 ranges as well as 2001::/64 range
put the following lines into /etc/vbox/networks.conf:
* 10.0.0.0/8 192.168.0.0/16
* 2001::/64
Lines starting with the hash # are ignored. Next example allows any addresses, effectively disabling range control:
* 0.0.0.0/0 ::/0
If the file exists, but no ranges are specified in it, no addresses will be assigned to host-only adapters. The following example effectively disables all ranges:
# No addresses are allowed for host-only adapters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment