Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect IP address range #68

Open
matthew-lxr opened this issue Nov 30, 2023 · 5 comments · May be fixed by #69
Open

Incorrect IP address range #68

matthew-lxr opened this issue Nov 30, 2023 · 5 comments · May be fixed by #69

Comments

@matthew-lxr
Copy link

matthew-lxr commented Nov 30, 2023

Hello,

I am getting the following error, which I am unable to override.

The IP address configured for the host-only network is not within the
allowed ranges. Please update the address used to be within the allowed
ranges and run the command again.

  Address: 10.10.10.10
  Ranges: 192.168.56.0/21

Valid ranges can be modified in the /etc/vbox/networks.conf file. For
more information including valid format see:

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

From what I understand the need to be changed or ST2 needs to run on a different IP address.

@arm4b
Copy link
Member

arm4b commented Dec 1, 2023

Thanks for the report.

Yeah, looks like it's not recommended anymore to have that IP range for Virtualbox per https://www.virtualbox.org/manual/ch06.html#network_hostonly

On Linux, macOS and Solaris Oracle VM VirtualBox will only allow IP addresses in 192.168.56.0/21 range to be assigned to host-only adapters.

If you're interested, you can submit a PR to change the IP (to something like 192.168.56.56) so other folks won't have this issue in the future. The code is here:

# Expose access to StackStorm via IP
config.vm.network :private_network,
ip: "10.10.10.10",
netmask: "255.255.255.252"

As a workaround, you can add 10.10.10.10 to your /etc/vbox/networks.conf to make it work per Virtualbox instructions.

Alternatively, you can just access the stackstorm web UI via https://127.0.0.1:9000/
https://github.com/StackStorm/packer-st2/blob/master/Vagrantfile.template#L33-L35

@matthew-lxr
Copy link
Author

Okay, I will take a look at doing the PR. I am not sure how I update /etc/vbox/networks.conf when the box will not start.

@arm4b
Copy link
Member

arm4b commented Dec 1, 2023

Okay, I will take a look at doing the PR. I am not sure how I update /etc/vbox/networks.conf when the box will not start.

The Virtualbox as a service should be running. It's just a st2 box that's not starting. networks.conf setting applies to Virtualbox itself.

You can update /etc/vbox/networks.conf with

      * 10.0.0.0/8 192.168.0.0/16
      * 2001::/64

restart Virtualbox service and try to run vagrant up for stackstorm box again.

@matthew-lxr
Copy link
Author

Ah, thank you for the information.

@matthew-lxr matthew-lxr linked a pull request Dec 4, 2023 that will close this issue
@matthew-lxr
Copy link
Author

I have submitted #69
It was not clear how to contribute and the build seems to be failing due to the packer provider cancelling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants