how do I add or modify instance hardware devices during or after provisioning?

asked 2018-08-09 13:35:15 -0600

rickwoof gravatar image

I have multiple windows instances that i'm trying to use Microsofts WinDBG to perform kernel-level debugging via serial port. I have modified the flavor properties to add multiple serial devices but cant prevent the instance from rebooting once I make changes to the .xml (virsh edit instance-00000...)

Monitor (Running debugger software): <serial type='tcp'> <source mode='**connect**' host='' service='4555'/> <protocol type='raw'/> <target port"'1'/> </serial>

Target (being debugged) <serial type='tcp'> <source mode='**bind**' host='' service='4555'/> <protocol type='raw'/> <target port"'1'/> </serial>

Whenever I modify (virsh edit instance-) the instance will start, but then shuts off a few seconds to a minute later.

This is what's in the logs:

2018-07-31 18:46:34.227+0000: 739394: debug : virExec:706 : Setting child security label to system_u:system_r:svirt_t:s0:c298,c439 2018-07-31 18:46:34.227+0000: 739394: debug : virExec:736 : Setting child uid:gid to 107:107 with caps 0 2018-07-31 18:46:34.227+0000: 739394: debug : virCommandHandshakeChild:435 : Notifying parent for handshake start on 43 2018-07-31 18:46:34.227+0000: 739394: debug : virCommandHandshakeChild:443 : Waiting on parent for handshake complete on 44 2018-07-31 18:46:34.245+0000: 739394: debug : virFileClose:110 : Closed fd 43 2018-07-31 18:46:34.246+0000: 739394: debug : virFileClose:110 : Closed fd 44 2018-07-31 18:46:34.246+0000: 739394: debug : virCommandHandshakeChild:463 : Handshake with parent is done 2018-07-31T18:47:35.191754Z qemu-kvm: terminating on signal 15 from pid 4841 (<unknown process>) 2018-07-31 18:47:35.391+0000: shutting down, reason=destroyed

Does anyone know how I can affect the instance without causing the shutdown?

edit retag flag offensive close merge delete