[Bug 1215461] New: guestfs-tools unable to determine guest arch
https://bugzilla.suse.com/show_bug.cgi?id=1215461 Bug ID: 1215461 Summary: guestfs-tools unable to determine guest arch Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.5 Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Virtualization:Tools Assignee: virt-bugs@suse.de Reporter: seroton10@gmail.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- Created attachment 869581 --> https://bugzilla.suse.com/attachment.cgi?id=869581&action=edit Debugging output from running the failing virt-sysprep command I use the virt-sysprep command to prepare OS image files (qemu2 format) for use as KVM images. One preparation task is to define the salt minion name, by adding the argument --run-command 'echo -e "# vi:filetype=yaml\nid: $MINION_ID"
/etc/salt/minion.d/id.conf'
to the virt-sysprep command. When running the virt-sysprep command, I get the following error: virt-sysprep: error: host cpu (x86_64) and guest arch (unknown) are not compatible, so you cannot use command line options that involve running commands in the guest. Use --firstboot scripts instead. If reporting bugs, run virt-sysprep with debugging enabled and include the complete output: virt-sysprep -v -x [...] However, it used to work flawlessly until recently, so some sort of regression has occurred. I guess the problem is that virt-sysprep is no longer able to identify the architecture of the guest OS in the image file. The image contains a standard Leap 15.5 server installation for amd64, the same arch as the host system. Unfortunately, I can't pinpoint exactly when this issue started occurring, but I last used the tool successfully on 2023-09-01. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215461 https://bugzilla.suse.com/show_bug.cgi?id=1215461#c3 --- Comment #3 from Olav Reinert <seroton10@gmail.com> --- (In reply to Lin Ma from comment #1)
Could you please use the below leap 15.1 image instead of your image to see what happens?
https://download.opensuse.org/distribution/leap/15.1/jeos/openSUSE-Leap-15.1... JeOS.x86_64-15.1.0-kvm-and-xen-Current.qcow2
Just for reference: Using the linked image, the following command reproduces the error: virt-sysprep -a openSUSE-Leap-15.1-JeOS.x86_64-15.1.0-kvm-and-xen-Current.qcow2 --run-command 'uname -a' -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215461 https://bugzilla.suse.com/show_bug.cgi?id=1215461#c6 Olav Reinert <seroton10@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(seroton10@gmail.c | |om) | --- Comment #6 from Olav Reinert <seroton10@gmail.com> --- (In reply to Charles Arnold from comment #5)
Could you please install the libguestfs RPMs from this location and try virt-sysprep again?
https://download.opensuse.org/repositories/home:/charlesa/15.5/x86_64/
Using those RPMs, it works as expected. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215461 https://bugzilla.suse.com/show_bug.cgi?id=1215461#c7 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|virt-bugs@suse.de |carnold@suse.com --- Comment #7 from Charles Arnold <carnold@suse.com> --- (In reply to Olav Reinert from comment #6)
(In reply to Charles Arnold from comment #5)
Could you please install the libguestfs RPMs from this location and try virt-sysprep again?
https://download.opensuse.org/repositories/home:/charlesa/15.5/x86_64/
Using those RPMs, it works as expected.
Thanks for testing. A submission will be made soon containing this fix. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215461 https://bugzilla.suse.com/show_bug.cgi?id=1215461#c9 --- Comment #9 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1215461) was mentioned in https://build.opensuse.org/request/show/1113550 Factory / libguestfs -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215461 https://bugzilla.suse.com/show_bug.cgi?id=1215461#c12 --- Comment #12 from Olav Reinert <seroton10@gmail.com> --- It is - has been since comment #10 was posted. Thank you. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com