addhardware: tpm: select version 2.0 by default

The full default selection of CRB + version 1.2 is explicitly
rejected by libvirt. Select version 2.0 by default so it has
a chance of working
This commit is contained in:
Cole Robinson 2019-05-17 15:57:53 -04:00
parent 2b49fae921
commit 0b4c6dd066
1 changed files with 2 additions and 1 deletions

View File

@ -631,7 +631,8 @@ class vmmAddHardware(vmmGObjectUI):
values = []
for t in DeviceTpm.VERSIONS:
values.append([t, t])
_build_combo(self.widget("tpm-version"), values)
_build_combo(self.widget("tpm-version"), values,
default_value=DeviceTpm.VERSION_2_0)
@staticmethod
def _get_tpm_model_list(vm, tpmversion):