Commit 08f13ff5 by Guba Sándor

vm: fixing xml parameters

parent 50790390
......@@ -20,8 +20,8 @@ class VMInstance:
name,
vcpu,
memory_max,
emulator='/usr/bin/kvm',
memory=None,
emulator='/usr/bin/kvm',
cpu_share=100,
arch="x86_64",
boot_menu=False,
......@@ -31,6 +31,7 @@ class VMInstance:
graphics=None,
acpi=True,
raw_data="",
boot_token="",
seclabel_type="dynamic",
seclabel_mode="apparmor"):
'''Default Virtual Machine constructor
......@@ -114,8 +115,13 @@ class VMInstance:
'type': self.graphics['type'],
'listen': self.graphics['listen'],
'port': str(self.graphics['port']),
'passwd': self.graphics['passwd'],
#'passwd': self.graphics['passwd'], TODO: Add this as option
})
ET.SubElement(devices,
'input',
attrib={
'type': 'tablet',
'bus': 'usb',})
# Features (TODO: features as list)
features = ET.SubElement(xml_top, 'features')
if self.acpi:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment