Skip to content

Add support for enabling nested virtualization for the ebs builder#679

Open
wagnerm wants to merge 1 commit into
hashicorp:mainfrom
wagnerm:wagnerm/ebs-builder-nested-virt
Open

Add support for enabling nested virtualization for the ebs builder#679
wagnerm wants to merge 1 commit into
hashicorp:mainfrom
wagnerm:wagnerm/ebs-builder-nested-virt

Conversation

@wagnerm

@wagnerm wagnerm commented Jun 11, 2026

Copy link
Copy Markdown

Description

This enables the ebs builder to launch an instances with NestedVirtualization enabled.

This updates the aws-sdk v2 code paths, and updates the ec2 sdk dependency to v1.307.0 which includes the new NestedVirtualization field. The NestedVirtualization was originally added in v1.288.0, but the most recent version seems best if we have to upgrade anyways. I'm happy to split this into another PR if you'd like, or downgrade to v1.288.0.

There appear to be legacy v1 SDK code paths in builder/common/ that use the deprecated v1 SDK, which does not support the NestedVirtualization field. So these will raise an error when that option is used instead. I don't totally understand why this code paths still exist using the v1 SDK, but let me know if something needs to be changed.

Resolved Issues

Closes #655

Rollback Plan

If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

No

This enable the ebs builder to launch an instances with
NestedVirtualization enabled.

This updates the aws-sdk v2 code paths, and updates the ec2 sdk dependency to
v1.307.0 which includes the new NestedVirtualization field. The
NestedVirtualization was originally added in v1.288.0, but the most
recent version seems best.

There appear to be legacy v1 SDK code paths in builder/common/ that use
the deprecated v1 SDK, which does not support the NestedVirtualization field.
So these will raise an error when that option is used instead.
@wagnerm wagnerm requested a review from a team as a code owner June 11, 2026 15:48
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

Successfully merging this pull request may close these issues.

Allow setting CPU options for nested virtualization

1 participant