Ok, it has HOME=/var/lib/swtpm So due to the config being "RANDFILE = $ENV::HOME/.rnd\n" one might expect `/var/lib/swtpm/.rnd` But that isn't what it will resolve to, instead we see in strace that it uses: "./.rnd"
And surprise :-P, it does not set CWD, I checked a running program and got # executed in /home/ubuntu: $ sudo ls -laF /proc/$(pidof swtpm-localca)/cwd lrwxrwxrwx 1 swtpm swtpm 0 Apr 7 13:34 /proc/3260/cwd -> /home/ubuntu/ # executed by libvirt for guest creation $ while /bin/true; do sudo ls -laF /proc/$(pidof swtpm-localca)/cwd 2>/dev/null; done lrwxrwxrwx 1 swtpm swtpm 0 Apr 7 13:37 /proc/3990/cwd -> // -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1968131 Title: Starting VM with UEFI firmware fails with swtpm To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1968131/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs