Skip to content

Feature Request: Native/Simplified TPM Support for Windows 11 VMs #73

@Defenso-EBO

Description

@Defenso-EBO

Current Problem and Complexity

It is currently not possible to configure TPM 2.0 directly within the VM configuration file managed by vm-bhyve for Windows 11 guests.

This feature, which is technically supported by the underlying bhyve hypervisor, must be implemented through a manual, multi-step workaround:

  1. A separate, low-level bhyve.conf file must be created to define the necessary TPM parameters:
    tpm.type=swtpm
    tpm.path=/path/to/the/created/swtpm.sock
    tpm.version=2.0
    
  2. To instruct bhyve to use this custom configuration file, the VM's main configuration file (<vmname>.conf in the datastore) must be manually updated to inject the external configuration into the bhyve command line:
    bhyve_options= -k [path of configuration file for bhyve]
    

This process significantly increases the complexity of setting up and maintaining modern virtual machines.

Proposed Solution

It would be highly beneficial for the user experience and the adoption of vm-bhyve to natively support TPM configuration.

This could be achieved by allowing the user to set the parameters directly within the VM's main configuration file, allowing the utility to automatically manage the file creation and parameter injection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions