Skip to content

Instantly share code, notes, and snippets.

@gcgists
Forked from timbot/gc_compute_use_glance.sh
Last active December 22, 2015 11:38
Show Gist options
  • Save gcgists/6466705 to your computer and use it in GitHub Desktop.
Save gcgists/6466705 to your computer and use it in GitHub Desktop.
# Setup for multi-node system with glance as storage backend
echo "gridcentric_use_image_service=true" | sudo tee -a /etc/nova/nova.conf
# Setup for multi-node systems using NFS as storage backend
# Note: set NFSSERVER and NFSPATH appropriate for your environment
apt-get install -y nfs-common
echo "$NFSSERVER:$NFSPATH /var/gridcentric nfs auto,defaults,rw,async,vers=3,sec=sys 0 0" | sudo tee -a /etc/fstab
sudo mount /var/gridcentric
$ nova help|grep live-image
live-image-create Creates a new live-image from a running instance.
live-image-delete Delete a live image.
live-image-export Export a live-image
live-image-import Import a live-image
live-image-list List the live images of this instance.
live-image-servers List instances started from this live-image.
live-image-start Start a new instance from a live-image.
# Install the API extension
sudo apt-get install -y cobalt-api
# Install the API extension (Folsom/Essex)
sudo apt-get install -y nova-api-gridcentric
# Install the Compute package and dependencies
sudo apt-get install -y linux-headers-`uname -r` vms-apparmor
sudo apt-get install -y cobalt-compute vms-libvirt vms-mcdist
# Install the Compute package and dependencies (Folsom/Essex)
sudo apt-get install -y linux-headers-`uname -r` vms-apparmor
sudo apt-get install -y nova-compute-gridcentric vms-libvirt vms-mcdist
# Install the Horizon dashboard plugin
sudo apt-get install -y cobalt-horizon cobalt-novaclient
# Install the Horizon dashboard plugin (Folsom/Essex)
sudo apt-get install -y horizon-gridcentric cobalt-novaclient
# Install Gridcentric signing key
wget -O - http://downloads.gridcentric.com/packages/gridcentric.key | sudo apt-key add -
# Add Gridcentric repositories
echo deb http://downloads.gridcentric.com/packages/cobaltclient/havana/ubuntu/ gridcentric multiverse | sudo tee -a /etc/apt/sources.list.d/cobaltclient.list
# Update apt
sudo apt-get update
# Install the novaclient plugin for all users
sudo apt-get install -y cobalt-novaclient
# Install the novaclient plugin for the current user
pip install --user cobalt_python_novaclient_ext
# Put your download key here:
export GC_KEY=xxxxxxxxxxxxxxxxxxxxxx
# Install Gridcentric signing key
wget -O - http://downloads.gridcentric.com/packages/gridcentric.key | sudo apt-key add -
# Add Gridcentric repositories
echo deb http://downloads.gridcentric.com/packages/cobaltclient/havana/ubuntu/ gridcentric multiverse | sudo tee -a /etc/apt/sources.list.d/cobaltclient.list
echo deb http://downloads.gridcentric.com/packages/cobalt/havana/ubuntu/ gridcentric multiverse | sudo tee -a /etc/apt/sources.list.d/gridcentric.list
echo deb http://downloads.gridcentric.com/packages/$GC_KEY/vms/uca/havana/ gridcentric multiverse | sudo tee -a /etc/apt/sources.list.d/gridcentric.list
# Update apt
sudo apt-get update
# Restart the nova gridcentric service
sudo restart cobalt-compute
# Restart the nova gridcentric service (Folsom/Essex)
sudo restart nova-compute-gridcentric
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment