{"id":20033112,"url":"https://github.com/savchenko/debian-qemu-tpm","last_synced_at":"2025-09-20T07:31:54.578Z","repository":{"id":119860576,"uuid":"357873713","full_name":"savchenko/debian-qemu-tpm","owner":"savchenko","description":"Pre-compiled packages for TPM2 under QEMU/libvirt on Debian","archived":true,"fork":false,"pushed_at":"2021-04-15T02:56:41.000Z","size":29385,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-12T00:30:28.524Z","etag":null,"topics":["debian","debian-bullseye","libvirt","tpm","tpm2","virt-manager"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/savchenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-14T11:03:40.000Z","updated_at":"2025-02-18T17:20:57.000Z","dependencies_parsed_at":"2023-06-03T10:15:38.624Z","dependency_job_id":null,"html_url":"https://github.com/savchenko/debian-qemu-tpm","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/savchenko/debian-qemu-tpm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savchenko%2Fdebian-qemu-tpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savchenko%2Fdebian-qemu-tpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savchenko%2Fdebian-qemu-tpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savchenko%2Fdebian-qemu-tpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/savchenko","download_url":"https://codeload.github.com/savchenko/debian-qemu-tpm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savchenko%2Fdebian-qemu-tpm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276064222,"owners_count":25578997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debian","debian-bullseye","libvirt","tpm","tpm2","virt-manager"],"created_at":"2024-11-13T09:44:34.266Z","updated_at":"2025-09-20T07:31:50.947Z","avatar_url":"https://github.com/savchenko.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What?\n\nStatic builds of `libtpms` v0.7.7 and `swtpm` v0.5.2 for Debian Bullseye.\n\n#### Configuration details\n- libtpms: `--prefix=/usr --enable-static --with-tpm2 --with-openssl`\n- swtpm: `--prefix=/usr --enable-static --with-seccomp`\n\n`/usr` prefix is neccessary so that everything works with the bundled AppArmor profile: `/etc/apparmor.d/abstractions/libvirt-qemu`.\n\n## Why?\n\n`apt install virt-manager` does not provide a functioning TPM2 out of the box. This repository rectifies the issue.\n\n## How?\n\n1. Save yourself time and download pre-compiled binaries from the [Releases](https://github.com/savchenko/debian-qemu-tpm/releases) section.\n2. `make install` both.\n3. Install the Python modules system-wide:\n   - `./swtpm-0.5.2/src/swtpm_setup/`\n   - `./swtpm-0.5.2/samples/`\n\nIf you stumble upon \"permission denied\" errors - enable log level 3+ in `/etc/libvirt/libvirtd.conf` and trace where it fails.\n\n### Testing\nOn the host running pre-release version of the Bullseye:\n- Linux 5.10.26-1 \n- virt-manager 3.2.0-3\n- libvirt0 7.0.0-3\n\nQuerying TPM from inside the VM:\n```\n$ tpm2_pcrread | head -12\nsha1:\n  0 : 0xBF2BA644D7415ED4A24C50B2A795BA58DCE9FA32\n  1 : 0x4FCBBCA9EC6A78AD7510516E445A7E6BEE3B020D\n  2 : 0xE68C21DC48C4EA61626A5D309CD3A3518F5D9EAA\n  3 : 0xB2A83B0EBF2F8374299A5B2BDFC31EA955AD7236\n  4 : 0x42E626C470E1E0DF350EDFB42268A270FB8E4AF7\n  5 : 0xEC36E74A3ACF557CE8CAE2DE373731C6153A7F39\n  6 : 0xB2A83B0EBF2F8374299A5B2BDFC31EA955AD7236\n  7 : 0x518BD167271FBB64589C61E43D8C0165861431D8\n  8 : 0xCEBC47EEB27FD591D7B1D18B03754194FAA56866\n  9 : 0xE31C7D6093B9903E2EA04434AE6F28972ECB4D7B\n  10: 0x0000000000000000000000000000000000000000\n```\n\n### Notes\n- Double-check PCRs behaviour on your particular system.\n- You might want to bind PCR8 instead of PCR6 ([have a read](https://www.gnu.org/software/grub/manual/grub/html_node/Measured-Boot.html)).\n- Therefore, `clevis luks bind -d /dev/vda3 tpm2 '{\"pcr_ids\":\"0,1,2,3,5,7,8,9\"}'`.\n- Don't even try to seal against \u003e8 PCRs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavchenko%2Fdebian-qemu-tpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsavchenko%2Fdebian-qemu-tpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavchenko%2Fdebian-qemu-tpm/lists"}