Commit 08f13ff5 by Guba Sándor

vm: fixing xml parameters

parent 50790390
...@@ -20,8 +20,8 @@ class VMInstance: ...@@ -20,8 +20,8 @@ class VMInstance:
name, name,
vcpu, vcpu,
memory_max, memory_max,
emulator='/usr/bin/kvm',
memory=None, memory=None,
emulator='/usr/bin/kvm',
cpu_share=100, cpu_share=100,
arch="x86_64", arch="x86_64",
boot_menu=False, boot_menu=False,
...@@ -31,6 +31,7 @@ class VMInstance: ...@@ -31,6 +31,7 @@ class VMInstance:
graphics=None, graphics=None,
acpi=True, acpi=True,
raw_data="", raw_data="",
boot_token="",
seclabel_type="dynamic", seclabel_type="dynamic",
seclabel_mode="apparmor"): seclabel_mode="apparmor"):
'''Default Virtual Machine constructor '''Default Virtual Machine constructor
...@@ -114,8 +115,13 @@ class VMInstance: ...@@ -114,8 +115,13 @@ class VMInstance:
'type': self.graphics['type'], 'type': self.graphics['type'],
'listen': self.graphics['listen'], 'listen': self.graphics['listen'],
'port': str(self.graphics['port']), '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 (TODO: features as list)
features = ET.SubElement(xml_top, 'features') features = ET.SubElement(xml_top, 'features')
if self.acpi: 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