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 1313887

Summary: [RFE] provide QEMU guest agent command for setting root account password (Windows guest) [rhel-7.3]
Product: Red Hat Enterprise Linux 7 Reporter: Amnon Ilan <ailan>
Component: virtio-winAssignee: Gal Hammer <ghammer>
virtio-win sub component: qemu-ga-win QA Contact: Xueqiang Wei <xuwei>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: ailan, amedeo.salvati, areis, berrange, chayang, jen, jherrman, jraju, juzhang, knoel, marcandre.lureau, mkenneth, mkolaja, mrezanin, rbalakri, rpacheco, salmy, sherold, virt-bugs, virt-maint, vrozenfe, weliao, ymankad, yvugenfi
Version: 7.3Keywords: FutureFeature, Reopened
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
NO_DOCS
Story Points: ---
Clone Of: 1174181 Environment:
Last Closed: 2016-11-04 08:52:10 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:
Bug Depends On: 1174176, 1174181    
Bug Blocks: 1303906    

Comment 2 Amnon Ilan 2016-03-02 14:40:06 UTC

*** This bug has been marked as a duplicate of bug 1303906 ***

Comment 8 Miroslav Rezanina 2016-07-18 06:12:11 UTC
Currently, RHEL qemu-guest-agent is not related to win-ga component. There's no possibility to fix it now. This issue is handle with BZ 1303906.

Comment 18 Amnon Ilan 2016-09-05 07:45:49 UTC
*** Bug 1303809 has been marked as a duplicate of this bug. ***

Comment 19 Xueqiang Wei 2016-09-06 10:01:33 UTC
for crypted is false, the test is passed.
for crypted is true, the test is failed, return message "Unsupported".

the details as below:
host: kernel-3.10.0-500.el7.x86_64
      qemu-kvm-rhev-2.6.0-22.el7
guest: win10
       qemu-ga-win-7.3.2-1

some logs:

set password: redhat

{"execute":"guest-set-user-password","arguments":{"crypted":false,"username":"Administrator","password":"cmVkaGF0"}}
{"return": {}}

then reboot guest, login using the new password successfully


{"execute":"guest-set-user-password","arguments":{"crypted":true,"username":"Administrator","password":"SExHVVNmUTJoRjVXZw=="}}
{"error": {"desc": "{ 'class': 'Unsupported', 'data': {} }"}}

Comment 20 Marc-Andre Lureau 2016-09-06 11:30:07 UTC
windows doesn't support crypt()d passwords, as indicated by the error message.

Comment 21 Xueqiang Wei 2016-09-07 02:45:32 UTC
According to Comment 19 and Comment 20, change the status to VERIFIED.

Comment 23 errata-xmlrpc 2016-11-04 08:52:10 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.

https://rhn.redhat.com/errata/RHBA-2016-2609.html