Bug 1811054

Summary: Cannot pass block device as virtio-win ISO path [rhel-7.7.z]
Product: Red Hat Enterprise Linux 7 Reporter: RAD team bot copy to z-stream <autobot-eus-copy>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: liuzi <zili>
Severity: high Docs Contact:
Priority: high    
Version: 7.6CC: knoel, mtessun, mxie, mzhan, ptoscano, rjones, tgolembi, tyan, tzheng, xiaodwan, zili
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: V2V
Fixed In Version: libguestfs-1.40.2-5.el7_7.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1727164 Environment:
Last Closed: 2020-04-30 17:17:02 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:
Bug Depends On: 1727164    
Bug Blocks:    

Description RAD team bot copy to z-stream 2020-03-06 14:17:20 UTC
This bug has been copied from bug #1727164 and has been proposed to be backported to 7.7 z-stream (EUS).

Comment 4 liuzi 2020-03-11 04:23:45 UTC
Verify bug with builds:
virt-v2v-1.40.2-5.el7_7.4.x86_64
libguestfs-1.40.2-5.el7_7.4.x86_64
virtio-win-1.9.8-6.el7.noarch

Steps:
1.Prepare a rhel7 conversion server,and create a block device as virtio-win ISO path.
#losetup /dev/loop0 /usr/share/virtio-win/virtio-win.iso

# ll /dev/loop0
brw-rw----. 1 root disk 7, 0 Mar 11 09:45 /dev/loop0

# blockdev --getsize64  /dev/loop0
325976064

# export VIRTIO_WIN=/dev/loop0

2.Use virt-v2v to convert a windows guest and check whether install virtio-drivers during the conversion.
#  virt-v2v -i libvirt -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-win2012r2-x86_64  --password-file /home/passwd -o rhv  -os 10.66.144.40:/home/nfs_export
[   0.0] Opening the source -i libvirt -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-win2012r2-x86_64
[   1.7] Creating an overlay to protect the source from being modified
[   2.6] Opening the overlay
[  17.2] Inspecting the overlay
[ 115.4] Checking for sufficient free disk space in the guest
[ 115.4] Estimating space required on target for each disk
[ 115.4] Converting Windows Server 2012 R2 Standard to run on KVM
virt-v2v: warning: /usr/share/virt-tools/pnp_wait.exe is missing.  
Firstboot scripts may conflict with PnP.
virt-v2v: warning: there is no QXL driver for this version of Windows (6.3 
x86_64).  virt-v2v looks for this driver in /dev/loop0

The guest will be configured to use a basic VGA display driver.
virt-v2v: This guest has virtio drivers installed.
[ 139.9] Mapping filesystem data to avoid copying unused and blank areas
[ 140.6] Closing the overlay
[ 140.7] Assigning disks to buses
[ 140.7] Checking if the guest needs BIOS or UEFI to boot
[ 140.7] Initializing the target -o rhv -os 10.66.144.40:/home/nfs_export
[ 141.0] Copying disk 1/1 to /tmp/v2v.eJvqXw/5792ab14-7746-4340-a27d-845dc12b8db9/images/c58f2c67-63ba-410c-acf4-a9349e3478f5/99f57e07-e8b0-42ba-972d-a6e3f161f97e (raw)
    (100.00/100%)
[ 773.1] Creating output metadata
[ 773.2] Finishing off

3.Conversion can be finished successfully and vir-v2v can install virtio drivers to guest.

Result:virt-v2v can find virtio-driver from block device and install to windows guests during conversion.So change bug form ON_QA to VERIFIED.

Comment 6 errata-xmlrpc 2020-04-30 17:17:02 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:1986