Zhenyang Feng
2015-09-09 17:51:00 UTC
Hello everyone, I need to use vTPM to finish a project but I encounter a
problem.
I use vTPM followed the steps explained in
https://mhsamsal.wordpress.com/2013/12/05/configuring-virtual-tpm-vtpm-for-xen-4-3-guest-virtual-machines/
.
I'm running Ubuntu 14.04 as Dom0 on Dell. I compiled Xen 4.3.0 from source.
After creating vtpmmgr and vtpm stubdoms, and DomU, I can invoke
tpm_version as well as cat /sys/class/misc/tpm0/device/pcrs from DomU:
However, I cannot take ownership of vTPM and thus I fail to execute the
commands required ownership of vTPM. When I invoke takeownership(I set SRK
password to null) I get the following error:
***@tpm-guest:~# tpm_takeownership
Enter owner password:
Confirm password:
Enter SRK password:
Confirm password:
Tspi_TPM_TakeOwnership failed: 0x00002004 - layer=tcs, code=0004 (4),
Internal software error
***@tpm-guest:~# tpm_takeownership -z -y -l debug
Tspi_Context_Create success
Tspi_Context_Connect success
Tspi_Context_GetTpmObject success
Tspi_GetPolicyObject success
Tspi_Policy_SetSecret success
Tspi_Context_CreateObject success
Tspi_GetPolicyObject success
Tspi_Policy_SetSecret success
Tspi_TPM_TakeOwnership failed: 0x00002004 - layer=tcs, code=0004 (4),
Internal software error
Tspi_Context_CloseObject success
Tspi_Context_FreeMemory success
Tspi_Context_Close success
I also noticed that someone has encountered the same problem.
http://lists.xenproject.org/archives/html/xen-devel/2015-06/msg03930.html
He solved it by upgrading to Ubuntu 15.04, I tried it but the error still
exists. Could you give me suggessions? Thank you very much.
Best,
FENG
problem.
I use vTPM followed the steps explained in
https://mhsamsal.wordpress.com/2013/12/05/configuring-virtual-tpm-vtpm-for-xen-4-3-guest-virtual-machines/
.
I'm running Ubuntu 14.04 as Dom0 on Dell. I compiled Xen 4.3.0 from source.
After creating vtpmmgr and vtpm stubdoms, and DomU, I can invoke
tpm_version as well as cat /sys/class/misc/tpm0/device/pcrs from DomU:
However, I cannot take ownership of vTPM and thus I fail to execute the
commands required ownership of vTPM. When I invoke takeownership(I set SRK
password to null) I get the following error:
***@tpm-guest:~# tpm_takeownership
Enter owner password:
Confirm password:
Enter SRK password:
Confirm password:
Tspi_TPM_TakeOwnership failed: 0x00002004 - layer=tcs, code=0004 (4),
Internal software error
***@tpm-guest:~# tpm_takeownership -z -y -l debug
Tspi_Context_Create success
Tspi_Context_Connect success
Tspi_Context_GetTpmObject success
Tspi_GetPolicyObject success
Tspi_Policy_SetSecret success
Tspi_Context_CreateObject success
Tspi_GetPolicyObject success
Tspi_Policy_SetSecret success
Tspi_TPM_TakeOwnership failed: 0x00002004 - layer=tcs, code=0004 (4),
Internal software error
Tspi_Context_CloseObject success
Tspi_Context_FreeMemory success
Tspi_Context_Close success
I also noticed that someone has encountered the same problem.
http://lists.xenproject.org/archives/html/xen-devel/2015-06/msg03930.html
He solved it by upgrading to Ubuntu 15.04, I tried it but the error still
exists. Could you give me suggessions? Thank you very much.
Best,
FENG