Bug 1727164
Summary: | Cannot pass block device as virtio-win ISO path | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Tomáš Golembiovský <tgolembi> | |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 7.6 | CC: | knoel, mtessun, mxie, mzhan, ptoscano, tzheng, xiaodwan, zili | |
Target Milestone: | rc | Keywords: | ZStream | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | V2V | |||
Fixed In Version: | libguestfs-1.40.2-6.el7 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1741166 1811054 (view as bug list) | Environment: | ||
Last Closed: | 2020-03-31 19:55:04 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: | 1741166, 1811054 |
Description
Tomáš Golembiovský
2019-07-04 19:36:46 UTC
Upstream commit c22a8b68fe5729d3a8907b41eef287cd9f3a55c0. Let's see if we can get this as first z-stream (7.7.1). I've set the flag to 7.8 with the hope we can get a z-stream for this to get it into an early 7.7.x. Reproduce the bug with builds: virt-v2v-1.40.2-5.el7.x86_64 libguestfs-1.40.2-5.el7.x86_64 virtio-win-1.9.6-1.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 Aug 15 15:17 /dev/loop0 # blockdev --getsize64 /dev/loop0 294205440 # 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 -ic vpx://root.75.182/data/10.73.3.19/?no_verify=1 esx5.5-win2012-x86_64 -o null --password-file /home/passwd [ 0.0] Opening the source -i libvirt -ic vpx://root.75.182/data/10.73.3.19/?no_verify=1 esx5.5-win2012-x86_64 [ 2.0] Creating an overlay to protect the source from being modified [ 2.4] Opening the overlay [ 14.5] Inspecting the overlay [ 90.3] Checking for sufficient free disk space in the guest [ 90.3] Estimating space required on target for each disk [ 90.3] Converting Windows Server 2012 Datacenter 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 are no virtio drivers available for this version of Windows (6.2 x86_64 Server). virt-v2v looks for drivers in /dev/loop0 The guest will be configured to use slower emulated devices. virt-v2v: This guest does not have virtio drivers installed. [ 94.2] Mapping filesystem data to avoid copying unused and blank areas [ 95.0] Closing the overlay [ 95.1] Assigning disks to buses [ 95.1] Checking if the guest needs BIOS or UEFI to boot [ 95.1] Initializing the target -o null [ 95.1] Copying disk 1/1 to /var/tmp/null.ml6KTx/sda (raw) ^C (6.02/100%) Result:virt-v2v cannot find virtio drivers from /dev/loop0. Verify bug with builds: virt-v2v-1.40.2-6.el7.x86_64 libguestfs-1.40.2-6.el7.x86_64 virtio-win-1.9.8-6.el7.noarch 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 Aug 15 03:07 /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 -ic vpx://root.75.182/data/10.73.3.19/?no_verify=1 esx5.5-win2012-x86_64 -o null --password-file /home/passwd [ 0.0] Opening the source -i libvirt -ic vpx://root.75.182/data/10.73.3.19/?no_verify=1 esx5.5-win2012-x86_64 [ 1.9] Creating an overlay to protect the source from being modified [ 2.9] Opening the overlay [ 19.4] Inspecting the overlay [ 90.2] Checking for sufficient free disk space in the guest [ 90.2] Estimating space required on target for each disk [ 90.2] Converting Windows Server 2012 Datacenter 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.2 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. [ 119.3] Mapping filesystem data to avoid copying unused and blank areas [ 120.3] Closing the overlay [ 120.6] Assigning disks to buses [ 120.6] Checking if the guest needs BIOS or UEFI to boot [ 120.6] Initializing the target -o null [ 120.7] Copying disk 1/1 to /var/tmp/null.qlUue8/sda (raw) ^C (1.00/100%) 3.Check the conversion log find info about virtio-win driver # grep copy_from_virtio_win /log windows: copy_from_virtio_win: guest tools source ISO /dev/loop0 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. 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 |