Skip to content

Commit

Permalink
frontend: Add TPM parameter when cloning a VM from a snapshot
Browse files Browse the repository at this point in the history
When cloning a VM from a snapshot, isTpmEnabled parameter is not set
in VmSnapshotListModel, resulting in a loss of the TPM device and an
error if the TPM device is mandatory, i.e. for VMs with newer Windows
versions as the guest OS.  This patch fixes the omission and adds the
corresponding parameter.

Bug-Url: #702
Bug-Url: https://bugzilla.redhat.com/2136180
  • Loading branch information
mz-pdm authored and ahadas committed Nov 2, 2022
1 parent 09bb735 commit a7633b7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ private void postNameUniqueCheckVM(VM vm, Snapshot snapshot,
parameters.setDiskInfoDestinationMap(imageToDestinationDomainMap);
parameters.setConsoleEnabled(model.getIsConsoleDeviceEnabled().getEntity());
parameters.setVirtioScsiEnabled(model.getIsVirtioScsiEnabled().getEntity());
parameters.setTpmEnabled(model.getTpmEnabled().getEntity());

BuilderExecutor.build(model, parameters, new UnitToGraphicsDeviceParamsBuilder());

Expand Down

0 comments on commit a7633b7

Please sign in to comment.