hashicorp / packer-plugin-virtualbox

Packer plugin for VritualBox Builder
https://www.packer.io/docs/builders/virtualbox
Mozilla Public License 2.0
22 stars 36 forks source link

Packer (virtualbox-iso) sets HTTPIP to 10.0.2.2 but serves traffic on 10.0.2.3! #105

Closed hc-github-team-packer closed 1 month ago

hc-github-team-packer commented 1 year ago

This issue was originally opened by @autumnjolitz in https://github.com/hashicorp/packer/issues/12298 and has been migrated to this repository. The original issue description is below.


Community Note

Overview of the Issue

The ip address provided at variable HTTPIP is incorrect.

Reproduction Steps

  1. packer build cerberus-dragonfly.pkr.hcl
  2. wait for the VM to start and get to a shell
  3. watch as it just hangs on fetch
  4. Control-C out of it inside the vm and try curl http://10.0.2.3/init.sh instead

Packer version

Packer v1.8.6

Simplified Packer Template

https://github.com/autumnjolitz/cerberus_gateway/

Operating system and Environment details

Mac OSX 11.4, x86-64 Packer version: 1.8.6 [go1.19.6 darwin amd64]

Log Fragments and crash.log files

Log file: https://gist.github.com/autumnjolitz/276a5976ea085997ba0123e0df771069

nareshsukhija commented 6 months ago

The issue is affecting latest version of Virtualbox 7 package on RHEL8.9. Notably, the issue doesn't affect latet version Virtualbox version 6.1.

nareshsukhija commented 6 months ago

Since https://github.com/hashicorp/packer/issues/12298 is locked/closed, it is not possible to add a comment there.

nywilken commented 6 months ago

Hi @autumnjolitz thanks for opening up this issue. The team and I have not been able to prioritize this work yet but I do understand how important it is to get it resolved. Would you or a member of the community be open taking a shot at opening a PR with the fix?

We can can help review and push the fix forward for sure.

nywilken commented 6 months ago

@nareshsukhija thanks for the bubbling up the issue again. The same offer to you if you would be interested in attempting to make a fix.

nywilken commented 1 month ago

Hey there apologies for the long delay on this issue. It looks like this particular issue was resolved by https://github.com/hashicorp/packer-plugin-virtualbox/pull/122 but the fix has not yet been released.

I'm in the process of reviewing a few 7.0.x related issues and will get this change released as soon as possible.