Skip to content

Instantly share code, notes, and snippets.

@timbot
Forked from gcgists/gc_compute_use_glance.sh
Last active December 22, 2015 11:59
Show Gist options
  • Save timbot/6469222 to your computer and use it in GitHub Desktop.
Save timbot/6469222 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 <server> and <path> as appropriate for your environment
echo "<server>:<path> /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 yum install -y cobalt-api
# Install the Compute package and dependencies
sudo yum install -y kernel-devel-`uname -r` vms-selinux cobalt-compute vms-libvirt vms-mcdist vmsfs
# Install the Horizon dashboard plugin
sudo yum install -y cobalt-horizon
# Install RHEL6 EPEL repo
sudo rpm -ivh http://fedora.mirror.nexicom.net/epel/6/`uname -m`/epel-release-6-8.noarch.rpm
sudo rpm --import https://fedoraproject.org/static/0608B895.txt
# Install the novaclient plugin for the current user
pip install --user cobalt_python_novaclient_ext
# Install Gridcentric signing key
sudo rpm --import http://downloads.gridcentriclabs.com/packages/gridcentric.key
# Add Gridcentric repositories
echo "\
[gridcentric-cobaltclient]
name=Cobalt Extension for novaclient
baseurl=http://downloads.gridcentriclabs.com/packages/cobaltclient/grizzly/centos/
gpgcheck=1
" | sudo tee /etc/yum.repos.d/gridcentric-client.repo
# Install the novaclient plugin for all users
sudo yum install -y cobalt-novaclient
# Put your download key here:
export GC_KEY=xxxxxxxxxxxxxxxxxxxxxx
# Install Gridcentric signing key
sudo rpm --import http://downloads.gridcentriclabs.com/packages/gridcentric.key
# Add Gridcentric repositories
echo "\
[gridcentric-cobaltclient]
name=Cobalt Extension for novaclient
baseurl=http://downloads.gridcentriclabs.com/packages/cobaltclient/grizzly/centos/
gpgcheck=1
[gridcentric-cobalt]
name=Gridcentric Openstack Extensions
baseurl=http://downloads.gridcentriclabs.com/packages/cobalt/grizzly/centos/
gpgcheck=1
[gridcentric-vms]
name=Gridcentric Virtual Memory Streaming
baseurl=http://downloads.gridcentriclabs.com/packages/$GC_KEY/vms/centos/
gpgcheck=1
" | sudo tee /etc/yum.repos.d/gridcentric.repo
# Restart the nova gridcentric service
sudo restart cobalt-compute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment