Bug 1591248
| Summary: | Virt-v2v can't convert ubuntu18.04 LTS guest | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | mxie <mxie> | ||||
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.6 | CC: | juzhou, mzhan, ptoscano, tzheng, xiaodwan | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | V2V | ||||||
| Fixed In Version: | libguestfs-1.38.2-5.el7 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-10-30 07:45:56 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: |
|
||||||
Already fixed upstream with https://github.com/libguestfs/libguestfs/commit/500acb15f8f777e9fe99a60c4216daf84a92aae3 Verify the bug with builds:
virt-v2v-1.38.2-5.el7.x86_64
libguestfs-1.38.2-5.el7.x86_64
libvirt-4.4.0-2.el7.x86_64
qemu-kvm-rhev-2.12.0-4.el7.x86_64
Steps:
1.Prepare ubuntu18.04 LTS guest and convert it to rhv4.2 by virt-v2v
# virt-v2v ubuntu18.04-LTS -o rhv -os 10.66.144.40:/home/nfs_export -of qcow2
[ 0.0] Opening the source -i libvirt ubuntu18.04-LTS
[ 0.0] Creating an overlay to protect the source from being modified
[ 0.7] Initializing the target -o rhv -os 10.66.144.40:/home/nfs_export
[ 1.1] Opening the overlay
[ 34.4] Inspecting the overlay
[ 38.0] Checking for sufficient free disk space in the guest
[ 38.0] Estimating space required on target for each disk
[ 38.0] Converting Ubuntu 18.04 LTS to run on KVM
virt-v2v: warning: could not determine a way to update the configuration of
Grub2
virt-v2v: This guest has virtio drivers installed.
[ 88.9] Mapping filesystem data to avoid copying unused and blank areas
[ 89.5] Closing the overlay
[ 91.1] Checking if the guest needs BIOS or UEFI to boot
[ 91.1] Assigning disks to buses
[ 91.1] Copying disk 1/1 to /tmp/v2v.j0xZmx/ea9cb06f-8bf9-4fc8-a247-478e754d898a/images/08a120eb-4d38-427c-86fe-4b99667d9c47/35ff784b-64a0-4e2b-a9db-196e4bc9a320 (qcow2)
(100.00/100%)
[ 138.3] Creating output metadata
[ 138.4] Finishing off
2.Import guest from export domain to data domain after finishing conversion, power on the guest and checkpoints of guest are passed
3.Convert ubuntu18.04 guest from vmware to libvirt by virt-v2v
# virt-v2v -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-ubuntu18.04LTS-x86_64 --password-file /tmp/passwd
[ 0.0] Opening the source -i libvirt -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-ubuntu18.04LTS-x86_64
[ 2.1] Creating an overlay to protect the source from being modified
[ 3.2] Initializing the target -o libvirt -os default
[ 3.3] Opening the overlay
[ 19.0] Inspecting the overlay
[ 53.9] Checking for sufficient free disk space in the guest
[ 53.9] Estimating space required on target for each disk
[ 53.9] Converting Ubuntu 18.04 LTS to run on KVM
virt-v2v: warning: could not determine a way to update the configuration of
Grub2
virt-v2v: This guest has virtio drivers installed.
[ 764.5] Mapping filesystem data to avoid copying unused and blank areas
[ 765.4] Closing the overlay
[ 766.3] Checking if the guest needs BIOS or UEFI to boot
[ 766.3] Assigning disks to buses
[ 766.3] Copying disk 1/1 to /var/lib/libvirt/images/esx6.7-ubuntu18.04LTS-x86_64-sda (raw)
(100.00/100%)
[1114.1] Creating output metadata
Pool default refreshed
Domain esx6.7-ubuntu18.04LTS-x86_64 defined from /tmp/v2vlibvirtbb7a13.xml
[1114.6] Finishing off
4.Power on the guest, guest can't obtain IP due to bug1451597, but the other checkpoints of guest are passed
Result:
Virt-v2v can convert ubuntu18.04 LTS guest now, so move 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/RHEA-2018:3021 |
Created attachment 1451328 [details] v2v-ubuntu18.04_LTS.log Description of problem: Virt-v2v can't convert ubuntu18.04 LTS guest Version-Release number of selected component (if applicable): virt-v2v-1.38.2-3.el7.x86_64 libguestfs-1.38.2-3.el7.x86_64 libvirt-4.3.0-1.el7.x86_64 qemu-kvm-rhev-2.12.0-3.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.Prepare ubuntu18.04 LTS guest and convert it by virt-v2v to rhv4.2 # virt-v2v ubuntu18.04-LTS -o rhv -os 10.66.144.40:/home/nfs_export [ 0.0] Opening the source -i libvirt ubuntu18.04-LTS [ 0.0] Creating an overlay to protect the source from being modified [ 0.4] Initializing the target -o rhv -os 10.66.144.40:/home/nfs_export [ 0.8] Opening the overlay [ 5.2] Inspecting the overlay [ 8.2] Checking for sufficient free disk space in the guest [ 8.2] Estimating space required on target for each disk [ 8.2] Converting Ubuntu 18.04 LTS to run on KVM virt-v2v: warning: could not determine a way to update the configuration of Grub2 virt-v2v: error: no installed kernel packages were found. This probably indicates that virt-v2v was unable to inspect this guest properly. If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...] Actual results: As above description Expected results: Virt-v2v can convert ubuntu18.04 LTS guest Additional info: