Better settings for a newly created VM

Now a standalone VM not cloned from a template
will not have a kernel and have HVM virt mode.

fixes QubesOS/qubes-issues#5203
This commit is contained in:
Marta Marczykowska-Górecka 2019-07-29 21:53:44 +02:00
parent b19d9e1373
commit 4e9ed5e261
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -153,9 +153,12 @@ class NewVmDlg(QtGui.QDialog, Ui_NewVMDlg):
properties = {}
properties['provides_network'] = self.provides_network.isChecked()
if self.netvm.currentIndex() != 0:
properties['netvm'] = self.netvm_list[self.netvm.currentIndex()]
if self.install_system.isChecked():
# Standalone - not based on a template
if self.vm_type.currentIndex() == 2:
properties['virt_mode'] = 'hvm'
properties['kernel'] = None