Instance security configuration
As a cloud administrator, you can configure the following security features for the instances that run on your cloud:
- UEFI Secure boot: You can create a UEFI Secure Boot flavor with the property key
os:secure_bootenabled. Cloud users can use this flavor to create instances that are protected with UEFI Secure Boot.
- Emulated virtual Trusted Platform Module (vTPM): You can provide cloud users the ability to create instances that have emulated vTPM devices.
- SEV: Use to enable your cloud users to create instances that use memory encryption.
Enable vTPM device support on Compute nodes Copy linkLink copied!
To enable cloud users to create instances with vTPM devices, you must configure the Compute nodes to enable vTPM support.
Before you begin Copy linkLink copied!
- The
occommand line tool is installed on your workstation. - You are logged in to Red Hat OpenStack Services on OpenShift (RHOSO) as a user with
cluster-adminprivileges. - You have selected the
OpenStackDataPlaneNodeSetCR that defines the nodes you want to configure vTPM support on. For more information about creating anOpenStackDataPlaneNodeSetCR, see Create a pre-provisioned node set for dynamic routing.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
Create an image for vTPM devices Copy linkLink copied!
When vTPM support is enabled, you can create an instance image with vTPM properties that cloud users can use to launch instances with vTPM devices.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Create an instance by using the vTPM image:
$ openstack server create --flavor m1.small \ --image vtpm-image vtpm-instance - Log in to the instance as a cloud user.
- To verify that the instance has access to a vTPM device, enter the following command from the instance:
$ dmesg | grep -i tpm
Create a flavor for vTPM devices Copy linkLink copied!
When vTPM support is enabled, you can create one or more flavors with vTPM properties that cloud users can use to launch instances with vTPM devices.
About this task Copy linkLink copied!
hw_tpm_model and hw_tpm_version properties are not set on an image. If both the flavor and the image specify a TPM device model and the two values do not match, scheduling fails.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Create an instance by using the vTPM flavor:
$ openstack server create --flavor vtpm-flavor \ --image rhel-image vtpm-instance - Log in to the instance as a cloud user.
- To verify that the instance has access to a vTPM device, enter the following command from the instance:
$ dmesg | grep -i tpm