[libvirt] [PATCH 0/3] qemu: bugfixes for websocket port in graphics

Nikolay Shirokovskiy nshirokovskiy at virtuozzo.com
Tue Nov 22 11:09:30 UTC 2016


Patch 1 is a preparation for patch 2.
Patch 3 particularly fixes next 2 cases:

== A. Can not restore domain with autoconfigured websocket.

domain 1 and 2 have autoconfigured websocket. 

1. domain 1 is started then, saved
2. domain 2 is started
3. domain 1 restoration is failed:

error: internal error: qemu unexpectedly closed the monitor: 2016-11-21T10:23:11.356687Z 
qemu-kvm: -vnc 0.0.0.0:2,websocket=5700: Failed to start VNC server on `(null)': 
Failed to bind socket: Address already in use

== B. Can not migrate domain with autoconfigured websocket.

domain 1 on host A, domain 2 on host B, both have autoconfigured websocket

1. domain 1 started, domain 2 started
2. domain 1 migration to host B is failed with the above error.

Nikolay Shirokovskiy (3):
  qemu: refactor: use switch for enum in qemuProcessGraphicsReservePorts
  qemu: mark user defined websocket as used
  qemu: fix xml dump of autogenerated websocket

 src/conf/domain_conf.c  |  5 ++++-
 src/conf/domain_conf.h  |  1 +
 src/qemu/qemu_process.c | 45 ++++++++++++++++++++++++++++++++++++---------
 3 files changed, 41 insertions(+), 10 deletions(-)

-- 
1.8.3.1




More information about the libvir-list mailing list