-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find @DATAROOTDIR@/swtpm/swtpm-localca in PATH in libvirt on Ubuntu 22.04 #749
Comments
You did not build swtpm on this system, did you? Otherwise, this looks like a packaging error. Can you dump the
|
I think I know where it may come from. Are you starting the VM as root or as a non-root user? You may have a non-root config file that was created by a tool that has an issue. There seems to be a packaging error:
The @DATAROOTDIR@ shouldn't be there but should look like this after the
At least when I build the package locally and install the package (
|
Hi Stefan,
The global
The user's swtpm_setup.conf (
When I fix the user's config to reflect the global one, I can boot the system and see the TPM inside the guest (and use "Windows Hello"). Thanks a lot! |
Where could I report this issue to the ubuntu packaging maintainers? |
@jptrmn You would have to file it here I think: https://bugs.launchpad.net/ubuntu You can reference what I said above. This must be a packaging error of some sort... Thanks a lot! |
@jptrmn If you have a link to the Bugreport on Launchpad, can you post it here as well, please. |
@stefanberger Sure, here is the link to Launchpad: https://bugs.launchpad.net/ubuntu/+source/swtpm/+bug/1989598 Best, |
Describe the bug
Hi, I am unable to launch a libvirt user session with a tpm-tis TPM-2 Module.
When I launch the VM, I get the error:
Could not find @DATAROOTDIR@/swtpm/swtpm-localca in PATH.
To Reproduce
Steps to reproduce the behavior:
tpm-tis
model TPMv2.0 to a user session in virt manageraa-complain
for swtpmExpected behavior
I would expect libvirt to find and execute the
swtpm-localca
binary (located in/usr/lib/x86_64-linux-gnu/swtpm/swtpm-localca
) and create the appropriate files; Launch the VM.Desktop (please complete the following information):
Versions of relevant components
Log files
Please attach any log files. If using a VM and it was started with libvirt, attach the logfile found in
/var/log/swtpm/libvirt/qemu/VM-NAME-swtpm.log
.Virt Manager Output:
The
win10-swtpm.log
:Additional context
I had to enable an AppArmor profile because initially the swtpm.log error was:
Any Input would be greatly appreciated.
Thanks,
Josef
The text was updated successfully, but these errors were encountered: