Bug 1753085

Summary: Set qxl as default video mode for SUSE guest after converting to libvirt by v2v
Product: Red Hat Enterprise Linux 7 Reporter: mxie <mxie>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 7.8CC: juzhou, libvirt-maint, mzhan, ptoscano, rjones, tzheng, virt-bugs, xiaodwan, zili
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: V2V
Fixed In Version: libguestfs-1.40.2-8.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1753083 Environment:
Last Closed: 2020-03-31 19:55:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mxie@redhat.com 2019-09-18 03:57:55 UTC
Have same problem on rhel7;
virt-v2v-1.40.2-7.el7.x86_64
libguestfs-1.40.2-7.el7.x86_64

+++ This bug was initially created as a clone of Bug #1753083 +++

Description of problem:
Set qxl as default video mode for SUSE guest after converting to libvirt by v2v

Version-Release number of selected component (if applicable):
virt-v2v-1.40.2-14.module+el8.1.0+4230+0b6e3259.x86_64
libguestfs-1.40.2-14.module+el8.1.0+4230+0b6e3259.x86_64


How reproducible:
100%

Steps to Reproduce:
1.Convert a SUSE guest from VMware to libvirt by virt-v2v
# virt-v2v -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 -it vddk -io vddk-libdir=/home/vmware-vix-disklib-distrib -io  vddk-thumbprint=1F:97:34:5F:B6:C2:BA:66:46:CB:1A:71:76:7D:6B:50:1E:03:00:EA  esx6.7-opensuse15-x86_64  --password-file /tmp/passwd  -v -x |& tee > suse-guest-to-libvirt.log


2.Check the guest's video mode is cirrus which has deprecated in both RHV and virt-manager now
# virsh dumpxml esx6.7-opensuse15-x86_64 |grep video -A 1
    <video>
      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
--
    </video>
    <memballoon model='virtio'>

Actual results:
Setting cirrus as default video mode for SUSE guest after converting to libvirt is inappropriate

Expected results:
As description

Additional info:
Although sles11sp4 guest will has graphic problem with qxl but sles11 has ended general support in 31 Mar 2019,pls refer to https://www.suse.com/lifecycle/

Comment 2 Richard W.M. Jones 2019-09-18 09:54:29 UTC
Really trivial upstream patch:
https://github.com/libguestfs/libguestfs/commit/612f170e6062f2ff74643b6096b7e0765b52cfbd

Comment 4 liuzi 2019-10-11 02:44:02 UTC
Verify bug with builds:
virt-v2v-1.40.2-8.el7.x86_64
libguestfs-1.40.2-8.el7.x86_64

Steps:
1.Convert a SUSE guest from VMware to libvirt by virt-v2v
#  virt-v2v -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-opensuse15-x86_64  --password-file /home/passwd
[   0.0] Opening the source -i libvirt -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-opensuse15-x86_64
[   2.3] Creating an overlay to protect the source from being modified
[   3.5] Opening the overlay
[  18.8] Inspecting the overlay
[ 209.6] Checking for sufficient free disk space in the guest
[ 209.6] Estimating space required on target for each disk
[ 209.6] Converting openSUSE Leap 15.0 to run on KVM
virt-v2v: This guest has virtio drivers installed.
[1240.3] Mapping filesystem data to avoid copying unused and blank areas
[1244.4] Closing the overlay
[1244.6] Assigning disks to buses
[1244.6] Checking if the guest needs BIOS or UEFI to boot
[1244.6] Initializing the target -o libvirt -os default
[1244.7] Copying disk 1/1 to /var/lib/libvirt/images/esx6.7-opensuse15-x86_64-sda (raw)
    (100.00/100%)
[1711.3] Creating output metadata
Pool default refreshed

Domain esx6.7-opensuse15-x86_64 defined from /tmp/v2vlibvirt7522f3.xml

[1711.6] Finishing off

2.Check the guest's video mode
# virsh dumpxml  esx6.7-opensuse15-x86_64   |grep video -A4
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
    <rng model='virtio'>

Result:
Setting QXL as default video mode for SUSE guest after converting to libvirt,so change the bug from ON_QA to VERIFIED.

Comment 6 errata-xmlrpc 2020-03-31 19:55:04 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://access.redhat.com/errata/RHBA-2020:1082