Changes

From Amahi Wiki
Jump to: navigation, search
====Create Static IP for Instance====
Setting a static IP for instances will ensure the internal IP address remains the same through it's life cycle. The floating IP address can be easily added afterwards.
* As root user, execute <code>source keystonerc_admin</code>
* Use the following to reserve the IP address:
neutron port-create internal --fixed-ip subnet-id=internal_subnet,ip_address=x.x.x.x
* Create the instance and boot via command-line vs the web UI:
nova boot --image NAME_OF_IMAGE --flavor amahi.small --nic port-id=ID_FROM_ABOVE_COMMAND ID_FOR NETWORK_FROM_ABOVE_COMMAND_RESULTS VM_NAME
:'''NOTE:''' If image name has spaces, enclose it in double quotes.
Ref: [https://ask.openstack.org/en/question/30690/add-multiple-specific-ips-to-instance/ Add Multiple Specific IPs to Instance]
12,424

edits