Skip to content

Instantly share code, notes, and snippets.

@trumant
Created July 26, 2016 20:10
Show Gist options
  • Save trumant/4766e207ac98c5c9c5cfbf4553e8f495 to your computer and use it in GitHub Desktop.
Save trumant/4766e207ac98c5c9c5cfbf4553e8f495 to your computer and use it in GitHub Desktop.
OpenStack-Ansible OVS instance launch example
ssh man1.oslab
lxc-attach -n `lxc-ls | grep utility`
source demo-openrc
# Get the network ids
openstack network list
# Allow ping access
openstack security group rule create \
--proto icmp default
# Launch an instance on the provider network
openstack server create \
--flavor m1.nano \
--image cirros \
--security-group default \
--nic net-id=UUID_OF_PROVIDER_NETWORK \
--key-name mykey provider-instance
# Launch an instance on the project network
openstack server create \
--flavor m1.nano \
--image cirros \
--security-group default \
--nic net-id=UUID_OF_PROJECT_NETWORK \
--key-name mykey project-instance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment