summaryrefslogtreecommitdiff
path: root/devstack/tools/ironic/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'devstack/tools/ironic/scripts')
-rwxr-xr-xdevstack/tools/ironic/scripts/configure-vm.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/devstack/tools/ironic/scripts/configure-vm.py b/devstack/tools/ironic/scripts/configure-vm.py
index 4fc252813..51cee5fbf 100755
--- a/devstack/tools/ironic/scripts/configure-vm.py
+++ b/devstack/tools/ironic/scripts/configure-vm.py
@@ -41,6 +41,16 @@ CONSOLE_LOG = """
"""
+CONSOLE_PTY = """
+ <serial type='pty'>
+ <target port='0'/>
+ </serial>
+ <console type='pty'>
+ <target type='serial' port='0'/>
+ </console>
+"""
+
+
def main():
parser = argparse.ArgumentParser(
description="Configure a kvm virtual machine for the seed image.")
@@ -91,11 +101,9 @@ def main():
params['emulator'] = "/usr/bin/qemu-kvm"
if args.console_log:
- params['bios_serial'] = "<bios useserial='yes'/>"
- params['console_log'] = CONSOLE_LOG % {'console_log': args.console_log}
+ params['console'] = CONSOLE_LOG % {'console_log': args.console_log}
else:
- params['bios_serial'] = ''
- params['console_log'] = ''
+ params['console'] = CONSOLE_PTY
libvirt_template = source_template % params
conn = libvirt.open("qemu:///system")