Last active
June 13, 2018 17:44
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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