Ask Your Question
0

How do I access VMs created by openstack single server installation?

asked 2014-08-25 11:22:25 -0600

serge gravatar image

updated 2014-08-26 12:58:23 -0600

smaffulli gravatar image

I am brand new to Ubuntu and OpenStack, my apologies if this question sounds a bit simple.

After installing Ubuntu Desktop 14.04, I followed the guidelines of the post to install a single machine openstack cloud.

With the stuff mentioned there, I was able to run cloud-install without any trouble.

I see that it has created several virtual machines functioning as different OpenStack nodes (controller, compute, Neutron, etc).

My problem is as follows - when trying to create a new VM through the Horizon browser interface, I get an error saying the following:

 Error: Failed to launch instance "i1": Please try again later [Error: No valid host was found. ].

I googled around and learned that this error is commonly associated with lack of resources, but that is simply not the case here.

I wanted to see the feedback from the openstack services themselves but I am not able to ssh into the VMs that cloud-install created that are running these services. ((EDIT - to clarify - upon single machine openstack installation described above - it created several VMs, each representing a different Openstack component - such as Neutron, Nova, controller, etc))

How do I get to these VMs? I tried SSH ing with no response, I tried ssh-copy-id to get my public key there, but got a permission denied error. I can ping the VMs fine, they are responding.

So, how do I get into these VMs running the openstack services?

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
1

answered 2014-08-25 11:36:36 -0600

SGPJ gravatar image

updated 2014-08-26 12:56:09 -0600

smaffulli gravatar image

First check all openstack services are running using admin window in dashboard, then check you have availability zone while launching VM through Openstack.

For neutron network case:

  1. after launching VM, go to security group and add All ICMP, ssh rule to default group
  2. then associate floating IP to VM
  3. now try to ping & ssh the floating IP.

You may refer Openstack user guide. For single node setup, install all openstack service (controller, neutron & compute) on same machines host OS not on separate VMs. Better try devstack for learning purpose.

edit flag offensive delete link more

Comments

Thank you for the answer, but I think I should have been a little more clear.

When I create a single machine openstack installation, it creates several VMs during the installation that represent openstack components (controller VM, neutron VM, compute node VM, etc) - those are the ones I cant reach

serge gravatar imageserge ( 2014-08-25 11:50:40 -0600 )edit

For single node setup, install all openstack service (controller, neutron & compute) on same machines host OS not on separate VMs. Better try devstack for learning purpose.

SGPJ gravatar imageSGPJ ( 2014-08-25 12:56:14 -0600 )edit
0

answered 2014-08-29 12:48:28 -0600

Daniel W gravatar image

The DevStack scripts make use of the https://wiki.archlinux.org/index.php/GNU_Screen (Linux screen utility). In this way, each process can be started in an independent shell. They are not running on separate VMs, or even containers.

edit flag offensive delete link more

Comments

Here's a good explanation of how to get to the individual screens http://www.sebastien-han.fr/blog/2013/08/08/devstack-in-1-minute/ (http://www.sebastien-han.fr/blog/2013...)

Daniel W gravatar imageDaniel W ( 2014-08-29 12:51:32 -0600 )edit
0

answered 2017-02-24 04:38:30 -0600

Shaik Saddam Hussain gravatar image

Hi, For this error, Error: Failed to launch instance "i1": Please try again later [Error: No valid host was found. ] This is commonly due to resource shortage. If you have enough resources to launch a instance and still facing this issue, then you might need to check into your /etc/nova/nova.conf file and check for below configurations. cpu_allocation_ratio=16.0

ram_allocation_ratio=1.5

disk_allocation_ratio=1.0

and then you need to restart nova services and try launching instance again

edit flag offensive delete link more
0

answered 2014-08-26 12:52:45 -0600

DanIzack gravatar image
1.Via floating IPs
2.Via private IPs from within corresponding qdhcp namespace
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-25 11:18:38 -0600

Seen: 790 times

Last updated: Aug 26 '14