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

    Is it possible to convert a BIOS to UEFI and introduce vTPM into an existing VM?

    Scheduled Pinned Locked Moved Advanced features
    vtpmuefibios
    4 Posts 3 Posters 733 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 Online
      DustinB
      last edited by DustinB

      I'm pretty sure the answer is no, and that the VM needs to start new with UEFI and with vTPM, but just looking for confirmation.

      TIA.

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        Andrew Top contributor @DustinB
        last edited by

        @DustinB The answer is yes, you can, I have.

        I have changed modern Linux form BIOS to boot as UEFI. All I had to do was change to GPT, add a ESP/EFI boot partition, change the OS partition mounting, and install the needed EFI boot files. Also update the OS to know it's now a EFI boot setup so the OS updates boot files correctly (a GRUB package change). Then I can set the VM to be UEFI boot... It was not an automated process and I did it as an off-line procedure (not booting the OS I was changing).

        UEFI VMs boot quicker than BIOS VMs.

        I have not converted windows as I normally started newer versions as UEFI and older version work better with BIOS.

        D B 2 Replies Last reply Reply Quote 1
        • D Online
          DustinB @Andrew
          last edited by

          @Andrew To me the summary answer is no, ha. The content of this system is nothing super important. So replacing it new would be the quicker approach.

          1 Reply Last reply Reply Quote 0
          • B Offline
            Berrick @Andrew
            last edited by

            @Andrew said in Is it possible to convert a BIOS to UEFI and introduce vTPM into an existing VM?:

            I have not converted windows as I normally started newer versions as UEFI and older version work better with BIOS

            For peeps that stumble on this post looking for answers, the answer is yes you can for Windows.

            You can use the built in Windows mbr2gpt program to do so. However, things to consider before attempting are?

            • You can only have 3 partitions on the C driver. This is due to MBR only supporting 4.
              the 4th partition will be used during conversion

            • it also has to shrink some space from the end of the drive

            • You might have to move the recovery partition if it is at the end of the disk

            Basic steps are, to first run the command below. This will tell you if conversion should works

            mbr2gpt /validate /allowfullos
            

            Then the following to start the conversion

            mbr2gpt /convert /allowfullos
            

            Hope it helps someone

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