How to create RHEL7.3 VM in Openstack Kilo version?

1. Create a new project.

To do this go to Openstack Horizon GUI –> Identity tab –> Projects.

Click on “+ Create Project” button.

Give Name of the project, description and assign project members.

image

2. Create a new key.

To do this go to Openstack Horizon GUI –> Project tab –> Access & Security tab –> Key Pairs tab.

Click on “+ Create Key Pair”

Give Name of the key pair and click on Create Key Pair button.

Download the key pair that is created and save it at desired location.

image

3. Create a Image

For RHEL7.3 version, need to first download the KVM Guest Image from below link that downloads the qcow2 image named “rhel-guest-image-7.3-35.x86_64.qcow2”:

https://access.redhat.com/downloads/content/69/ver=/rhel—7/7.3/x86_64/product-software

Go to Openstack Horizon GUI –> Project tab –> Images tab

Make sure project selected at the top left dropdown menu is the new project created.

Click on “+ Create Image”

Enter details as shown below, and click on Create Image button.

image

After few mins of waiting, the new image is uploaded to openstack and is ready for use.

4. Create new Security Group:

Based on the need of the project we can alter the settings here.

Go to Openstack Horizon GUI –> Project tab –> Compute tab –> Access & Security tab.

Add the following rules:

image

image

image

5. Create a new Instance:

Make sure project selected at the top left dropdown menu is the new project created.

Go to Openstack Horizon GUI –> Project tab –> Compute tab –> Instances tab:

Click on Launch Instance button.

Enter detail as shown in below picture:

image

Under Access & Security tab as shown in above picture, select the new key pair created and new security group created earlier.

Under Networking tab,  select the desired network from the list. ( Here assuming that a network is already created).

And click on Launch button.

After 1-2 mins of wait, the new instance will be up and running. Smile

Now to access this newly created VM, you would need the key that was downloaded earlier and the IP address of the new VM.

Use below command to connect:

ssh –i key.pem cloud-user@<ip-addr>

Make sure to use “cloud-user” which is default username provided by rhel for this cloud image.

image

Here you go , you are inside the VM box now Smile

Thanks, Have a good day!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s