@André,
Hi over here as well.
The usual suspect that comes to mind is apparmor protection as tpm use isn't 
common yet.
Depening on how it is configured in your guest it might not have got an 
apparmor allowance yet.

Please could you report back the following:
1. run `dmesg -w` while you start your guest are there apparmor DENIED messages?
2. if #1 is true, then please report the following
  2.1 xml of your guest `virsh dumpxml <guestname>`
  2.2 apparmor rules that are generated 
/etc/apparmor.d/libvirt/libvirt-<guestuuid>.files

After we have the above you can try to allow all your guests access to
that path, I'm guessing a bit until I see the denial, but maybe

echo "/dev/tpm* rw," >> /etc/apparmor.d/local/abstractions/libvirt-qemu

Afterwards ensure your guests is destroyed and started again (to refresh its 
profile)
Does it now work better?

That might be too open to commit it, but good for a try if that resolves
your issue.

** Changed in: libvirt (Ubuntu)
       Status: New => Incomplete

** Changed in: libvirt (Ubuntu)
     Assignee: (unassigned) => André Abrantes (andreadps)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1913552

Title:
  using tpm reports "/dev/tpm0: Permission denied"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1913552/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to