XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Packer / how to enable VTPM setting ?

    Scheduled Pinned Locked Moved Development
    6 Posts 3 Posters 174 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      davx8342
      last edited by

      I've been using ddelnano's excellent module to build templates using Packer and I'm nearly at a useful point. But the one thing that's missing, and I can't find an answer to, is how to enable VTPM so I can build Windows 11 templates.

      Is there a way to do this in the plugin? How are other people automating the build of their Windows 11 templates right now?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        question for @gduperrey

        1 Reply Last reply Reply Quote 0
        • gduperreyG Offline
          gduperrey Vates 🪐 XCP-ng Team
          last edited by gduperrey

          Hello,

          Having never used Packer or Terraform, I can't answer quickly. From my research, I haven't found anything yet related to vTPM.

          I've just asked our DevOps team about this so they can bring us more information on it or record it as a future evolution.

          You can enable vTPM from Xen Orchestra or directly from the command line via xe, in XCP-ng 8.3:

          xe vtpm-create vm-uuid=<vm_uuid>
          

          Several commands are also available for vTPM management:

          vtpm-create - Create a VTPM associated with a VM vtpm-param-clear - Clears the specified parameter (param-name can be allowed operations)
          vtpm-destroy - Destroy a VTPM vtpm-param-get - Gets the specified parameter of the object
          vtpm-list - Lists all the vtpms, filtering on the optional arguments vtpm-param-list - Lists all the parameters of the object specified by the uuid
          

          If you use a script to create your VMs, you should be able to enable vTPM immediately after creating them, before starting their installation.

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            davx8342 @gduperrey
            last edited by

            @gduperrey We went 8.2 because we wanted to test XOSTOR. It sounds like our options are limited. Windows 10 mainstream support goes EOL in October which is what's driving this for us.

            gduperreyG 1 Reply Last reply Reply Quote 0
            • gduperreyG Offline
              gduperrey Vates 🪐 XCP-ng Team @davx8342
              last edited by

              @davx8342 vTPM is not available in 8.2. You will not be able to use this option there.

              However, Xostor is coming very soon to XCP-ng 8.3, as we announced in this blog post: https://xcp-ng.org/blog/2025/03/14/the-future-of-xcp-ng-lts/

              Probably within one or two months. Indeed, we are doing everything possible to offer XCP-ng 8.3 as LTS, with Xostor, as soon as possible.

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                davx8342 @gduperrey
                last edited by

                @gduperrey Got it, thank you for your assistance, this is super helpful.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post