Mercurial > hg > Applications > virsh-wrapper
changeset 47:96661b8aaf68
Fix qemu:arg
author | atton |
---|---|
date | Mon, 18 Jan 2016 17:42:35 +0900 |
parents | 6b1dddd65d7c |
children | 03a2140b2b76 |
files | newvm.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/newvm.py Fri Jan 15 16:26:43 2016 +0900 +++ b/newvm.py Mon Jan 18 17:42:35 2016 +0900 @@ -121,7 +121,8 @@ domain.attrib['xmlns:qemu'] = "http://libvirt.org/schemas/domain/qemu/1.0" qemu_elem = ET.Element('qemu:commandline') ET.SubElement(qemu_elem, 'qemu:arg', {'value' : '-S'}) - ET.SubElement(qemu_elem, 'qemu:arg', {'value' : ('-s %d' % options.debug)}) + ET.SubElement(qemu_elem, 'qemu:arg', {'value' : ('-gdb')}) + ET.SubElement(qemu_elem, 'qemu:arg', {'value' : ('tcp::%d' % options.debug)}) domain.append(qemu_elem) if os.path.exists(vm_name + '.xml'):