{"id":12073,"date":"2026-09-02T16:18:59","date_gmt":"2026-09-02T20:18:59","guid":{"rendered":"https:\/\/www.sayso.net\/?p=12073"},"modified":"2026-09-02T16:29:38","modified_gmt":"2026-09-02T20:29:38","slug":"converting-kvm-virt-manager-from-bios-to-uefi-boot","status":"publish","type":"post","link":"https:\/\/www.sayso.net\/?p=12073","title":{"rendered":"Win10: Converting KVM \/ virt-manager from BIOS to UEFI boot w\/TPM"},"content":{"rendered":"\n<p><strong>After running mbr2gpt edit the System and replace the &lt;os> section with:<\/strong><br><br>\u00a0&lt;os><br>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;type arch=&#8221;x86_64&#8243; machine=&#8221;q35&#8243;>hvm&lt;\/type><br>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;loader readonly=&#8221;yes&#8221; type=&#8221;pflash&#8221;>\/usr\/share\/OVMF\/OVMF_CODE_4M.ms.fd&lt;\/loader><br>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;boot dev=&#8221;hd&#8221;\/><br>\u00a0&lt;\/os><br><br><strong>When you start the machine, this section will be updated to this:<\/strong><br><br>\u00a0&lt;os firmware=&#8221;efi&#8221;><br>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;type arch=&#8221;x86_64&#8243; machine=&#8221;pc-q35-10.0&#8243;>hvm&lt;\/type><br>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;firmware><br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;feature enabled=&#8221;yes&#8221; name=&#8221;enrolled-keys&#8221;\/><br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;feature enabled=&#8221;yes&#8221; name=&#8221;secure-boot&#8221;\/><br>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;\/firmware><br>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;loader readonly=&#8221;yes&#8221; secure=&#8221;yes&#8221; type=&#8221;pflash&#8221; format=&#8221;raw&#8221;>\/usr\/share\/OVMF\/OVMF_CODE_4M.ms.fd&lt;\/loader><br>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;nvram template=&#8221;\/usr\/share\/OVMF\/OVMF_VARS_4M.ms.fd&#8221; templateFormat=&#8221;raw&#8221; format=&#8221;raw&#8221;>\/var\/lib\/libvirt\/qemu\/nvram\/win10.VARS.fd&lt;\/nvram><br>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;boot dev=&#8221;hd&#8221;\/><br>\u00a0&lt;\/os><br><br><strong>&#8230;and it just boots! At least on Debian 13 (Kanotix in this case)<\/strong><\/p>\n\n\n\n<p><strong>As for TPM, you may get an error message when adding the hardware to the VM<\/strong><\/p>\n\n\n\n<p>Unable to add device: unsupported configuration: TPM version &#8216;2.0&#8217; is not supported<\/p>\n\n\n\n<p><strong>You&#8217;ll need to install supporting packages. Easy like this:<\/strong><\/p>\n\n\n\n<p>root@precision:~# apt install swtpm-tools<br>Installing: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<br>\u00a0swtpm-tools<br><br>Installing dependencies:<br>\u00a0gnutls-bin \u00a0libtpms0 \u00a0swtpm \u00a0swtpm-libs<br><br>Suggested packages:<br>\u00a0trousers<br><br>Summary:<br>\u00a0Upgrading: 0, Installing: 5, Removing: 0, Not Upgrading: 27<br>\u00a0Download size: 1,175 kB<br>\u00a0Space needed: 3,362 kB \/ 12.0 GB available<br><br>Continue? [Y\/n] Y<br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After running mbr2gpt edit the System and replace the &lt;os> section with: \u00a0&lt;os>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;type arch=&#8221;x86_64&#8243; machine=&#8221;q35&#8243;>hvm&lt;\/type>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;loader readonly=&#8221;yes&#8221; type=&#8221;pflash&#8221;>\/usr\/share\/OVMF\/OVMF_CODE_4M.ms.fd&lt;\/loader>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;boot dev=&#8221;hd&#8221;\/>\u00a0&lt;\/os> When you start the machine, this section will be updated to this: \u00a0&lt;os firmware=&#8221;efi&#8221;>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;type arch=&#8221;x86_64&#8243; machine=&#8221;pc-q35-10.0&#8243;>hvm&lt;\/type>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;firmware>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;feature enabled=&#8221;yes&#8221; name=&#8221;enrolled-keys&#8221;\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;feature enabled=&#8221;yes&#8221; name=&#8221;secure-boot&#8221;\/>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;\/firmware>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;loader readonly=&#8221;yes&#8221; secure=&#8221;yes&#8221; type=&#8221;pflash&#8221; format=&#8221;raw&#8221;>\/usr\/share\/OVMF\/OVMF_CODE_4M.ms.fd&lt;\/loader>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;nvram template=&#8221;\/usr\/share\/OVMF\/OVMF_VARS_4M.ms.fd&#8221; templateFormat=&#8221;raw&#8221; format=&#8221;raw&#8221;>\/var\/lib\/libvirt\/qemu\/nvram\/win10.VARS.fd&lt;\/nvram>\u00a0\u00a0\u00a0\u00a0\u00a0&lt;boot dev=&#8221;hd&#8221;\/>\u00a0&lt;\/os> &#8230;and it just boots! At least on Debian 13 &hellip; <a href=\"https:\/\/www.sayso.net\/?p=12073\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Win10: Converting KVM \/ virt-manager from BIOS to UEFI boot w\/TPM<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sayso.net\/index.php?rest_route=\/wp\/v2\/posts\/12073"}],"collection":[{"href":"https:\/\/www.sayso.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sayso.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sayso.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sayso.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12073"}],"version-history":[{"count":4,"href":"https:\/\/www.sayso.net\/index.php?rest_route=\/wp\/v2\/posts\/12073\/revisions"}],"predecessor-version":[{"id":12077,"href":"https:\/\/www.sayso.net\/index.php?rest_route=\/wp\/v2\/posts\/12073\/revisions\/12077"}],"wp:attachment":[{"href":"https:\/\/www.sayso.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sayso.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sayso.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}