Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.