Commit dbbccc05 by Guba Sándor

vm: add virtio channel to xml

parent 7686c2c0
......@@ -132,6 +132,18 @@ class VMInstance:
attrib={'mode': 'bind',
'path': '/var/lib/libvirt/serial/%s'
% self.name})
# Virtio console
virtio = ET.SubElement(devices,
'channel',
attrib={'type': 'unix'})
ET.SubElement(virtio,
'target',
attrib={'type': 'virtio', 'name': 'agent'})
ET.SubElement(virtio,
'source',
attrib={'mode': 'bind',
'path': '/var/lib/libvirt/serial/vio-%s'
% self.name})
# Console/graphics section
if self.graphics is not None:
ET.SubElement(devices,
......
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