-
Notifications
You must be signed in to change notification settings - Fork 87
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
[Issue #112] OS X Monterey and vbox 6.1.28 compatibility changes to Vagrantfile #114
[Issue #112] OS X Monterey and vbox 6.1.28 compatibility changes to Vagrantfile #114
Conversation
Upon successful vagrant up, it appears the following configurations are also dynamically updated. Open to suggestions if this should also be included as a commit to this pull request or if allowing them to dynamically update is more desirable.
Diff of the changed files:
|
30c00cd
to
0ce90fb
Compare
Hey @ProvenGuilty welcome. I've updated the PR description a bit so it doesn't seem to be vbox specific (since you did end up messing with libvirt config). Please do update the modified files in deploy/ directory. |
Maybe only do the v.gui = true if the os is macos? |
a907a12
to
0637142
Compare
Sorry for the sloppiness I almost never use public GitHub and there are so many things new to me on this platform. :) |
@tstromberg linked me to kubernetes/minikube#12811 which may help in reviewing this. |
Virtualbox 6.1.30 is out with fixes for the gui https://www.virtualbox.org/wiki/Changelog can you try that out @ProvenGuilty ? |
Verified with 6.1.30 installed on OSX Monterey. This test was performed with commenting out the conditional I added in previous commit: When re-testing using the conditional, it still ran successfully with a gui window poppping up. I would conclude that virtualbox fixed the introduced bug and the conditional for darwin/macosx is no longer necessary. |
Nice, can you drop the gui stuff from the PR then? |
8ed88fa
to
7f15229
Compare
Closing PR, this doesn't seem to be an issue any more when switching back to 192.168.50.0/24 either.. |
I lied. It wasn't until I destroyed and re-created the provisioner that I found the error again:
|
b93a586
to
05d6b59
Compare
I don't know why DCO is still unhappy, I tried to fix it like I was able to previously. |
I dug further into this and found the netmask was embedded in many more files and is still an issue for Linux, OSX and Solaris users running VirtualBox 6.1.28 or higher. Reopening this once more to apply the changes uniform across tf, vbox and libvirtd. |
51629d9
to
ee67d9b
Compare
33dbf2f
to
e91972b
Compare
Yes indeed, lgtm. I've rebased and squashed all the intermediate changes to get rid of things we didn't need. |
e91972b
to
5968f41
Compare
Change netmask from 192.168.50.0/24 to 192.168.56.0/24 Fixes #228 Signed-off-by: Christopher Ryan <cryan@llnw.com>
5968f41
to
5dee0ea
Compare
I just remembered we have a label I can apply to get this tested in ci, so lets see how that goes. |
Which failed, but I very much doubt its because of this PR. Looks like a vagrant issue. |
Good stuff, thanks @ProvenGuilty ! |
Thank you! This is the first project I've ever contributed to! |
…anges to Vagrantfile (tinkerbell#114) ## Description This is will change the default network from 192.168.50.0/24 to 192.168.56.0/24. ## Why is this needed This is suddenly broken in a recent version of Oracle virtualbox version 6.1.28 and greater. This can be observed when the host operating system is Linux, Mac OS X or Solaris follwing changes to allowable IP ranges on the `hostonlyif` of `192.168.56.0/21` Fixes: tinkerbell#112 ## How Has This Been Tested? I have tested using an intel based MacBook Pro 16" 2019 Model running the latest Version of Mac OS X Monterey. It was discovered that the provisioner VM would not provision correctly without these changes. Upon testing with these changes in the Vagrantfile using vbox, I was able to revert and verify it was no longer working again. There are other suggestions to manually create a networks.conf file in /etc/vbox to specify allowed RFC 1911 space. However, this pull request specifically targets the vbox config in the Vagrant file in a more desirable way, as it will work-around the issue without changing core functionality of the virtualbox installation and other user configurations that may be present. ## How are existing users impacted? What migration steps/scripts do we need? Changes the default network the provisioner and ultimately PXE network runs in from 192.168.50.0/24 to 192.168.56.0/24 for all users (not limited to Mac OS X users). Existing users will likely need to re-provision their existing installations when upgrading to Monterey and VirtualBox 6.1.28 ## Checklist: - [X] updated the documentation and/or roadmap (I did not see the network specified in the documentation) - [X] added unit or e2e tests (tested using virtualbox 6.1.30 on OSX monterey and `vagrant up provisioner`) - [X] provided instructions on how to upgrade
Description
This is will change the default network from 192.168.50.0/24 to 192.168.56.0/24.
Why is this needed
This is suddenly broken in a recent version of Oracle virtualbox version 6.1.28 and greater. This can be observed when the host operating system is Linux, Mac OS X or Solaris follwing changes to allowable IP ranges on the
hostonlyif
of192.168.56.0/21
Fixes: #112
How Has This Been Tested?
I have tested using an intel based MacBook Pro 16" 2019 Model running the latest Version of Mac OS X Monterey. It was discovered that the provisioner VM would not provision correctly without these changes.
Upon testing with these changes in the Vagrantfile using vbox, I was able to revert and verify it was no longer working again. There are other suggestions to manually create a networks.conf file in /etc/vbox to specify allowed RFC 1911 space. However, this pull request specifically targets the vbox config in the Vagrant file in a more desirable way, as it will work-around the issue without changing core functionality of the virtualbox installation and other user configurations that may be present.
How are existing users impacted? What migration steps/scripts do we need?
Changes the default network the provisioner and ultimately PXE network runs in from 192.168.50.0/24 to 192.168.56.0/24 for all users (not limited to Mac OS X users). Existing users will likely need to re-provision their existing installations when upgrading to Monterey and VirtualBox 6.1.28
Checklist:
vagrant up provisioner
)