Commit 2679abf4 by Karsa Zoltán István

qemu guest agent

parent 3fe7d076
...@@ -166,6 +166,18 @@ class VMInstance: ...@@ -166,6 +166,18 @@ class VMInstance:
attrib={'mode': 'bind', attrib={'mode': 'bind',
'path': '/var/lib/libvirt/serial/vio-%s' 'path': '/var/lib/libvirt/serial/vio-%s'
% self.name}) % self.name})
virtio = ET.SubElement(devices,
'channel',
attrib={'type': 'unix'})
ET.SubElement(virtio,
'target',
attrib={'type': 'virtio', 'name': 'org.qemu.guest_agent.0', 'state': 'connected'})
ET.SubElement(virtio,
'source',
attrib={'mode': 'bind',
'path': '/var/lib/libvirt/qemu/f16x86_64.agent-%s'
% self.name})
# Console/graphics section # Console/graphics section
if self.graphics is not None: if self.graphics is not None:
ET.SubElement(devices, 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