Bug 1576683
Summary: | virt-customize fails to run commands on native arch images | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dima Kuznetsov <dmitrykuzn> | ||||
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 28 | CC: | mgoldman, rjones | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-05-16 09:35:54 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: |
|
This is going to be fixed in 1.38.2, out real soon. *** This bug has been marked as a duplicate of bug 1575640 *** |
Created attachment 1434237 [details] Log of a failing execution Description of problem: I'm creating x86_64 images and trying to customize the them with virt-customize (running several commands) Version-Release number of selected component (if applicable): libguestfs-tools-1.38.0-1.fc28.noarch libguestfs-1.38.0-1.fc28.x86_64 libguestfs-tools-c-1.38.0-1.fc28.x86_64 How reproducible: 100% Steps to Reproduce: 1. Create a Fedora 28 image (mkosi -d fedora -r 28 -t raw_gpt -o foo.img) 2. Run virt-customize to invoke some command (virt-customize -a foo.img --run-command ls) Actual results: virt-customize fails with the following error: virt-customize: 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. Verbose trace shows: chroot: /sysroot: running 'file: /usr/bin/ls' command: file '-zb' '/sysroot//usr/bin/ls' command: file returned 0 command: file: stdout: ELF 64-bit LSB pie executable x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=0b02d42b543a277576db885b97e5a3393afe57f0, stripped check_architecture: /bin/ls: Failure("unknown architecture: /usr/bin/ls") Expected results: virt-customize succeeds Additional info: