tpm_passthrough is not working
Bug #1944701 reported by
Deekshith Reddy
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I am trying to launch KVM with QEMU using TPM passthrough with "-m 1024 --enable-kvm -tpmdev passthrough,
"qemu-system-
Am I missing anything? kindly help.
tags: | added: qemu |
tags: | added: tpm |
To post a comment you must log in.
Hi,
most people would use higher level tools lik libvirt [1] to easen the rough edges here.
I happened to use it the way you tried in the past, but I've also seen the error you mention.
The details depend on the used tpm, firmware and qemu versions.
For your use case you most likely will get away with adding a (even a fake) cancel path:
$ touch /tmp/foo-cancel id=tpm0, path=/dev/ tpm0,cancel- path=/tmp/ foo-cancel -device tpm-tis,tpmdev=tpm0
$ qemu... -tpmdev passthrough,
It even is optional, but if it can't find it you will at least get the warning. id=id,path= path,cancel- path=cancel- path
(Linux- host only) Enable access to the host's TPM using the passthrough driver.
Here from the man page:
-tpmdev passthrough,
path specifies the path to the host's TPM device, i.e., on a Linux host this would be /dev/tpm0. path is optional and by default /dev/tpm0 is used.
Did this help or do you still think there is an issue in the package we'd need to fix?
[1]: https:/ /libvirt. org/formatdomai n.html# tpm-device