14 KiB
| sidebar_label | sidebar_position |
|---|---|
| Launch an instance | 1 |
import CodeBlock from '@site/src/components/CodeBloack';
Launch and manage instances
- Images uploaded to the Image service.
- Images that you have copied to a persistent volume.
- Images that you have copied to a persistent volume.
- Instances snapshot that you took.
<span style={{fontSize: '34px', fontFamily:'open sans'}}> Launch an instance
- Log in to the dashboard.
- Select the appropriate project from the drop down menu at the top left.
- On the Project tab , open the Compute tab and click Instances category. The dashboard shows the instances with its name, its private and floating IP addresses, size, status, task, power state, and so on.
- Click Launch Instance.
- In the Launch Instance dialog box, specify the following values:
Details tab.
After the server is built, if you change the server name in the API or change the host name directly, the names are not updated in the dashboard.
Server names are not guaranteed to be unique when created so you could have two instances with the same host name.
Source tab
Boot from image
If you choose this option, a new field for Image Name displays. You can select the image from the list.
<span className="text" style={{ marginLeft:'20px' }}>Boot from snapshot
<span className="text"style={{ marginLeft:'20px' }} >If you choose this option, a new field for <span style={{ color: 'blue' }}> Instance Snapshot displays. You can select the snapshot from the list.
<span className="text" style={{ marginLeft:'20px' }}>Boot from volume
<span className="text"style={{ marginLeft:'20px' }} >If you choose this option, a new field for <span style={{ color: 'blue' }}> Volume displays. You can select the volume from the list.
<span className="text" style={{ marginLeft:'20px' }}>Boot from image (creates a new volume)
<span className="text" style={{ marginLeft:'20px' , textAlign: 'left' }} >With this option, you can boot from an image and create a volume by entering the <span style={{ color: 'blue' }}>Device Size and <span style={{ color: 'blue' }}> Device Name for your volume. Click the <span className="text"style={{color: 'blue' }} > Delete Volume on Instance Delete option to delete the volume on deleting the instance.
<span className="text" style={{ marginLeft:'20px' }}>Boot from volume snapshot (creates a new volume)
<span className="text"style={{ marginLeft:'20px' , textAlign: 'left' }} >Using this option, you can boot from a volume snapshot and create a new volume by choosing <span className="text"style={{color: 'blue' }} > Volume Snapshot from a list and adding a <span className="text"style={{color: 'blue' }} >Device Name for your volume. Click the <span className="text"style={{color: 'blue' }} >Delete Volume on Instance Delete option to delete the volume on deleting the instance.
Image Name
This field changes based on your previous selection. If you have chosen to launch an instance using an image, the<span style={{ color: 'blue' }}> Image Name field displays. Select the image name from the dropdown list.
Instance Snapshot
This field changes based on your previous selection. If you have chosen to launch an instance using a snapshot, the <span style={{ color: 'blue' }}>Instance Snapshotfield displays. Select the snapshot name from the dropdown list.
Volume
This field changes based on your previous selection. If you have chosen to launch an instance using a volume, the <span style={{ color: 'blue' }}>Volume field displays. Select the volume name from the dropdown list. If you want to delete the volume on instance delete, check the <span style={{ color: 'blue' }}>Delete Volume on Instance Delete option.
<span className="text" style={{ color: 'blue' }}>Flavor tab
Flavor
Specify the size of the instance to launch.
<span className="text" style={{ color: 'blue' }}>Networks tab
Selected Networks
To add a network to the instance, click the + in the Available field.
<span className="text" style={{ color: 'blue' }}>Network Ports tab
Ports
Activate the ports that you want to assign to the instance.
<span className="text" style={{ color: 'blue' }}>Security Groups tab
• Activate the security groups that you want to assign to the instance.
• Security groups are a kind of cloud firewall that define which incoming network traffic is forwarded to instances.
• If you have not created any security groups, you can assign only the default security group to the instance.
Specify a key pair.
If the image uses a static root password or a static key set (neither is recommended), you do not need to provide a key pair to launch the instance.
Specify a customization script that runs after your instance launches.
Add Metadata items to your instance.
The instance starts on a compute node in the cloud.
When you launch an instance from an image, OpenStack creates a local copy of the image on the compute node where the instance starts.
For details on creating images, see Creating images manually in the OpenStack Virtual Machine Image Guide.
To select the volume from which to launch, launch an instance from an arbitrary image on the volume. The arbitrary image that you select does not boot. Instead, it is replaced by the image on the volume that you choose in the next steps.
To boot a Xen image from a volume, the image you launch in must be the same type, fully virtualized or paravirtualized, as the one on the volume.
Select the volume or volume snapshot from which to boot. Enter a device name. Enter vda for KVM images or xvda for Xen images.
libvirtError: unsupported configuration: CPU mode 'host-model'
for x86_64 qemu domain on x86_64 host is not supported by hypervisor
<span style={{fontSize: '34px', fontFamily:'open sans'}}>Connect to your instance by using SSH
- Copy the IP address for your instance.
- Use the ssh command to make a secure connection to the instance. For example:
<CodeBlock code={ssh -i MyKey.pem ubuntu@10.0.0.2 } />
It is also possible to SSH into an instance without an SSH keypair, if the administrator has enabled root password injection. For more information about root password injection, see Injecting the administrator password in the OpenStack Administrator Guide.
<span style={{fontSize: '34px', fontFamily:'open sans'}}>Track usage for instances
- Log in to the dashboard.
- Select the appropriate project from the drop down menu at the top left.
- On the Project tab , open the Compute tab and click Overview category.
- To query the instance usage for a month, select a month and click Submit.
- To download a summary, click Download CSV Summary.
<span style={{fontSize: '34px', fontFamily:'open sans'}}>Create an instance snapshot
- Log in to the dashboard.
- Select the appropriate project from the drop down menu at the top left.
- On the Project tab, open the Compute tab and click the Instances category.
- Select the instance from which to create a snapshot.
- In the actions column, click Create Snapshot.
- In the Create Snapshot dialog box, enter a name for the snapshot, and click Create Snapshot.
The Images category shows the instance snapshot.
<span style={{fontSize: '34px', fontFamily:'open sans'}}>Manage an instance
- Log in to the dashboard.
- Select the appropriate project from the drop down menu at the top left.
- On the Project tab, open the Compute tab and click Instances category.
- Select an instance.
- In the menu list in the actions column, select the state.
You can resize or rebuild an instance. You can also choose to view the instance console log, edit instance or the security groups. Depending on the current state of the instance, you can pause, resume, suspend, soft or hard reboot, or terminate it.