Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 813633

Summary: need to update qemu-kvm about "-vnc" option for "password" in man page
Product: Red Hat Enterprise Linux 6 Reporter: Sibiao Luo <sluo>
Component: qemu-kvmAssignee: Michal Novotny <minovotn>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3CC: acathrow, areis, bcao, bsarathy, chayang, dyasny, juzhang, mazhang, michen, mkenneth, qzhang, shu, tburke, virt-maint, wdai, wquan, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.304.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 07:33:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Update qemu-kvm man page none

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