Creating and Boot OpenStack Instance from a
Glance Image
A.3.3 Creating and Boot OpenStack Instance from a
Glance Image
Retrieve the following configuration values:
Retrieve image ID, run the
command:
$ glance image-list
Retrieve flavor ID, run the
command:
$ nova flavor-list
Retrieve network IDs, run the
command:
$ neutron net-list
For example: An informative name for the
instance.
NOAM-A
SO2
MP5
Create and boot the VM instance.
The instance must be owned by the DSR tenant user, not the admin
user. Obtain the credentials of the DSR tenant user and issue the following
command.
Note:
IPv6 addresses
should use the v6-fixed-ip argument instead of
v4-fixed-ip.
$ nova boot --image <image ID> --flavor <flavor id> --nic net-id=<first network id>,v4-fixed-ip=<first ip address> --nic net-id=<second network id>,v4-fixed-ip=<second ip address> InstanceName
View the newly created instance using the nova tool.
$ nova list --all-tenants
The
VM takes approximately five minutes to boot. At this stage, the VM has no
configured network interfaces and can be accessed only through the Horizon
console tool.