Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

[role="_abstract"]
{Project} can connect to the `libvirt` API on the hypervisor to provision hosts and control certain virtualization functions.
Optional Trusted Platform Module (TPM) support is available for libvirt virtual machines.

Only Virtual Machines created through {Project} can be managed.
Virtual Machines with other than directory storage pool types are unsupported.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ $ hammer compute-profile create --name "_My_Libvirt_Compute_Profile_"
[options="nowrap" subs="+quotes"]
----
$ hammer compute-profile values create \
--compute-attributes "cpus=1,memory=1073741824" \
--compute-attributes "cpus=1,memory=1073741824,tpm=true" \
--compute-profile "_My_Libvirt_Compute_Profile_" \
--compute-resource "_My_KVM_Server_" \
--interface "compute_type=network,compute_model=virtio,compute_network=_examplenetwork_" \
--volume "pool_name=default,capacity=20G,format_type=qcow2"
----
+
To enable a virtual Trusted Platform Module (TPM) for the profile, add `tpm=true` to the `--compute-attributes` option.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ You can create multiple network interfaces.
However, at least one interface must point to a {SmartProxy}-managed network.
. In the *Storage* area, enter the storage parameters for the host.
You can create multiple volumes for the host.
. Optional: Select *Trusted Platform Module (TPM)* to add a virtual TPM device for enhanced security.
. Click *Submit* to save the settings to the compute profile.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ifeval::["{context}" == "kvm-provisioning"]
----
$ hammer host create \
--build true \
--compute-attributes="cpus=1,memory=1073741824" \
--compute-attributes="cpus=1,memory=1073741824,tpm=true" \
--compute-resource "_My_KVM_Server_" \
--enabled true \
--hostgroup "_My_Host_Group_" \
Expand All @@ -51,7 +51,7 @@ ifeval::["{context}" == "kvm-provisioning"]
[options="nowrap" subs="+quotes,attributes"]
----
$ hammer host create \
--compute-attributes="cpus=1,memory=1073741824" \
--compute-attributes="cpus=1,memory=1073741824,tpm=true" \
--compute-resource "_My_KVM_Server_" \
--enabled true \
--hostgroup "_My_Host_Group_" \
Expand All @@ -64,4 +64,6 @@ $ hammer host create \
--provision-method "image" \
--volume="pool_name=default,capacity=20G,format_type=qcow2"
----
+
For KVM (libvirt), you can add `tpm=true` to `--compute-attributes` to attach a virtual Trusted Platform Module (TPM). Omit it if you do not need TPM.
endif::[]
Loading