Commit 308b9e03 by Bach Dániel

Merge branch 'virtio' into 'master'

Virtio

See merge request !2
parents ef9fe79e dbbccc05
......@@ -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