Hide Forgot
Description of problem: boot a guest with "-vnc :$port,password" in the command line, and the qemu-kvm man page said "The password must be set separately using the "change" command in the pcsys_monitor", and then connect to the guest by VNC with the password. I have tried it, it cann't use the "change" in the monitor to set the password separately, we should use "set_password" or "__com.redhat_set_password" command. This must be very confused to the users. so, it need to update it. Version-Release number of selected component (if applicable): host info: # uname -r && rpm -q qemu-kvm 2.6.32-262.el6.x86_64 qemu-kvm-0.12.1.2-2.275.el6.x86_64 guest info: # uname -r 2.6.32-262.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1.boot up guest with "-vnc :$port,password". 2.use the "change" command set the password separately. (qemu) change vnc sluo 3.connect to the guest by VNC with the password. Actual results: after the step 2, we cann't use "change" command to set the password separately. (qemu) change vnc sluo inet_parse: hostname parse error (sluo) Could not start VNC server on sluo (qemu) ? change change device filename [format] -- change a removable medium, optional format Expected results: two ways to set the password separately in the monitor, 1.(qemu)set_password vnc $password -- set vnc password (qemu)expire_password vnc $time -- set vnc password expire-time 2.(qemu)__com.redhat_set_password vnc $password $expiration -- set vnc password and expire-time Additional info:
Created attachment 579474 [details] Update qemu-kvm man page There's the note of changing password using "change" command which is not working for VNC password change purposes and you should use "set_password" command instead. This patch fixes the man page. Michal
Reproduce on qemu-kvm-0.12.1.2-2.295.el6.x86_64&kernel2.6.32-279.el6.x86_64 Reproduce steps: 1 #man qemu-kvm ... password Require that password based authentication is used for client connections. The password must be set separately using the "change" command in the pcsys_monitor ... 2. boot up guest with "-vnc :$port,password". 3. use the "change" command set the password separately. (qemu) change vnc sluo 4. connect to the guest by VNC with the password. Actual results: after the step 2, cann't set the password use "change" (qemu) change vnc sluo inet_parse: hostname parse error (sluo) Could not start VNC server on sluo (qemu) ? change change device filename [format] -- change a removable medium, optional format
Verified on: qemu-kvm-0.12.1.2-2.331.el6.x86_64 kernel 2.6.32-335.el6.x86_64 Verified steps: 1 Refer to Comment 2, disable changing password using "change" command and should use "set_password" command instead. #man qemu-kvm ... password Require that password based authentication is used for client connections. The password must be set separately using the "set_password" command in the pcsys_monitor. The syntax to change your password is: "set_password <protocol> <password>" where <protocol> could be either "vnc" or "spice". If you would like to change <protocol> password expiration, you should use "expire_password <protocol> <expiration-time>" where expiration time could be one of the following options: now, never, +seconds or UNIX time of expiration, e.g. +60 to make password expire in 60 seconds, or 1335196800 to make password expire on "Mon Apr 23 12:00:00 EDT 2012" (UNIX time for this date and time). ... 2 boot up guest with "-vnc :$port,password" and set up password on qemu monitor (qemu)set_password vnc xxx /* password set up without error 3 connet to the guest by vnc with the password "xxx" Actual results: after step 2 ,password set up complete without error after step 3 ,connect to guest with password success So this bug was fixed.
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/RHBA-2013-0527.html