Support serial console for vms

Change-Id: I0a4f17be434755cb436207a06c82c059b9f6d4e6
This commit is contained in:
NastyaUrlapova
2014-01-09 16:43:07 +04:00
parent 0faafcddf4
commit e9f49da496

View File

@@ -137,4 +137,8 @@ class LibvirtXMLBuilder(object):
self._build_interface_device(node_xml, interface)
with node_xml.video:
node_xml.model(type='vga', vram='9216', heads='1')
with node_xml.serial(type='pty'):
node_xml.target(port='0')
with node_xml.console(type='pty'):
node_xml.target(type='serial', port='0')
return str(node_xml)