Skip to content

Commit

Permalink
Add libguestfs workaround for ppc64le
Browse files Browse the repository at this point in the history
 Add a workaround for the issue:
 openshift/os#720

The kola tests failing are using guestfish, for some
reason the libguestfs is not able to create the wrapped to
add the vmst value, required for the POWER8 cluster.
Until we can debug it better, let's unlock the power builds

Signed-off-by: Renata Ravanelli <rravanel@redhat.com>
  • Loading branch information
ravanelli committed Feb 21, 2022
1 parent 99ce834 commit a6d7bbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mantle/platform/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,10 @@ func newGuestfish(diskImagePath string, diskSectorSize int) (*coreosGuestfish, e
guestfishArgs = append(guestfishArgs, "-a", diskImagePath)
cmd := exec.Command("guestfish", guestfishArgs...)
cmd.Env = append(os.Environ(), "LIBGUESTFS_BACKEND=direct")
switch system.RpmArch() {
case "ppc64le":
cmd.Env = append(os.Environ(), "LIBGUESTFS_HV=/usr/lib/coreos-assembler/libguestfs-ppc64le-wrapper.sh")
}
// make sure it inherits stderr so we see any error message
cmd.Stderr = os.Stderr
stdout, err := cmd.StdoutPipe()
Expand Down
2 changes: 2 additions & 0 deletions src/libguestfs-ppc64le-wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
exec qemu-system-ppc64 "$@" -machine pseries,accel=kvm:tcg,vsmt=8,cap-fwnmi=off

0 comments on commit a6d7bbb

Please sign in to comment.