Create an instance
Create an instance by selecting a boot source, flavor, network, and security group. These components must be configured before you can launch an instance and are not available by default.
When you create an instance, you choose a boot source that has the bootable operating system that you require for your instance, a flavor that has the hardware profile you require for your instance, the network you want to connect your instance to, and any additional storage you need, such as data volumes and ephemeral storage.
[api]dhcp_domain configuration option is set to the empty string for the correct FQDN to appear in the hostname field in the metadata API. By default, the hostname is normalized from the display name and all occurrences of "." are removed from the hostname and replaced with "_".To run openstack client commands on the cloud, you must specify the name of the cloud detailed in your clouds.yaml file. You can specify the name of the cloud by using one of the following methods:
- Use the
--os-cloudoption with each command, for example:$ openstack flavor list --os-cloud <cloud_name>Use this option if you access more than one cloud.
- Create an environment variable for the cloud name in your
bashrcfile:`export OS_CLOUD=<cloud_name>`
Prerequisites Copy linkLink copied!
- The required image or volume is available as the boot source.
- A flavor is available that specifies the required number of CPUs, memory, and storage capacity. The flavor settings must meet the minimum requirements for disk and memory size specified by your chosen image, otherwise the instance will fail to launch.
- The required network is available.
Create an instance from an image Copy linkLink copied!
Create an instance by using an image as the boot source. The image provides the bootable operating system.
Before you begin Copy linkLink copied!
- The administrator has created a project for you and they have provided you with a
clouds.yamlfile for you to access the cloud. - You have installed the
python-openstackclientpackage.
About this task Copy linkLink copied!
[api]dhcp_domain configuration option is set to the empty string for the correct FQDN to appear in the hostname field in the metadata API. By default, the hostname is normalized from the display name and all occurrences of "." are removed from the hostname and replaced with "_".Procedure Copy linkLink copied!
Create an instance from a bootable volume Copy linkLink copied!
You can create an instance by using a bootable volume as the boot source. Boot your instance from a volume when you need to improve the availability of the instance data if a failure occurs.
Before you begin Copy linkLink copied!
- The administrator has created a project for you and they have provided you with a
clouds.yamlfile for you to access the cloud. - You have installed the
python-openstackclientpackage.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
Create an instance with an SR-IOV network interface Copy linkLink copied!
To create an instance with a single root I/O virtualization (SR-IOV) network interface, you must create the required SR-IOV port.
Before you begin Copy linkLink copied!
- The administrator has created a project for you and they have provided you with a
clouds.yamlfile for you to access the cloud. - You have installed the
python-openstackclientpackage.
About this task Copy linkLink copied!
[api]dhcp_domain configuration option is set to the empty string for the correct FQDN to appear in the hostname field in the metadata API. By default, the hostname is normalized from the display name and all occurrences of "." are removed from the hostname and replaced with "_".Procedure Copy linkLink copied!
Create an instance with NUMA affinity on the port Copy linkLink copied!
To create an instance with NUMA affinity on the port, create the port with the required NUMA affinity policy, then specify it when launching.
Before you begin Copy linkLink copied!
- The
port_numa_affinity_policyextension must be enabled in the Networking service (neutron). - The administrator has created a project for you and they have provided you with a
clouds.yamlfile for you to access the cloud. - You have installed the
python-openstackclientpackage.
About this task Copy linkLink copied!
[api]dhcp_domain configuration option is set to the empty string for the correct FQDN to appear in the hostname field in the metadata API. By default, the hostname is normalized from the display name and all occurrences of "." are removed from the hostname and replaced with "_".