Bug 1753083

Summary: Set qxl as default video mode for SUSE guest after converting to libvirt by v2v
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: mxie <mxie>
Component: libguestfsAssignee: Pino Toscano <ptoscano>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 8.1CC: juzhou, knoel, mtessun, mzhan, ptoscano, rjones, tzheng, xiaodwan, zili
Target Milestone: rcFlags: knoel: mirror+
Target Release: 8.1   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: V2V
Fixed In Version: libguestfs-1.40.2-15.module+el8.1.1+4955+f0b25565 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1753085 (view as bug list) Environment:
Last Closed: 2020-02-04 18:28:48 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:
Attachments:
Description Flags
suse-guest-to-libvirt.log none

Description mxie@redhat.com 2019-09-18 03:54:40 UTC
Created attachment 1616068 [details]
suse-guest-to-libvirt.log

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 1 Richard W.M. Jones 2019-09-18 09:54:18 UTC
Really trivial upstream patch:
https://github.com/libguestfs/libguestfs/commit/612f170e6062f2ff74643b6096b7e0765b52cfbd

Comment 3 liuzi 2019-11-29 08:34:05 UTC
Verify bug with builds:
virt-v2v-1.40.2-15.module+el8.1.1+4955+f0b25565.x86_64
libguestfs-1.40.2-15.module+el8.1.1+4955+f0b25565.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 -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
[   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 -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
[   1.7] Creating an overlay to protect the source from being modified
[   5.1] Opening the overlay
[  12.0] Inspecting the overlay
[  33.7] Checking for sufficient free disk space in the guest
[  33.7] Estimating space required on target for each disk
[  33.7] Converting openSUSE Leap 15.0 to run on KVM
virt-v2v: warning: guest tools directory ‘linux/lp151’ is missing from 
the virtio-win directory or ISO.

Guest tools are only provided in the RHV Guest Tools ISO, so this can 
happen if you are using the version of virtio-win which contains just the 
virtio drivers.  In this case only virtio drivers can be installed in the 
guest, and installation of Guest Tools will be skipped.
virt-v2v: This guest has virtio drivers installed.
[  98.6] Mapping filesystem data to avoid copying unused and blank areas
[  99.6] Closing the overlay
[  99.6] Assigning disks to buses
[  99.6] Checking if the guest needs BIOS or UEFI to boot
[  99.6] Initializing the target -o libvirt -os default
[  99.7] Copying disk 1/1 to /var/lib/libvirt/images/esx6.7-opensuse15-x86_64-sda (raw)
    (100.00/100%)
[ 314.6] Creating output metadata
Pool default refreshed

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

[ 314.9] Finishing off

2.Check the the guest's video mode
#  virsh dumpxml esx6.7-opensuse15-x86_64 |grep video -A2
    <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>

Result:virt-v2v sets qxl as default video mode for SUSE guest after converting to libvirt.so change the bug from ON_QA to VERIFIED.

Comment 5 errata-xmlrpc 2020-02-04 18:28:48 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:0404