Skip to content

Latest commit

 

History

History
80 lines (46 loc) · 3.01 KB

Launch-a-VM.md

File metadata and controls

80 lines (46 loc) · 3.01 KB

Background

To start a VM, we will need a base image. MOC has made several Public images available to users.

Launch an Instance

Navigate: Project -> Compute -> Images. Make sure you are on the Public tab.

[[tutorial_screenshots/newton/base_images_public.png]]

Click Launch Instance next to the public image of your choice. In the example, we chose RHEL7.1.

  • Important: There are multiple tabs along the top of the the pop up window. Make sure you review all of them as per instructions before clicking on Launch! Otherwise, your launched VM may be inaccessible.
Details:

Give your instance a name.

[[tutorial_screenshots/newton/launch_details.png]]

Source:

Double check that in the dropdown "Select Boot Source," "Image" is selected.

To create an image that uses the boot volume sized according to the flavor ensure that "No" is selected under the "Create New Volume" section as shown here:

[[tutorial_screenshots/newton/launch_source.png]]

There are several image pre-configured by ITS[[ Image Prepared by ITS]]

Flavor:

Choose s1.small from the 'Flavor' tab by clicking on the "+" icon.

s1.small is comparable to a small VM in ITSCloud, so do s1.medium, s1.large to medium and large VM.

[[tutorial_screenshots/newton/launch_flavor_01.png]]

The default m1.tiny flavor is too small for the base images which are available. m1.small has enough resources for most purposes, so you should choose that unless you explicitly need more.

If you find later that a custom flavor would help you use your resources more effectively, you can raise a pull request (PR) in this site to request that the admins create a new flavor.

After choosing m1.small, you should see it moved up to "Allocated".

[[tutorial_screenshots/newton/launch_flavor_02.png]]

Networking:

Make sure the Private Network you just created is moved up to "Allocated". If not, you can click on the "+" icon in "Available".

[[tutorial_screenshots/newton/launch_networks.png]]

Security Groups:

Make sure to add the security group where you enabled SSH.

[[tutorial_screenshots/newton/launch_security.png]]

Key Pair:

Add the key pair you want to use with this VM. Openstack currently only supports adding a single key pair. We will discuss how to add additional public keys later in the tutorial.

[[tutorial_screenshots/newton/launch_key.png]]

Configuration and Metadata and Server groups, scheduler hints:

Ignore these four tabs for now.

You are now ready to launch your VM - go ahead and click "Launch Instance"!

On a successful launch you would be redirected to Compute -> Instances tab
and can see the VM spawning.

[[tutorial_screenshots/newton/launch_spawning.png]]

Once your VM is successfully running you will see the Power State changes from "No State" to "running".

[[tutorial_screenshots/newton/launch_running.png]]

Good job!


Next: [[Assign a Floating IP]]

Previous: [[Create a Key Pair]]

[[Openstack Tutorial Index]]