ansible/roles/openqa/worker/files/openqa-ppc64-prep.sh
Adam Williamson 1e3d6deed8 openqa/worker: add boot script to fix KVM perms and disable SMT
For some reason /dev/kvm has 0600 perms after boot on the ppc64
worker host. Also, qemu won't run unless SMT is turned off, on
ppc64. I've just been doing this manually every time the box got
restarted, but that's dumb, so let's make it happen on boot with
a script and a service to run it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2017-09-15 17:52:15 -07:00

7 lines
149 B
Bash
Executable file

#!/bin/sh
# On boot, /dev/kvm perms are 0600 for some reason
chmod ugo+rw /dev/kvm
# SMT must be off for qemu to work properly
ppc64_cpu --smt=off