Red Hat Bugzilla – Bug 807557
virt-sysprep: wrong params are passed to virt-inspector
Last modified: 2012-06-20 03:01:24 EDT
Description of problem: virt-sysprep pass wrong params to virt-inspector in this line: virt-inspector "${params[@]}" > $tmpdir/xml So if run: # virt-sysprep -d rhel The params will be "-d rhel", and virt-inspector will fail with "unknown option: d". Version-Release number of selected component (if applicable): libguestfs-1.16.12-1.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1. # virt-sysprep -d rhel or with some other options like "-a /path/to/image" Actual results: # virt-sysprep -d rhel Unknown option: d Usage: virt-inspector [--connect URI] domname virt-inspector guest.img [guest.img ...] Expected results: No error. Additional info:
Oh dear. "virt-inspector" in that script needs to be replaced by "virt-inspector2".
Fixed in libguestfs-1.16.12-3.el6.
Verify this problem with libguestfs-1.16.15-3.el6. The virt-sysprep can pass params to virt-inspector successfully. Tested with: virt-sysprep -a [guest-image-file] virt-sysprep -d [guest-domain-name] Check that the guest image configuration is reset with above commands.
(In reply to comment #4) > Verify this problem with libguestfs-1.16.15-3.el6. Sorry, correct the version as libguestfs-1.16.15-1.el6 Tested also with the options of -a|--add, -c|--connect, -d|--domain, --format and -v|--verbose, all the params pass correctly.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: No Documentation needed
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/RHSA-2012-0774.html