packer-plugin-virtualbox icon indicating copy to clipboard operation
packer-plugin-virtualbox copied to clipboard

Building virtualbox-iso within nested virtualization does not type the boot command

Open hc-github-team-packer opened this issue 2 years ago • 0 comments

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

  1. Get a Ubuntu vm running
  2. Install virtualbox + packer
  3. 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

hc-github-team-packer avatar Oct 14 '22 15:10 hc-github-team-packer