Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Enable or Disable Secure Boot and TPM in VirtualBox

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

VirtualBox normally boots virtual machines with legacy BIOS and no TPM chip, which is fine for most operating systems. But Windows 11 and some Linux distributions require Secure Boot and TPM 2.0 to install or run. This guide shows you exactly how to enable or disable both features for a specific VM, and what to do if the VM won't boot afterwards.

What You'll Need

  • VirtualBox 7.0 or newer (Secure Boot and TPM support were added in version 7.0). Check your version under Help > About VirtualBox.
  • A virtual machine that is powered off. You cannot change these settings while the VM is running.
  • If you plan to install Windows 11, make sure your host CPU supports the required virtualization extensions (VT-x on Intel, AMD-V on AMD). These are usually enabled in the host BIOS.

Step-by-Step

  1. Open VirtualBox and select your VM. In the main VirtualBox Manager window, click once on the virtual machine you want to modify. Do not double-click it, as that starts the VM.
  2. Open the Settings dialog. Click the Settings button in the toolbar (the orange gear icon), or right-click the VM name and choose Settings from the context menu.
  3. Go to the System section. In the left sidebar of the Settings window, click System.
  4. Open the Processor tab. At the top of the System section, you'll see tabs: Motherboard, Processor, Acceleration. Click Processor.
  5. Enable or disable Secure Boot. Look for a checkbox labeled Enable Secure Boot. It is usually at the bottom of the Processor tab. Check the box to enable Secure Boot, or uncheck it to disable. If the box is greyed out, your VM is likely using an older chipset or firmware type; see the Troubleshooting section below.
  6. Go to the Motherboard tab. Click Motherboard at the top of the System section. You'll see the TPM drop-down menu near the bottom.
  7. Enable or disable TPM. From the TPM drop-down, select TPM 2.0 to enable it, or select None to disable it. If you need TPM 1.2 (rare, but some older OSes use it), you can choose that option as well.
  8. Apply the changes. Click OK to save the settings. The VM will now use the new firmware and TPM configuration the next time you start it.

That's it. If you are enabling these features for a Windows 11 installation, you may also need to ensure the VM has at least 4 GB of RAM and a 64 GB virtual disk, and that the VM's OS type is set to Windows 11 (64-bit) in the General settings.

Common Mistakes

  • Changing settings while the VM is running. VirtualBox will not let you modify firmware or TPM settings on a running VM. Always power off the VM first.
  • Enabling Secure Boot without TPM. Some operating systems, especially Windows 11, require both. If you enable only one, the installer may still complain.
  • Using an older VirtualBox version. Secure Boot and TPM support were introduced in VirtualBox 7.0. If you are on 6.x or earlier, you won't see these options. Update VirtualBox.
  • Forgetting to set the OS type. If your VM is configured as "Windows 10 (64-bit)", VirtualBox may not offer TPM 2.0. Change the OS type to "Windows 11 (64-bit)" in General settings.
  • Disabling TPM on a VM that already has an OS installed. If you installed Windows 11 with TPM enabled, then disable it, the OS may refuse to boot or show a BitLocker recovery screen. Only disable TPM if you are sure the OS doesn't need it.

Tips

  • Use a separate VM for testing. If you are experimenting with Secure Boot or TPM, create a clone of your VM first. That way, if something goes wrong, you can revert to the original.
  • Enable both for Windows 11. Windows 11's setup checks for Secure Boot and TPM 2.0. Enable both before starting the installation to avoid errors.
  • Keep the default Secure Boot keys. VirtualBox uses Microsoft-signed keys by default. This works for Windows and most Linux distributions. You don't need to change the keys unless you are doing advanced development.
  • Check the VM's firmware type. If you see a "Chipset" option in the Motherboard tab, make sure it's set to ICH9 or PIIX3 (both work). The default is usually fine.
  • Back up the VM before major changes. Export the VM as an OVA file or take a snapshot before enabling Secure Boot or TPM, especially if the VM contains important data.

Troubleshooting

I don't see the Secure Boot checkbox or TPM drop-down.

This almost always means you are using a VirtualBox version older than 7.0, or the VM's OS type is not set to a 64-bit version of Windows 10/11 or a compatible Linux distribution. Update VirtualBox to the latest version, and in the VM's General settings, set the Version to Windows 11 (64-bit) or Ubuntu (64-bit) as appropriate. Then reopen the System settings.

I enabled Secure Boot and TPM, but the VM won't boot.

If the VM was previously installed with Secure Boot disabled, the bootloader may not be signed. Try booting from the installation media again and performing a repair. If that fails, disable Secure Boot temporarily, boot the VM, and re-enable it after the OS is updated. For Windows, you may need to run tpm.msc to verify TPM is recognized.

Windows 11 installer still says TPM 2.0 is missing.

Double-check that you selected TPM 2.0 in the TPM drop-down, not just "TPM" or "1.2". Also ensure the VM has at least 4 GB of RAM and a 64 GB disk. Some Windows 11 builds also require UEFI firmware, which VirtualBox enables automatically when Secure Boot is on. If the problem persists, try creating a new VM with the Windows 11 preset.

Linux VM fails to boot after enabling Secure Boot.

Some Linux distributions, especially older ones, do not have signed bootloaders. Disable Secure Boot for those VMs. For modern Ubuntu or Fedora, it should work, but if not, check the distribution's documentation for Secure Boot support.

I disabled TPM and now BitLocker is asking for a recovery key.

This is expected. BitLocker uses TPM to store encryption keys. If you disable TPM, BitLocker cannot unlock the drive. Re-enable TPM and boot normally. If you no longer want BitLocker, you need to decrypt the drive before disabling TPM.

Frequently Asked Questions

Does VirtualBox support TPM 2.0?

Yes, since VirtualBox 7.0, you can assign a virtual TPM 2.0 (or 1.2) chip to a VM. It is a software emulation, not a physical chip, but it is sufficient for Windows 11's requirements.

Can I use Secure Boot and TPM on a VM that was created with an older VirtualBox version?

Yes, but you may need to update the VM's firmware and OS type. Open the VM's settings, change the OS type to a 64-bit Windows or Linux, and then the options become available. The VM's virtual hardware is upgraded automatically when you save the settings.

Do I need to enable Secure Boot for Windows 10?

No. Windows 10 does not require Secure Boot or TPM. You can leave both disabled for better compatibility with older software.

Will enabling Secure Boot and TPM slow down my VM?

No noticeable slowdown. The virtual TPM is a small software component, and Secure Boot only adds a few milliseconds to the boot process. You won't see a performance difference in normal use.

Can I have TPM without Secure Boot?

Yes, you can enable TPM and leave Secure Boot disabled. This is sometimes useful for Linux distributions that need TPM but use an unsigned bootloader.

How do I check if TPM is working inside the VM?

In Windows, press Win + R, type tpm.msc, and press Enter. It should say "TPM is ready for use". In Linux, run ls /dev/tpm0 or dmesg | grep tpm to see the virtual TPM device.