Bug 1365831

Summary: virt-v2v add <graphics type='sdl'/> to guest while do conversion with '-i disk'
Product: Red Hat Enterprise Linux 7 Reporter: zhoujunqin <juzhou>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: mxie, mzhan, ptoscano, tzheng, xiaodwan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: V2V
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-20 10:52:57 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
6test1-debug.log with '-v -x' none

Description zhoujunqin 2016-08-10 10:15:29 UTC
Created attachment 1189547 [details]
6test1-debug.log with '-v -x'

Description of problem:
virt-v2v add <graphics type='sdl'/> to guest while do conversion with '-i disk', due to guest boot up failed.

Version-Release number of selected component (if applicable):
libvirt-2.0.0-4.el7.x86_64
libguestfs-1.32.7-1.el7.x86_64
virt-v2v-1.32.7-1.el7.x86_64
qemu-kvm-rhev-2.6.0-19.el7.x86_64


How reproducible:
100%

Steps to Reproduce:

1.Convert guest from disk image with option '-i disk'.

# virt-v2v -i disk 6test1.img -os opt
[   0.0] Opening the source -i disk 6test1.img
[   0.3] Creating an overlay to protect the source from being modified
[   0.4] Initializing the target -o libvirt -os opt
[   0.4] Opening the overlay
[   5.7] Inspecting the overlay
[  16.0] Checking for sufficient free disk space in the guest
[  16.0] Estimating space required on target for each disk
[  16.0] Converting Red Hat Enterprise Linux Server release 6.8 (Santiago) to run on KVM
virt-v2v: warning: /files/boot/grub/device.map/hd0 references unknown 
device "vda".  You may have to fix this entry manually after conversion.
virt-v2v: warning: /files/etc/sysconfig/grub/boot references unknown device 
"vda".  You may have to fix this entry manually after conversion.
virt-v2v: This guest has virtio drivers installed.
[  65.4] Mapping filesystem data to avoid copying unused and blank areas
[  65.5] Closing the overlay
[  65.5] Checking if the guest needs BIOS or UEFI to boot
[  65.5] Assigning disks to buses
[  65.5] Copying disk 1/1 to /opt/6test1-sda (raw)
    (100.00/100%)
[ 133.7] Creating output metadata
Pool opt refreshed

Domain 6test1 defined from /tmp/v2vlibvirt387543.xml

2.After conversion, boot up guest '6test1'

Actual results:
1. After step2, failed to boot up guest.
# virsh start 6test1
error: Failed to start domain 6test1
error: internal error: process exited while connecting to monitor: qemu-kvm: -sdl: SDL support is disabled

2. Check guest's xml find  <graphics type='sdl'/> is added.


Expected results:
While do conversion, should not add sdl graphics to guest.

Additional info:

Comment 2 Pino Toscano 2016-09-20 10:52:57 UTC
This is basically what is reported as bug 1372671 -- marking this as duplicate, even if reported before, as bug 1372671 has more discussion.

*** This bug has been marked as a duplicate of bug 1372671 ***