Skip to content

Instantly share code, notes, and snippets.

@RabidCicada
Last active June 13, 2018 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RabidCicada/bc01eb0b13195faa26520c0fb666ec34 to your computer and use it in GitHub Desktop.
Save RabidCicada/bc01eb0b13195faa26520c0fb666ec34 to your computer and use it in GitHub Desktop.
qemu wrapper for ovirt's libguestfish vm creation. Use with hosted_engine_custom.env in the other gist.
#!/bin/bash -
i=0
while [ $# -gt 0 ]; do
case "$1" in
-machine)
shift 2;;
-cpu)
shift 2;;
*)
args[i]="$1"
args[i]="$1"
(( i++ ))
shift ;;
esac
done
echo /usr/libexec/qemu-kvm -global virtio-blk-pci.disable_modern=on -no-kvm -machine pc-i440fx-rhel7.2.0 -cpu core2duo "${args[@]}"
exec /usr/libexec/qemu-kvm -global virtio-blk-pci.disable_modern=on -no-kvm -machine pc-i440fx-rhel7.2.0 -cpu core2duo "${args[@]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment