-
Bug
-
Resolution: Done-Errata
-
Undefined
-
rhel-9.4
-
None
-
virt-p2v-1.42.4-1.el9
-
No
-
Moderate
-
rhel-virt-tools
-
ssg_virtualization
-
12
-
14
-
5
-
False
-
False
-
-
Yes
-
None
-
Unspecified Release Note Type - Unknown
-
-
x86_64
-
None
What were you trying to do that didn't work?
When I try to build a virt-p2v iso for converting physical servers to VM's running on RHEL9 KVM host, I get the following error:
# virt-p2v-make-disk --arch x86_64 -o /tmp/p2v.iso virt-p2v-make-disk: cannot find /usr/lib64/virt-p2v/virt-p2v.x86_64.xz You used the '--arch' option, so it’s likely that you will need to build a virt-p2v.x86_64 binary yourself. See p2v-building(1) section BUILDING i686 32 BIT VIRT-P2V for help.
If i create a symlink (virt-p2v.xz exists), i get a bit further:
virt-builder: error: cannot find os-version ‘rhel-9.3’ with architecture ‘x86_64’.
` virt-builder --list` doesn't give me any RHEL* options at all. If I try with fedora-34:
# virt-p2v-make-disk --arch x86_64 -o /tmp/p2v.iso fedora-34 [ 5.3] Downloading: http://archive.libguestfs.org/builder/fedora-34.xz ####################################################################################################################################################################################### 100.0% [ 134.7] Planning how to build this image [ 134.7] Uncompressing [ 139.8] Opening the new disk [ 145.4] Setting a random seed [ 145.4] Setting the hostname: p2v.local [ 145.5] Running: hostname p2v.local [ 145.5] Running: dnf -y update --exclude=kernel\* [ 258.2] Installing packages: pcre2 libxml2 gtk3 dbus-libs /usr/bin/ssh nbdkit-server nbdkit-file-plugin which vim-minimal iscsi-initiator-utils /usr/bin/xinit /usr/bin/Xorg xorg-x11-drivers xorg-x11-fonts-Type1 dejavu-sans-fonts dejavu-sans-mono-fonts mesa-dri-drivers metacity NetworkManager nm-connection-editor network-manager-applet dbus-x11 net-tools @hardware-support shim-x64 grub2-efi-x64-cdboot curl ethtool gawk lsscsi pciutils usbutils util-linux xterm less hwdata hdparm smartmontools [ 306.2] Uploading: /usr/share/virt-p2v/issue to /etc/issue [ 306.2] Uploading: /usr/share/virt-p2v/issue to /etc/issue.net [ 306.2] Making directory: /usr/bin [ 306.2] Uploading: /tmp/tmp.ViM75ecYJn/virt-p2v to /usr/bin/virt-p2v [ 306.2] Changing permissions of /usr/bin/virt-p2v to 0755 [ 306.2] Uploading: /usr/share/virt-p2v/launch-virt-p2v to /usr/bin/ [ 306.2] Changing permissions of /usr/bin/launch-virt-p2v to 0755 [ 306.2] Uploading: /usr/share/virt-p2v/p2v.service to /etc/systemd/system/ [ 306.2] Making directory: /etc/systemd/system/multi-user.target.wants [ 306.2] Linking: /etc/systemd/system/multi-user.target.wants/p2v.service -> /etc/systemd/system/p2v.service [ 306.2] Editing: /lib/systemd/system/getty@.service [ 306.3] Editing: /etc/systemd/logind.conf [ 306.3] Uploading: /tmp/tmp.ViM75ecYJn/p2v.conf to /etc/dracut.conf.d/ [ 306.3] Running: /tmp/tmp.ViM75ecYJn/post-install [ 316.9] Setting passwords [ 317.7] SELinux relabelling [ 326.5] Finishing off Output file: /tmp/p2v.iso Output size: 6.0G Output format: raw Total usable space: 6.0G Free space: 4.1G (68%)
But I can't boot off this disk:
# mount -o loop -v /tmp/p2v.iso /mnt mount: /mnt: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error. # file /tmp/p2v.iso /tmp/p2v.iso: DOS/MBR boot sector
What is the impact of this issue to you?
Cannot convert physical servers to VM's, as the iso on the Red Hat site is only virt-p2v-1.40.2-1.el7.iso and, this is not compatible with virt-v2v-2.4.0-4.el9_4.x86_64 (separate bug open for that)
Please provide the package NVR for which the bug is seen:
virt-v2v-2.4.0-4.el9_4.x86_64
virt-p2v-1.42.2-1.1.el9.x86_64
How reproducible is this bug?:
Always
Steps to reproduce
- Install RHEL9 with KVM server
- install virt-v2v and virt-p2v
- try and make bootable iso as above
Expected results
Should be able to create a bootable iso
Actual results
Correct library not available by default. When workaround is applied, appropriate OS type 'rhel-9.4' is not available. When we try OS type 'fedora-34', image seems to be created successfully, but it's not bootable.
Additional information.
It would be really good if the latest image that is 2.x compatible could be compiled and made available from the Red Hat Customer Portal. That way, customers wouldn't have to jump through the hoops of creating their own boot iso. The current one (from the customer portal) has been in use since RHEL7
- is cloned by
-
RHEL-65793 When using virt-p2v-make-disk, the library virt-p2v.x86_64.xz is missing [rhel-10.0]
-
- Closed
-
- links to
-
RHBA-2024:142301
virt-p2v update