Bug 1930133
Summary: | Virt-v2v can't convert rhel8 guest whose usr partition is independent | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | mxie <mxie> | ||||
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
Status: | CLOSED ERRATA | QA Contact: | YongkuiGuo <yoguo> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 8.4 | CC: | audgiri, chhu, ddepaula, jsuchane, juzhou, mzhan, nashok, rjones, tyan, tzheng, virt-maint, xiaodwan, yoguo | ||||
Target Milestone: | rc | Keywords: | Triaged | ||||
Target Release: | 8.5 | ||||||
Hardware: | x86_64 | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | libguestfs-1.44.0-3.el8 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2021-11-16 07:51:42 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
mxie@redhat.com
2021-02-18 11:53:55 UTC
*** Bug 1949683 has been marked as a duplicate of this bug. *** To test this I had to prepare a VM with a split /usr partition, as follows: $ virt-builder fedora-33 $ virt-tar-out -a fedora-33.img /usr usr.tar $ rm -f fedora-33-split-usr.img $ truncate -s 10G fedora-33-split-usr.img $ virt-resize fedora-33.img fedora-33-split-usr.img Set up the separate /usr inside the new disk image: $ guestfish -a fedora-33-split-usr.img -i ><fs> rm-rf /usr ><fs> mkfs xfs /dev/sda4 ><fs> mkdir /usr ><fs> mount /dev/sda4 /usr ><fs> tar-in usr.tar /usr xattrs:true selinux:true acls:true ><fs> vi /etc/fstab Add the following line at the end of /etc/fstab: /dev/sda4 /usr xfs defaults 0 0 ><fs> exit Verify the split /usr partition configuration is detected: $ guestfish --ro -a fedora-33-split-usr.img -i /dev/sda3 mounted on / /dev/sda2 mounted on /boot /dev/sda4 mounted on /usr <--- note ><fs> exit However if you run virt-inspector on the new image you will see there is no <arch> entry and inspection is incomplete: $ virt-inspector -a fedora-33-split-usr.img --no-applications Also virt-v2v fails. The error message is slightly different, but the root cause is the same thing: $ virt-v2v -i disk fedora-33-split-usr.img -o null virt-v2v: error: inspection could not detect the source guest (or physical machine). ... Inspection field ‘i_distro’ was ‘unknown’. back to modified as it was included in the wrong errata. Verified with package: libguestfs-1.44.0-3.module+el8.5.0+10681+17a9b157.x86_64 Steps: 1. Prepare a VM with a split /usr partition on rhel8.4 host(refer to comment 4) $ guestfish --ro -a fedora-33-split-usr.img -i ... Operating system: Fedora 33 (Thirty Three) /dev/sda3 mounted on / /dev/sda2 mounted on /boot /dev/sda4 mounted on /usr ><fs> exit 2. $ virt-inspector -a fedora-33-split-usr.img --no-applications <?xml version="1.0"?> <operatingsystems> <operatingsystem> <root>/dev/sda3</root> <name>linux</name> <arch>x86_64</arch> <distro>fedora</distro> <product_name>Fedora 33 (Thirty Three)</product_name> <major_version>33</major_version> <minor_version>0</minor_version> <package_format>rpm</package_format> <package_management>yum</package_management> <hostname>localhost.localdomain</hostname> <osinfo>fedora33</osinfo> <mountpoints> <mountpoint dev="/dev/sda3">/</mountpoint> <mountpoint dev="/dev/sda4">/usr</mountpoint> <mountpoint dev="/dev/sda2">/boot</mountpoint> </mountpoints> <filesystems> <filesystem dev="/dev/sda2"> <type>xfs</type> <uuid>b36104d1-1e5c-4057-9617-f3ade113a291</uuid> </filesystem> <filesystem dev="/dev/sda3"> <type>xfs</type> <uuid>f490d97d-4ab4-481e-9fdc-9180c8823ded</uuid> </filesystem> <filesystem dev="/dev/sda4"> <type>xfs</type> <uuid>30794fe7-6125-4dff-be8b-33d11128e387</uuid> </filesystem> </filesystems> </operatingsystem> </operatingsystems> 3. $ virt-v2v -i disk fedora-33-split-usr.img -o null [ 0.0] Opening the source -i disk fedora-33-split-usr.img [ 0.0] Creating an overlay to protect the source from being modified [ 0.1] Opening the overlay [ 8.5] Inspecting the overlay virt-v2v: error: libguestfs error: filesize: /var/lib/rpm/Name: No such file or directory --- It's another expected error, need upstream rebase libguestfs 1.45.3. 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 (virt:av bug fix and enhancement update), 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-2021:4684 |