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

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

Closed
blaargh opened this issue May 2, 2022 · 2 comments

Comments

@blaargh
Copy link

blaargh commented May 2, 2022

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

@github-actions
Copy link

This issue has been migrated to hashicorp/packer-plugin-virtualbox#84 due to the Packer Plugin split.

Please follow the new issue for updates.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants