vagrant icon indicating copy to clipboard operation
vagrant copied to clipboard

Enhancement Request: Add support for vTPM/TPM in Hyper-V Generation 2 VMs

Open rgl opened this issue 5 years ago • 2 comments

Is your feature request related to a problem? Please describe.

I want to have a vTPM/TPM device enabled in a Hyper-V virtual machine.

Describe the solution you'd like

Add a provider boolean flag, e.g., hyperv.tpm = true (the default should be false).

This should internally use the Enable-VMTPM/Disable-VMTPM cmdlets.

Describe alternatives you've considered

We can do this with a trigger, but having a boolean flag at the provider level is much more straitforward.

Additional context

This probably should also be added to packer and its box.xml (similar to what was done in https://github.com/hashicorp/vagrant/pull/11756).

rgl avatar Aug 28 '20 11:08 rgl

I've done some cursory research on this issue and I think I'll be able to implement the solution you described. Will start working on it soon

grottohub avatar Oct 18 '20 18:10 grottohub

interested to know the state of this PR ? I am also looking for such a solution to deal with The key protector could not be unwrapped issue

in the mean time how can I trigger these commands in-between Vagrant up because obviously i cant run the command before vagrant up as the VM itself will not exist and I cant run after vagrant up also as ``The key protector could not be unwrapped` issue will not make the VM start

VishnuJin avatar May 22 '24 16:05 VishnuJin