Thank you for the bug report. Based on the error with DATAROOTDIR, I think your conf files were created before the fix for (LP: #2016744) was implemented in 22.04. Can you check if /etc/swtpm_setup.conf contains something like:
create_certs_tool= @DATAROOTDIR@/swtpm/swtpm-localca If so, you should be able to replace it with the line: create_certs_tool= /usr/bin/swtpm_localca Then you should be able to run swtpm_setup again. Let me know if that fixes it. Thanks! ** Changed in: swtpm (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2081995 Title: Cannot start libvirt/qemu VM with TPM device added To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/swtpm/+bug/2081995/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs