Created attachment 1179753 [details] win7sp1 Description of problem: QXL driver can't be installed automatically in win7sp1 guest after converted by v2v Version-Release number of selected component (if applicable): virt-v2v-1.32.6-1.el7.x86_64 libguestfs-1.32.6-1.el7.x86_64 libvirt-2.0.0-2.el7.x86_64 qemu-kvm-rhev-2.6.0-13.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.Convert Windows 7 Utimate Service Pack 1 guest to rhev by virt-v2v # virt-v2v -o rhev -os 10.73.2.1:/home/v2v_export kvm-win7-i386 -b ovirtmgmt -n ovirtmgmt [ 0.0] Opening the source -i libvirt kvm-win7-i386 [ 0.0] Creating an overlay to protect the source from being modified [ 0.2] Initializing the target -o rhev -os 10.73.2.1:/home/v2v_export [ 0.2] Opening the overlay [ 2.0] Inspecting the overlay [ 3.2] Checking for sufficient free disk space in the guest [ 3.2] Estimating space required on target for each disk [ 3.2] Converting Windows 7 Ultimate to run on KVM virt-v2v: This guest has virtio drivers installed. [ 4.4] Mapping filesystem data to avoid copying unused and blank areas [ 4.9] Closing the overlay [ 5.0] Checking if the guest needs BIOS or UEFI to boot [ 5.0] Assigning disks to buses [ 5.0] Copying disk 1/1 to /tmp/v2v.pbvWjS/bd8fe8a3-0fe7-4860-816b-eda587c3f12e/images/ed84cfbe-2cee-4f7e-aa89-1a51c6f8ad78/79bfb24d-65cc-4922-bccd-1a8a75ed3106 (raw) (100.00/100%) [ 79.6] Creating output metadata [ 79.7] Finishing off 2.After converion, import the guest from export domain to data domain 3.Power on the guest and open guest's console to check which driver is installing, found that qxl will not installed automatically,and display driver shows VGA in device manager, pls refer to screenshot"win7sp1" 4.The qxl driver still couldn't be installed automatically even if reboot the guest,so have to update display's driver by manual to search the driver in filesystem , then the qxl driver could be installed Actual results: As above description Expected results: QXL driver can be installed automatically in win7sp1 guest after converted by v2v Additional info: QXL driver can be installed automatically in Windows 7 Utimate guest after converted by v2v,pls refer to screenshot"win7"
Created attachment 1179754 [details] win7
Created attachment 1179755 [details] win7sp1-v2v-debug-log
Convert win7sp1 host to rhev by virt-p2v, qxl driver could be installed for display adapter automatically, pls refer to screenshot'win7sp1-p2v'
Created attachment 1188574 [details] win7sp1-p2v
Also could reproduce this bug when convert win2008r2 guest from kvm to rhev by virt-v2v sometimes, details log pls refer to https://libvirt-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/v2v/view/RHEL-7.3/job/v2v-RHEL-7.3-runtest-x86_64-matrix-kvm_ISCSI/2/testReport/rhel/convert_vm_to_ovirt/kvm_windows_win2008r2_x86_64_qcow2_f_ISCSI/
Moving to RHEL 7.4. If the display is usable (even if not optimal) then that allows the end user to fix the situation after conversion. In RHEL 7.4 the registry hacks have been substantially rewritten so it's likely that trying to fix this in RHEL 7.3 is a waste of effort on a dead upstream code path.
After debugging, QXL driver can't be installed automatically when convert win7 guest or win2008r2 guest from kvm to rhev by virt-v2v, this bug just will be happened when convert the guest from kvm no matter which version of windows 7(win7, win7sp1) or win2008r2
Let's retest this against RHEL 7.4 where there have been substantial changes to how Windows drivers are installed. However wait until we have the final RHEL 7.4 package (based on libguestfs 1.36) before doing any testing.
This bug could be reproduced when convert win7 and win2008r2 guest from kvm to glance by virt-v2v Related packages: virt-v2v-1.36.2-1.el7.x86_64 libguestfs-1.36.2-1.el7.x86_64 libvirt-3.1.0-2.el7.x86_64 qemu-kvm-rhev-2.8.0-6.el7.x86_64 libguestfs-winsupport-7.2-2.el7.x86_64 virtio-win-1.9.0-3.el7.noarch
(In reply to mxie from comment #11) > This bug could be reproduced when convert win7 and win2008r2 guest from kvm > to glance by virt-v2v > > Related packages: > virt-v2v-1.36.2-1.el7.x86_64 > libguestfs-1.36.2-1.el7.x86_64 > libvirt-3.1.0-2.el7.x86_64 > qemu-kvm-rhev-2.8.0-6.el7.x86_64 > libguestfs-winsupport-7.2-2.el7.x86_64 > virtio-win-1.9.0-3.el7.noarch Can you please provide the virt-v2v log with -v -x?
Created attachment 1265681 [details] virt-v2v-win7-glance.log
We didn't attempt to fix this in RHEL 7.4, but thanks for retesting it. I'm going to move this to 7.5 as the display is still usable (though not optimal) after conversion.
We are closing this now as there is known workaround and also this is happening on unsupported windows versions.