Bug 1703400
| Summary: | RFE: virt-v2v should do something with <interface type='direct'> (either virtualize it or give an error) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Pino Toscano <ptoscano> |
| Component: | libguestfs | Assignee: | Libvirt Maintainers <libvirt-maint> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.0 | CC: | dyuan, juzhou, knoel, mbooth, mtessun, mxie, mzhan, ptoscano, rjones, tzheng, virt-bugs, zili |
| Target Milestone: | rc | Keywords: | FutureFeature |
| Target Release: | --- | Flags: | knoel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | V2V | ||
| Fixed In Version: | libguestfs-1.40.2-4.module+el8.0.1+3188+cd3de524 | Doc Type: | Enhancement |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1151902 | Environment: | |
| Last Closed: | 2019-08-07 10:41:34 UTC | Type: | Feature Request |
| 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: | 1151902 | ||
| Bug Blocks: | |||
|
Description
Pino Toscano
2019-04-26 10:44:55 UTC
Verify bug with builds:
virt-v2v-1.40.2-4.module+el8+3201+fd6ac632.x86_64
libvirt-5.0.0-7.module+el8+3023+072e7fc8.x86_64
libguestfs-1.40.2-4.module+el8+3201+fd6ac632.x86_64
qemu-kvm-3.1.0-25.module+el8+3153+f1590ef7.x86_64
Steps:
1.Prepare a guest with interface type direct.
# virsh dumpxml rhel7.6
<...>
<interface type='direct'>
<mac address='52:54:00:e4:71:43'/>
<source dev='eno1' mode='bridge'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
</interface>
2.Use virt-v2v to convert the guest to rhev.
# virt-v2v rhel7.6 -o rhv-upload -oc https://ibm-x3250m5-03.rhts.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data -op /tmp/rhvpasswd -oo rhv-cafile=/home/ca.pem -oo rhv-direct=true -oo rhv-cluster=nfs -of raw
[ 0.3] Opening the source -i libvirt rhel7.6
virt-v2v: warning: this guest has a direct network interface which will be
ignored
[ 0.3] Creating an overlay to protect the source from being modified
[ 0.4] Opening the overlay
[ 5.8] Inspecting the overlay
[ 24.8] Checking for sufficient free disk space in the guest
[ 24.8] Estimating space required on target for each disk
[ 24.8] Converting Red Hat Enterprise Linux Server 7.6 (Maipo) to run on KVM
virt-v2v: warning: guest tools directory ‘linux/el7’ 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.
[ 145.8] Mapping filesystem data to avoid copying unused and blank areas
[ 146.4] Closing the overlay
[ 146.6] Assigning disks to buses
[ 146.6] Checking if the guest needs BIOS or UEFI to boot
[ 146.6] Initializing the target -o rhv-upload -oc https://ibm-x3250m5-03.rhts.eng.pek2.redhat.com/ovirt-engine/api -op /tmp/rhvpasswd -os nfs_data
[ 148.0] Copying disk 1/1 to qemu URI json:{ "file.driver": "nbd", "file.path": "/var/tmp/rhvupload.MSHvcf/nbdkit0.sock", "file.export": "/" } (raw)
(100.00/100%)
[ 771.0] Creating output metadata
virt-v2v: warning: oVirt cannot emulate ‘ich9’ sound cards. This sound
card will be dropped from the output.
[ 789.8] Finishing off
3.The conversion can be finished successfully and boot the guest in rhv.
3.1 From rhev GUI network interface shows nothing.
3.2 The guest can pass all regular checkpoints.
Result:Virt-v2v will give a warning info when convert a guest with interface type direct,so change the bug from 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-2019:2395 |