Skip to content

Commit

Permalink
Move KVM check to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kiall committed Jan 22, 2012
1 parent 33bd73c commit 949ed2f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 0 additions & 11 deletions nova-compute.sh
Expand Up @@ -5,17 +5,6 @@


apt-get install -y nova-api nova-compute nova-network python-keystone python-mysqldb mysql-client curl apt-get install -y nova-api nova-compute nova-network python-keystone python-mysqldb mysql-client curl


# Check for kvm (hardware based virtualization). If unable to initialize
# kvm, we drop back to the slower emulation mode (qemu). Note: many systems
# come with hardware virtualization disabled in BIOS.
if [[ "$LIBVIRT_TYPE" == "kvm" ]]; then
modprobe kvm || true
if [ ! -e /dev/kvm ]; then
echo "WARNING: Switching to QEMU"
LIBVIRT_TYPE=qemu
fi
fi

# Nova Setup # Nova Setup
sed -e "s,999888777666,$SERVICE_TOKEN,g" api-paste-keystone.ini.tmpl > api-paste-keystone.ini sed -e "s,999888777666,$SERVICE_TOKEN,g" api-paste-keystone.ini.tmpl > api-paste-keystone.ini


Expand Down
11 changes: 11 additions & 0 deletions settings
Expand Up @@ -40,6 +40,17 @@ then
. settings.local . settings.local
fi fi


# Check for kvm (hardware based virtualization). If unable to initialize
# kvm, we drop back to the slower emulation mode (qemu). Note: many systems
# come with hardware virtualization disabled in BIOS.
if [[ "$LIBVIRT_TYPE" == "kvm" ]]; then
modprobe kvm || true
if [ ! -e /dev/kvm ]; then
echo "WARNING: Switching to QEMU"
LIBVIRT_TYPE=qemu
fi
fi

# Dont change anything below here! # Dont change anything below here!
FIXED_RANGE="${FIXED_RANGE_NET}/${FIXED_RANGE_BITS}" FIXED_RANGE="${FIXED_RANGE_NET}/${FIXED_RANGE_BITS}"
export NOVA_PROJECT_ID="admin" # Tenant export NOVA_PROJECT_ID="admin" # Tenant
Expand Down

0 comments on commit 949ed2f

Please sign in to comment.