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.
I am attempting to use virt-win-reg on RHEL 7 to update some registry settings in a Windows 2008 Server image. This works fine on Fedora 20 with the same image, but it fails to detect the OS in the image on RHEL7:
-----------------------------------------------------------------------------
[root@puma01 rhos-ad-setup]# virt-win-reg --debug --merge /var/lib/libvirt/images/ad.qcow2 << EOF
[HKLM\SYSTEM\Setup]
"UnattendFile"="$SETUP_PATH\\autounattend.xml"
EOF
launching libguestfs ... at /usr/bin/virt-win-reg line 245.
inspecting guest ... at /usr/bin/virt-win-reg line 294.
virt-win-reg: No operating system could be detected inside this disk image.
This may be because the file is not a disk image, or is not a virtual machine
image, or because the OS type is not understood by libguestfs.
If you feel this is an error, please file a bug report including as much
information about the disk image as possible.
-----------------------------------------------------------------------------
The image I'm using is an official evaluation image from Microsoft that is converted to qcow2 format. There are details on downloading and converting the image here:
http://www.freeipa.org/page/Setting_up_Active_Directory_domain_for_testing_purposes#Download_and_unpack_original_images
Please let me know if there is any additional information that I can provide.
Comment 3Richard W.M. Jones
2014-09-17 19:38:28 UTC
This works for me with libguestfs 1.27.47 on Fedora Rawhide:
$ virt-win-reg --merge test.qcow2 <<EOF
[HKLM\SYSTEM\Setup]
"UnattendFile"="$SETUP_PATH\\autounattend.xml"
EOF
$ echo $?
0
To diagnose this further, can you do:
virt-inspector -a /var/lib/libvirt/images/ad.qcow2 -v -x |& tee /tmp/log
This will produce a very large amount of debugging output (in /tmp/log)
which you can examine and attach to this bug.
Comment 4Richard W.M. Jones
2014-09-17 20:46:53 UTC
For completeness I checked this on RHEL 7.1 too, and it works
there as well (for me).
Then I had a thought: Do you have 'libguestfs-winsupport' installed?
It is required in order to inspect or modify Windows guests on RHEL.
(In reply to Richard W.M. Jones from comment #4)
> For completeness I checked this on RHEL 7.1 too, and it works
> there as well (for me).
>
> Then I had a thought: Do you have 'libguestfs-winsupport' installed?
> It is required in order to inspect or modify Windows guests on RHEL.
I do not. I saw mention of this packge when filing the BZ, but didn't see it in the RHEL7 Server or Optional channels. Is this not shipped in one of the main RHEL7 channels?