Ask Your Question
1

How to launch an instance on specific host

asked 2014-09-18 16:45:27 -0500

kolobok gravatar image

updated 2014-09-18 18:42:57 -0500

smaffulli gravatar image

I have seen some docs that indicate that you can launch an instance on a specific compute host. Does anybody know how to properly structure the cli request ? I have tried with this

 --availability-zone= 
--hint force_hosts=
somthing like 
nova boot --image 79ced6dd-a9a1-4843-9e38-a4337228adb6  --flavor m1.windows --nic net-id=9a2a3961-9afd-4cb2-940f-3a8e5badb82a --hint force_hosts=host1  testhost

Would appriciate any help i can get

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
6

answered 2014-09-18 18:24:51 -0500

fgorbat gravatar image

According to the OpenStack Admin User Guide you should be able to use

 nova boot --image <uuid> --flavor m1.tiny --key_name test --availability-zone nova:server2

to get list of available hypervisor, use:

nova hypervisor-list
edit flag offensive delete link more
3

answered 2014-09-18 18:01:52 -0500

kolobok gravatar image

The solution was simple --availability-zone nova:host i was specifying fully qualified name instead of shorthand

edit flag offensive delete link more
0

answered 2019-03-11 08:42:19 -0500

arbermejo gravatar image

You can use Host Aggregates for that, i had a similar problem here is a link with the solution that worked for me https://ask.openstack.org/en/question/120253/selecting-compute-node-to-deploy-an-instance/ (https://ask.openstack.org/en/question...)

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-09-18 16:45:27 -0500

Seen: 13,821 times

Last updated: Mar 11