Loading...
Loading...
Description of problem: Hide warnings about btrfsvol:....failed when virt-v2v converts sles guests with RAID btrfs FS or encrypted btrfs FS from VMware Version-Release number of selected component (if applicable): virt-v2v-2.7.16-2.el10.x86_64 libguestfs-1.55.13-2.el10.x86_64 guestfs-tools-1.54.0-1.el10.x86_64 libguestfs-fssupport-10.0-1.el10.x86_64 kernel-6.12.0-84.el10.x86_64 nbdkit-1.42.2-4.el10.x86_64 libnbd-1.22.2-1.el10.x86_64 libvirt-libs-11.3.0-1.el10.x86_64 qemu-img-10.0.0-4.el10.x86_64 How reproducible: 100% Steps: Scenario 1: 1.1 Prepare a SLES15SP6 guest which is instaled on RAID with btrfs FS on VMware env # cat /etc/fstab UUID=391a48d7-ccbb-4c6c-bbcc-db6a7d321533 / btrfs defaults 0 0 UUID=391a48d7-ccbb-4c6c-bbcc-db6a7d321533 /var btrfs subvol=/@/var 0 0 UUID=391a48d7-ccbb-4c6c-bbcc-db6a7d321533 /usr/local btrfs subvol=/@/usr/local 0 0 UUID=391a48d7-ccbb-4c6c-bbcc-db6a7d321533 /tmp btrfs subvol=/@/tmp 0 0 UUID=391a48d7-ccbb-4c6c-bbcc-db6a7d321533 /srv btrfs subvol=/@/srv 0 0 UUID=391a48d7-ccbb-4c6c-bbcc-db6a7d321533 /root btrfs subvol=/@/root 0 0 UUID=391a48d7-ccbb-4c6c-bbcc-db6a7d321533 /opt btrfs subvol=/@/opt 0 0 UUID=391a48d7-ccbb-4c6c-bbcc-db6a7d321533 /home btrfs subvol=/@/home 0 0 UUID=391a48d7-ccbb-4c6c-bbcc-db6a7d321533 /boot/grub2/x86_64-efi btrfs subvol=/@/boot/grub2/x86_64-efi 0 0 UUID=391a48d7-ccbb-4c6c-bbcc-db6a7d321533 /boot/grub2/i386-pc btrfs subvol=/@/boot/grub2/i386-pc 0 0 UUID=ad4c9ee3-45d6-4946-8b2e-8b0421e76100 swap swap defaults 0 0 UUID=391a48d7-ccbb-4c6c-bbcc-db6a7d321533 /.snapshots btrfs subvol=/@/.snapshots 0 0 UUID=EFA5-8582 /boot/efi vfat utf8 0 2 # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sr0 11:0 1 1024M 0 rom sda 254:0 0 16G 0 disk └─md0 9:0 0 32G 0 raid5 ├─md0p1 259:0 0 21.7G 0 part /root │ /usr/local │ /var │ /boot/grub2/x86_64-efi │ /tmp │ /srv │ /home │ /opt │ /boot/grub2/i386-pc │ /.snapshots │ / └─md0p2 259:1 0 10G 0 part [SWAP] sdb 254:16 0 16G 0 disk └─md0 9:0 0 32G 0 raid5 ├─md0p1 259:0 0 21.7G 0 part /root │ /usr/local │ /var │ /boot/grub2/x86_64-efi │ /tmp │ /srv │ /home │ /opt │ /boot/grub2/i386-pc │ /.snapshots │ / └─md0p2 259:1 0 10G 0 part [SWAP] sdc 254:32 0 16G 0 disk └─md0 9:0 0 32G 0 raid5 ├─md0p1 259:0 0 21.7G 0 part /root │ /usr/local │ /var │ /boot/grub2/x86_64-efi │ /tmp │ /srv │ /home │ /opt │ /boot/grub2/i386-pc │ /.snapshots │ / └─md0p2 259:1 0 10G 0 part [SWAP] sdd 254:48 0 16G 0 disk └─sdd1 254:49 0 16G 0 part /boot/efi 1.2 Convert the guest from VMware by virt-v2v, there are many virt-v2v warning about btrfsvol:....failed during conversion # virt-v2v -ic vpx://non-admin%40vsphere.local@10.73.212.129/data/10.73.212.36/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk8.0.3 -io vddk-thumbprint=CB:9F:B1:9D:33:49:6C:60:AD:3C:A5:16:77:91:5F:CD:1B:24:B1:43 -ip /home/passwd esx8.0-sles15sp6-x86_64-efi-with-raid-btrfs [ 0.0] Setting up the source: -i libvirt -ic vpx://non-admin%40vsphere.local@10.73.212.129/data/10.73.212.36/?no_verify=1 -it vddk esx8.0-sles15sp6-x86_64-efi-with-raid-btrfs [ 4.9] Opening the source [ 20.4] Checking filesystem integrity before conversion [ 240.3] Detecting if this guest uses BIOS or UEFI to boot [ 240.9] Inspecting the source [ 246.7] Checking for sufficient free disk space in the guest [ 246.7] Converting SUSE Linux Enterprise Desktop 15 SP6 (sles15sp6) to run on KVM virt-v2v: warning: could not determine a way to update the configuration of Grub2 virt-v2v: The QEMU Guest Agent will be installed for this guest at first boot. virt-v2v: This guest has virtio drivers installed. [ 272.1] Setting a random seed [ 272.1] SELinux relabelling [ 272.8] Mapping filesystem data to avoid copying unused and blank areas virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/md0p1/@/.snapshots/2/snapshot failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/md0p1/@/.snapshots failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/md0p1/@/boot/grub2/i386-pc failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/md0p1/@/boot/grub2/x86_64-efi failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/md0p1/@/home failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/md0p1/@/opt failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/md0p1/@/root failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/md0p1/@/srv failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/md0p1/@/tmp failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/md0p1/@/usr/local failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/md0p1/@/var failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/md0p1/@ failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem /dev/md0p1 failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported [ 275.1] Checking filesystem integrity after conversion [ 278.6] Closing the overlay [ 278.9] Assigning disks to buses [ 278.9] Checking if the guest needs BIOS or UEFI to boot virt-v2v: This guest requires UEFI on the target to boot. [ 278.9] Setting up the destination: -o libvirt [ 281.9] Copying disk 1/4 █ 100% [****************************************] [ 707.2] Copying disk 2/4 █ 100% [****************************************] [1159.4] Copying disk 3/4 █ 100% [****************************************] [1657.5] Copying disk 4/4 █ 100% [****************************************] [1658.7] Creating output metadata [1658.8] Finishing off Scenario 2 2.1 Prepare a sles12sp5 guest with encrypted brtfs fliesystem on VMware # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 16G 0 disk ├─sda1 8:1 0 399M 0 part /boot └─sda2 8:2 0 15.6G 0 part └─cr_sda2 254:0 0 15.6G 0 crypt ├─system-root 254:1 0 14.2G 0 lvm / └─system-swap 254:2 0 1.4G 0 lvm [SWAP] sr0 11:0 1 3.8G 0 rom /run/media/root/SLE-12-SP5-Server-DVD-x86_640372 # cat /etc/fstab /dev/system/swap swap swap defaults 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 / btrfs defaults 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /home btrfs subvol=@/home 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /opt btrfs subvol=@/opt 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /srv btrfs subvol=@/srv 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /tmp btrfs subvol=@/tmp 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /usr/local btrfs subvol=@/usr/local 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /var/cache btrfs subvol=@/var/cache 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /var/crash btrfs subvol=@/var/crash 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /var/lib/libvirt/images btrfs subvol=@/var/lib/libvirt/images 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /var/lib/machines btrfs subvol=@/var/lib/machines 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /var/lib/mailman btrfs subvol=@/var/lib/mailman 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /var/lib/mariadb btrfs subvol=@/var/lib/mariadb 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /var/lib/mysql btrfs subvol=@/var/lib/mysql 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /var/lib/named btrfs subvol=@/var/lib/named 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /var/lib/pgsql btrfs subvol=@/var/lib/pgsql 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /var/log btrfs subvol=@/var/log 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /var/opt btrfs subvol=@/var/opt 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /var/spool btrfs subvol=@/var/spool 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /var/tmp btrfs subvol=@/var/tmp 0 0 UUID=c2d664ae-cd57-427c-a434-13e00a8106d9 /.snapshots btrfs subvol=@/.snapshots 0 0 UUID=f4c500db-2386-4084-a896-b38c08126a4c /boot ext4 acl,user_xattr 1 2 2.2 Convert the guest from VMware to local libvirt by virt-v2v, there are many virt-v2v warning about btrfsvol:....failed during conversion # virt-v2v -ic vpx://non-admin%40vsphere.local@10.73.212.129/data/10.73.212.36/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk8.0.3 -io vddk-thumbprint=CB:9F:B1:9D:33:49:6C:60:AD:3C:A5:16:77:91:5F:CD:1B:24:B1:43 -ip /home/passwd esx8.0-sles12sp5-x86_64-with-encrypted-btrfs --key all:key:redhat123 -o null [ 0.0] Setting up the source: -i libvirt -ic vpx://non-admin%40vsphere.local@10.73.212.129/data/10.73.212.36/?no_verify=1 -it vddk esx8.0-sles12sp5-x86_64-with-encrypted-btrfs [ 1.7] Opening the source [ 19.5] Checking filesystem integrity before conversion [ 123.4] Detecting if this guest uses BIOS or UEFI to boot [ 123.6] Inspecting the source [ 134.9] Checking for sufficient free disk space in the guest [ 134.9] Converting SUSE Linux Enterprise Server 12 SP5 (sles12sp5) to run on KVM virt-v2v: warning: ignoring kernel /vmlinuz-4.12.14-120-default in bootloader, as it does not exist. virt-v2v: The QEMU Guest Agent will be installed for this guest at first boot. virt-v2v: This guest has virtio drivers installed. [ 185.8] Setting a random seed [ 185.8] SELinux relabelling [ 186.2] Mapping filesystem data to avoid copying unused and blank areas virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/.snapshots/3/snapshot failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/.snapshots/2/snapshot failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/var/tmp failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/var/spool failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/var/opt failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/var/log failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/var/lib/pgsql failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/var/lib/named failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/var/lib/mysql failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/var/lib/mariadb failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/var/lib/mailman failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/var/lib/machines failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/var/lib/libvirt/images failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/var/crash failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/var/cache failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/usr/local failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/tmp failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/srv failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/opt failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/home failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@/.snapshots failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem btrfsvol:/dev/system/root/@ failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported virt-v2v: warning: fstrim on guest filesystem /dev/system/root failed. Usually you can ignore this message. To find out more read "Trimming" in virt-v2v(1). Original message: fstrim: fstrim: /sysroot/: the discard operation is not supported [ 188.7] Checking filesystem integrity after conversion [ 193.6] Closing the overlay [ 193.9] Assigning disks to buses [ 193.9] Checking if the guest needs BIOS or UEFI to boot [ 193.9] Setting up the destination: -o null [ 194.9] Copying disk 1/1 █ 100% [****************************************] [ 504.8] Creating output metadata [ 504.8] Finishing off Actual result: As above description Expect result: Fix the bug Additional info There is no warning about btrfsvol:....failed when virt-v2v converts sles guests with btrfs FS # virt-v2v -ic vpx://non-admin%40vsphere.local@10.73.212.129/data/10.73.212.36/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk8.0.3 -io vddk-thumbprint=CB:9F:B1:9D:33:49:6C:60:AD:3C:A5:16:77:91:5F:CD:1B:24:B1:43 -ip /home/passwd esx8.0-sles15sp6-x86_64-efi-with-btrfs -o null [ 0.0] Setting up the source: -i libvirt -ic vpx://non-admin%40vsphere.local@10.73.212.129/data/10.73.212.36/?no_verify=1 -it vddk esx8.0-sles15sp6-x86_64-efi-with-btrfs [ 1.7] Opening the source [ 16.8] Checking filesystem integrity before conversion [ 105.3] Detecting if this guest uses BIOS or UEFI to boot [ 105.9] Inspecting the source [ 111.2] Checking for sufficient free disk space in the guest [ 111.2] Converting SUSE Linux Enterprise Server 15 SP6 (sles15sp6) to run on KVM virt-v2v: warning: could not determine a way to update the configuration of Grub2 virt-v2v: The QEMU Guest Agent will be installed for this guest at first boot. virt-v2v: This guest has virtio drivers installed. [ 136.9] Setting a random seed [ 136.9] SELinux relabelling [ 137.3] Mapping filesystem data to avoid copying unused and blank areas [ 146.1] Checking filesystem integrity after conversion [ 148.2] Closing the overlay [ 148.6] Assigning disks to buses [ 148.6] Checking if the guest needs BIOS or UEFI to boot virt-v2v: This guest requires UEFI on the target to boot. [ 148.6] Setting up the destination: -o null [ 149.6] Copying disk 1/1 █ 100% [****************************************] [ 183.9] Creating output metadata [ 183.9] Finishing off
Won't Do
Click on a version to see all relevant bugs
Red Hat Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.