Skip to content

Instantly share code, notes, and snippets.

@timbot
timbot / veta_add_example.out
Created October 17, 2013 00:17
Veta novaclient examples
$ nova backup-schedule-add test 1h 1d
+------------+------------------+-------------------+--------+
| ID | Frequency | Retention | Active |
+------------+------------------+-------------------+--------+
| b-s64bz49p | Every 10 minutes | For the last hour | True |
| b-0eseoaea | Every hour | For the last day | True |
+------------+------------------+-------------------+--------+
@timbot
timbot / veta_configure_api.sh
Created October 16, 2013 22:52
Veta backup manager - installation from source
echo | sudo tee -a /etc/nova/nova.conf <<EOF
osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
osapi_compute_extension=veta.extension.Veta_extension
EOF
sudo restart nova-api
# Create a VM snapshot
nova live-image-create vms-test-vm vms-test-snapshot
# Setup for multi-node system with glance as storage backend
echo "gridcentric_use_image_service=true" | sudo tee -a /etc/nova/nova.conf
@timbot
timbot / precise-folsom-uca.sh
Last active December 17, 2015 22:19
"Off-the-shelf" installation script for Folsom on Ubuntu Precise 12.04, making use of Ubuntu Cloud Archive. Old-style nova-networking and nova-volumes are used instead of Quantum and Cinder.
#!/bin/bash
# How to use: Pass to cloud-init as user data, or run as a script. When
# port 80 is open, your cloud is ready.
set -e
MYIP=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'`
# Fix hosts
echo 127.0.0.1 $(hostname) | sudo tee -a /etc/hosts
@timbot
timbot / win7_x64_vlk.xml
Last active December 16, 2015 08:49
Sysprep unattend.xml templates
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SetupUILanguage>
<UILanguage>en-US</UILanguage>
</SetupUILanguage>
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
@timbot
timbot / glance_add_example.sh
Last active December 16, 2015 04:59
Gists related to creating a Windows image for Openstack
$ glance add name=win7sp1_x64_vlk_20130301 is_public=true container_format=bare disk_format=qcow2 < win7sp1_x64_vlk.qcow2
Added new image with ID: c4e19c5c-704c-438b-a49d-42d885f6945a
@timbot
timbot / cloud-init-clone.txt
Last active December 15, 2015 07:29
Gridcentric VMS for OpenStack usage instructions
#cloud-config
runcmd:
- [ touch, /tmp/alive ]
@timbot
timbot / gc_compute_use_glance.sh
Last active December 15, 2015 06:49
Gridcentric VMS for OpenStack installation
# Setup for multi-node system with glance as storage backend
echo "gridcentric_use_image_service=true" | sudo tee -a /etc/nova/nova.conf