packer-plugin-virtualbox
packer-plugin-virtualbox copied to clipboard
Building virtualbox-iso within nested virtualization does not type the boot command
This issue was originally opened by @blaargh in https://github.com/hashicorp/packer/issues/11744 and has been migrated to this repository. The original issue description is below.
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
When filing a bug, please include the following headings if possible. Any example text in this template can be deleted.
Overview of the Issue
In our toolchain we want to build packer vm's from within a virtual machine. Nested VT-X is working correctly. When using packer build to build Ubuntu 22.04 via virtualbox-iso, the boot command is not being typed.
Reproduction Steps
- Get a Ubuntu vm running
- Install virtualbox + packer
- Build packer with the the template below
Packer version
1.8.0
Simplified Packer Template
https://gist.github.com/blaargh/eddca388c44099785e899edb67f28903
Operating system and Environment details
Ubuntu 22.04 in virtual machine hosted on ESXi 6.7
Log Fragments and crash.log files
2022/05/02 10:06:58 packer-builder-virtualbox-iso plugin: stdout: Waiting for VM "Ubuntu-Desktop-22.04" to power on... 2022/05/02 10:06:58 packer-builder-virtualbox-iso plugin: VM "Ubuntu-Desktop-22.04" has been successfully started. 2022/05/02 10:06:58 packer-builder-virtualbox-iso plugin: stderr: ==> virtualbox-iso: Waiting 4s for boot... ==> virtualbox-iso: Typing the boot command... ==> virtualbox-iso: Using SSH communicator to connect: 127.0.0.1 ==> virtualbox-iso: Waiting for SSH to become available... 2022/05/02 10:07:06 packer-builder-virtualbox-iso plugin: [INFO] Waiting for SSH, up to timeout: 2h46m40s
Nothing is crashing, the boot command just instantly moves on to the SSH command