Bug 1174123
Summary: | Graphics password disappear after conversion of virt-v2v | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | tingting zheng <tzheng> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | CC: | agkesos, codong, dyuan, juzhou, mbooth, mzhan, ptoscano, rjones |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | V2V | ||
Fixed In Version: | libguestfs-1.28.1-1.18.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 13:47:46 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: |
Description
tingting zheng
2014-12-15 08:24:33 UTC
It turns out we need to use virDomainGetXMLDesc with the VIR_DOMAIN_XML_SECURE flag, otherwise passwords are not included in the output. https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetXMLDesc This also requires that we use a r/w connection. As this should be simple to fix, I'll have a go at fixing this for RHEL 7.1 (if there is time). Old virt-v2v did pass this flag: my $dom = new XML::DOM::Parser->parse($domain->get_xml_description(1)); but as you can see it's not exactly clear(!) since Matt used the value '1' instead of the defined constant. Patch posted: https://github.com/libguestfs/libguestfs/commit/dfded7c94118e8888dec38f11c2af62d8156a59e A further change is needed: using 'passwd=' instead of 'password=' in the output XML. In full, the following 3 commits are needed: https://github.com/libguestfs/libguestfs/commit/9c4af17add53b50ce0b6756c6216380862f10631 https://github.com/libguestfs/libguestfs/commit/dfded7c94118e8888dec38f11c2af62d8156a59e https://github.com/libguestfs/libguestfs/commit/7a218cbdf635af543479256593e448100406ea1e Tested with: libguestfs-1.28.1-1.18.el7.x86_64 virt-v2v-1.28.1-1.18.el7.x86_64 1.Prepare a guest with vnc passowrd set on xen server. 2.Use virt-v2v to convert it. 3.After conversion,the password is kept there. Refer to the above comments,move the bug to VERIFIED. 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-2015-0303.html Hello, I have installed the latest libguestfs-1.28.1-1.18.el7.x86_64 and there is no virt-v2v binary inside. Shall i open a new bug for this? # rpm -q libguestfs libguestfs-1.28.1-1.18.el7.x86_64 # yum provides *virt-v2v* Loaded plugins: langpacks, product-id, subscription-manager No matches found # rpm -q --filesbypkg libguestfs libguestfs /usr/bin/libguestfs-test-tool libguestfs /usr/lib64/guestfs libguestfs /usr/lib64/guestfs/supermin.d libguestfs /usr/lib64/guestfs/supermin.d/base.tar.gz libguestfs /usr/lib64/guestfs/supermin.d/daemon.tar.gz libguestfs /usr/lib64/guestfs/supermin.d/excludefiles libguestfs /usr/lib64/guestfs/supermin.d/hostfiles libguestfs /usr/lib64/guestfs/supermin.d/init.tar.gz libguestfs /usr/lib64/guestfs/supermin.d/packages libguestfs /usr/lib64/guestfs/supermin.d/udev-rules.tar.gz libguestfs /usr/lib64/libguestfs.so.0 libguestfs /usr/lib64/libguestfs.so.0.423.0 libguestfs /usr/share/doc/libguestfs-1.28.1 libguestfs /usr/share/doc/libguestfs-1.28.1/COPYING libguestfs /usr/share/doc/libguestfs-1.28.1/README libguestfs /usr/share/locale/en_GB/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/locale/es/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/locale/gu/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/locale/hi/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/locale/kn/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/locale/ml/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/locale/mr/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/locale/nl/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/locale/or/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/locale/pa/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/locale/pl/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/locale/ta/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/locale/te/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/locale/uk/LC_MESSAGES/libguestfs.mo libguestfs /usr/share/man/man1/guestfs-faq.1.gz libguestfs /usr/share/man/man1/guestfs-performance.1.gz libguestfs /usr/share/man/man1/guestfs-recipes.1.gz libguestfs /usr/share/man/man1/guestfs-release-notes.1.gz libguestfs /usr/share/man/man1/guestfs-testing.1.gz libguestfs /usr/share/man/man1/libguestfs-test-tool.1.gz |