Fixed error in creating new VMs from GUI

Virt mode was forcibly set to HVM. Now, the virt mode is left as default,
unless a standalone VM with system installed from elsewhere is selected.

fixes QubesOS/qubes-issues#3515
This commit is contained in:
Marta Marczykowska-Górecka 2018-02-06 15:47:00 +01:00
parent 82323ca5ed
commit dc9f764baa
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -120,8 +120,10 @@ class NewVmDlg(QtGui.QDialog, Ui_NewVMDlg):
properties = {}
properties['provides_network'] = self.provides_network.isChecked()
properties['virt_mode'] = 'hvm'
properties['netvm'] = self.netvm_list[self.netvm.currentIndex()]
if self.install_system.isChecked():
properties['virt_mode'] = 'hvm'
properties['kernel'] = 'none'
thread_monitor = ThreadMonitor()
thread = threading.Thread(target=self.do_create_vm,