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

Support for Virtualbox 7.0+ #87

Closed
pmaterer opened this issue Mar 6, 2023 · 3 comments
Closed

Support for Virtualbox 7.0+ #87

pmaterer opened this issue Mar 6, 2023 · 3 comments

Comments

@pmaterer
Copy link

pmaterer commented Mar 6, 2023

I was trying to build virtualbox-iso.virtualbox on macOS 12.4 using Virtualbox 7.0.4, and I noticed the HTTP server Packer creates was not reachable. After some research I found the issue here. With VBox 7.0+, the config option --nat-localhostreachable was introduced and is set to off by default.

So to fix the issue something like this will need to be done:

source "virtualbox-iso" "virtualbox" {
...
  vboxmanage           = [["modifyvm", ..., "--nat-localhostreachable1", "on"]]
...
}

With that in place the build works on Virtualbox 7.0+. However I haven't tested if this breaks builds with older versions of VBox.

@pdietl
Copy link
Contributor

pdietl commented Jan 7, 2024

Hello @pmaterer, I submitted a fix for this to the virtual box plugin directly: hashicorp/packer-plugin-virtualbox#122

@ifurther
Copy link
Contributor

It's not working old version

@pdietl
Copy link
Contributor

pdietl commented Jan 14, 2024

Yeah @ifurther the PR I mentioned above should work on old and new versions.

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

No branches or pull requests

3 participants