Bug 1576683 - virt-customize fails to run commands on native arch images
Summary: virt-customize fails to run commands on native arch images
Keywords:
Status: CLOSED DUPLICATE of bug 1575640
Alias: None
Product: Fedora
Classification: Fedora
Component: libguestfs
Version: 28
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-10 06:55 UTC by Dima Kuznetsov
Modified: 2018-05-16 09:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-16 09:35:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Log of a failing execution (75.79 KB, text/plain)
2018-05-10 06:55 UTC, Dima Kuznetsov
no flags Details

Description Dima Kuznetsov 2018-05-10 06:55:48 UTC
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:

Comment 1 Richard W.M. Jones 2018-05-16 09:35:54 UTC
This is going to be fixed in 1.38.2, out real soon.

*** This bug has been marked as a duplicate of bug 1575640 ***


Note You need to log in before you can comment on or make changes to this bug.