summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
67e302d)
as gic version 3 is not supported on conova-node01/02
##
# Default to virt machine, forcing a gic version 3 to support more than 8 vcpus
##
# Default to virt machine, forcing a gic version 3 to support more than 8 vcpus
-machine="virt,gic-version=3"
# We want to always enable KVM. Contrary to what the Ganeti's documentation
# says, enabling kvm_flag is not enough.
# We want to always enable KVM. Contrary to what the Ganeti's documentation
# says, enabling kvm_flag is not enough.
# Check if the CPU is configured to run in 32-bit mode and
# force the gvic to version 2 in that case
args+=("$1")
args+=("$2")
# Check if the CPU is configured to run in 32-bit mode and
# force the gvic to version 2 in that case
args+=("$1")
args+=("$2")
- if echo "$2" | egrep -q '(^|,)aarch64=off(,|$)' ; then
- machine="virt,gic-version=2"
+ if test "$2" -gt 8 ; then
+ machine="virt,gic-version=3"