Bug 1314739

Summary: The X server of Xen rhel5.11 can't start successfully after converted by virt-p2v
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: Xiaodai Wang <xiaodwan>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.1CC: jsuchane, juzhou, mxie, mzhan, ptoscano, tzheng
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: P2V
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-23 09:39:33 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:
Bug Depends On:    
Bug Blocks: 1473046    
Attachments:
Description Flags
virt-p2v log
none
/etc/X11/xorg.conf file none

Description Xiaodai Wang 2016-03-04 11:39:17 UTC
Description of problem:
The X server of Xen rhel5.11 can't start successfully after converted by virt-p2v

Version-Release number of selected component (if applicable):
# rpm -q libguestfs virt-v2v virt-p2v
libguestfs-1.32.3-1.el7.x86_64
virt-v2v-1.32.3-1.el7.x86_64
virt-p2v-1.28.1-1.51.4.el7.iso

How reproducible:
100%

Steps to Reproduce:
1. Prepare a Xen rhel5.11 VM as xen server and make sure it has two disks.
2. Install a new vm into disk 2 on the above xen server.

Actually i use the xen vm which created when verifing bug 1283588.

3. Attach virt-p2v iso to the xen vm and boot it by cdrom.
4. Use virt-p2v to convert the xen host to libvirt
5. Start the vm.

Actual results:
The x server can't startup sucessfully. I checked the xml of the generated guest, the video type is *qxl*, but driver is "cirrus" in /etc/X11/xorg.conf in the guest.

<graphics type='vnc' port='-1' autoport='yes'/>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>

Expected results:
The driver should be qxl in /etc/X11/xorg.conf and x server should startup sucessfully.


Additional info:
I replaced disk 2 with a blank disk, or with another image has os installed, or remove disk 2. And can't reproduce it.

Comment 1 Xiaodai Wang 2016-03-04 11:42:34 UTC
Created attachment 1133148 [details]
virt-p2v log

Comment 3 Richard W.M. Jones 2016-03-04 12:42:32 UTC
Some observations:

The guest has xorg-x11-drv-qxl installed.  That doesn't matter because
QXL can fall back to emulating VESA VGA.

/files/etc/X11/xorg.conf/Device/Driver exists.

virt-v2v modifies /files/etc/X11/xorg.conf/Device/Driver with no error.

I'll have to try reproducing this one.

Comment 4 Xiaodai Wang 2016-03-07 03:18:27 UTC
Created attachment 1133602 [details]
/etc/X11/xorg.conf file

Comment 5 Richard W.M. Jones 2017-03-28 14:28:22 UTC
Out of development time for RHEL 7.4.  Moving to RHEL 7.5.

Comment 6 Jaroslav Suchanek 2019-12-04 15:30:37 UTC
This bug will be addressed in next major release.

Comment 7 Jaroslav Suchanek 2020-01-23 09:39:33 UTC
Lets close it for now. Please reopen if there is customer case. Thanks.