Created
July 26, 2016 20:10
-
-
Save trumant/4766e207ac98c5c9c5cfbf4553e8f495 to your computer and use it in GitHub Desktop.
OpenStack-Ansible OVS instance launch example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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