Bug 813633 - need to update qemu-kvm about "-vnc" option for "password" in man page
Summary: need to update qemu-kvm about "-vnc" option for "password" in man page
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Michal Novotny
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-18 05:11 UTC by Sibiao Luo
Modified: 2014-02-02 22:38 UTC (History)
17 users (show)

Fixed In Version: qemu-kvm-0.12.1.2-2.304.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 07:33:52 UTC
Target Upstream Version:


Attachments (Terms of Use)
Update qemu-kvm man page (1.81 KB, patch)
2012-04-23 10:28 UTC, Michal Novotny
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0527 0 normal SHIPPED_LIVE qemu-kvm bug fix and enhancement update 2013-02-20 21:51:08 UTC

Description Sibiao Luo 2012-04-18 05:11:43 UTC
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:

Comment 2 Michal Novotny 2012-04-23 10:28:14 UTC
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

Comment 9 mazhang 2012-10-25 12:16:52 UTC
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

Comment 10 mazhang 2012-10-25 12:34:06 UTC
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.

Comment 13 errata-xmlrpc 2013-02-21 07:33:52 UTC
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


Note You need to log in before you can comment on or make changes to this bug.