Issues related to applications and software problems
Post Reply
Posts: 44
Joined: 2014/07/31 20:00:37


Post by simon@bp » 2021/11/23 23:56:51

Is it possible to install the swtpm application on CentOS 7? If so, how?

Or are there alternatives that will allow a Windows 11 guest to be installed?

Posts: 305
Joined: 2020/01/17 09:01:44

Re: swtpm

Post by sml » 2021/11/24 16:34:18

Have a look at their INSTALL document. It has instructions for how to build it from source on RHEL. However, one of its prerequisites is libtpm by the same author. You'll have to build it from source and install beforehand as well. And I guess python3-twisted must be built, too: the CentOS 7 repositories only have the Python 2 version available.

User avatar
Site Admin
Posts: 32405
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: swtpm

Post by TrevorH » 2021/11/24 16:48:06

If you need to build it for CentOS 7 then a good starting place would be to pick up the SRPMs for CentOS 8 (they're in EPEL) and rebuild those for CentOS 7 using the 'mock' utility. There are also newer versions of swtpm (libtpms seems to be the same version in both) in the Fedora 34 repos so an SRPM for those could also be a place to start.
CentOS 8 died a premature death at the end of 2021 - migrate to Rocky/Alma/OEL/Springdale ASAP.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are dead, do not use them.
Use the FAQ Luke

Post Reply