Red Hat Bugzilla – Bug 682227
qemu-kvm doesn't exit when binding to specified port fails
Last modified: 2013-01-09 18:37:20 EST
Description of problem: Qemu-kvm doesn't exit with error when it is told to run spice server on already-occupied port. Version-Release number of selected component (if applicable): qemu-kvm-0.12.1.2-2.148.el6.x86_64 spice-server-0.7.3-2.el6.x86_64 How reproducible: always Steps to Reproduce: 1. run one qemu-kvm with parameter -spice port=3000 2. run another qemu-kvm with parameter -spice port=3000 Actual results: second qemu-kvm should exit with error Expected results: qemu-kvm continues running and starts VM Additional info: qemu-kvm CLI output: do_spice_init: starting 0.7.3 reds_init_socket: reds_init_socket: binding socket to :3000 failed spice_server_add_interface: SPICE_INTERFACE_KEYBOARD spice_server_add_interface: SPICE_INTERFACE_MOUSE Using CPU model "cpu64-rhel6" Using CPU model "cpu64-rhel6" spice_server_add_interface: SPICE_INTERFACE_QXL red_worker_main: begin spice_server_add_interface: SPICE_INTERFACE_RECORD spice_server_add_interface: SPICE_INTERFACE_PLAYBACK handle_dev_destroy_surfaces: handle_dev_input: start handle_dev_destroy_surfaces: handle_dev_destroy_surfaces: handle_dev_input: oom current 18 pipe 0 ^C
devel-acked
Reproduced with qemu-kvm-0.12.1.2-2.163.el6.x86_64, marked qa_ack+ guest 1 spice port=5930,disable-ticketing -vga qxl guest 2 spice port=5930,disable-ticketing -vga qxl Results: reds_init_socket: reds_init_socket: binding socket to :5930 failed.
fix committed upstream, backport posted.
Verified on qemu-kvm-0.12.1.2-2.184.el6, passed. 1. Boot guest A on host with -spice port=5930,disable-ticketing -vga qxl -global qxl-vga.vram_size=67108864 do_spice_init: starting 0.8.2 spice_server_add_interface: SPICE_INTERFACE_KEYBOARD spice_server_add_interface: SPICE_INTERFACE_MOUSE spice_server_add_interface: SPICE_INTERFACE_QXL red_worker_main: begin QEMU 0.12.1 monitor - type 'help' for more information (qemu) 2. Boot guest B on the same host still with -spice port=5930,disable-ticketing -vga qxl -global qxl-vga.vram_size=67108864 do_spice_init: starting 0.8.2 reds_init_socket: reds_init_socket: binding socket to :5930 failed failed to initialize spice server [root@localhost mnt]# So, this issue is fixed.
*** Bug 602153 has been marked as a duplicate of this bug. ***
Hi, This bug exists on 6.1.z too, qemu-kvm-0.12.1.2-2.160.el6_1.9.x86_64 any plan to fix it on rhel6.1.z ? Sincerely, Xiaoqing Wei.
Minor issue, no plans to fix this in 6.1.z.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2011-1531.html