Skip to content

Commit

Permalink
core: Update TPM device in parameters
Browse files Browse the repository at this point in the history
TPM device is not updated in
VmDeviceUtils.updateVmDevicesInParameters.  This results in omitting
the TPM device at least when exporting a VM to a data domain and an
error when the TPM device is mandatory, i.e. for VMs with a modern
Windows guest OS.  This patch fixes the omission and sets the
corresponding parameter.

Bug-Url: #702
  • Loading branch information
mz-pdm authored and ahadas committed Nov 2, 2022
1 parent a7633b7 commit 0089bdf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1494,6 +1494,7 @@ public void updateVmDevicesInParameters(VmManagementParametersBase params, List<
params.setSoundDeviceEnabled(containsDeviceWithType(devices, VmDeviceGeneralType.SOUND));
params.setConsoleEnabled(containsDeviceWithType(devices, VmDeviceGeneralType.CONSOLE));
params.setVirtioScsiEnabled(containsDeviceWithType(devices, VmDeviceGeneralType.CONTROLLER, VmDeviceType.VIRTIOSCSI));
params.setTpmEnabled(containsDeviceWithType(devices, VmDeviceGeneralType.TPM));

updateVmGraphicDevicesInParameters(params, devices);
updateWatchdogInParameters(params, devices);
Expand Down

0 comments on commit 0089bdf

Please sign in to comment.