Skip to content

Instantly share code, notes, and snippets.

@rbtcollins
Created November 21, 2012 09:27
Show Gist options
  • Save rbtcollins/4123967 to your computer and use it in GitHub Desktop.
Save rbtcollins/4123967 to your computer and use it in GitHub Desktop.
deploy instance, copy image in to /mnt/foo.qcow2
apt-get install qemu-utils
modprobe nbd max_part=16
qemu-nbd -c /dev/nbd1 imagefile
mkdir /mnt/2
mount /dev/nbd1p1 /mnt/2
rsync -axv /mnt/2/ / --delete-after
apt-get install qemu-utils
umount /mnt/2
qemu-nbd -d /dev/nbd1
ssh in as stack
remove http proxy from ~stack/.profile
remove http proxy from /etc/apt/apt.conf.d/61-use-http-proxy
eth1 via dummy0 - edit localrc and /etc/network/interfaces
sudo ifup dummy0
demo/scripts/demo
route incoming traffic on eth0 9292 to 192.0.2.1 and 5000 likewise, to expose glance and keystone
sudo iptables -t nat -A PREROUTING -p tcp --dport 9292 -j DNAT --to-destination 192.0.2.1
sudo iptables -t nat -A PREROUTING -p tcp --dport 5000 -j DNAT --to-destination 192.0.2.1
# dont' forget to open the security group rules too
stack@server-1353487390-az-2-region-a-geo-1:~/devstack$
$profit
glance -v --os-username demo --os-password nomoresecrete --os-tenant-name demo --os-auth-url http://glance.tripleo.org:5000/v2.0 --os-image-url http://glance.tripleo.org:9292/ image-list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment