Ask Your Question
1

Select the server where to instanciate a VM?

asked 2016-06-09 09:57:59 -0600

newdevos gravatar image

Dears,

I want to know if it is possible to select the server where to instantiate a VM ? For example, if I have 3 servers (server1, server2, server3) and I want to choose: - server2 to instantiate VM1, - server3 to instantiate VM2 - server2 to instantiate VM3

Please advise ... Thanks in advance.

edit retag flag offensive close merge delete

Comments

1

From CLI or from Horizon?, From cli you can use the option --availability-zone <a-z>:<hypervisor>

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-06-09 10:01:13 -0600 )edit

Yes I prefer to use CLI. So you are assuming that each zone includes only one server in order to ensure this behaviour ?

newdevos gravatar imagenewdevos ( 2016-06-09 10:13:51 -0600 )edit
1

Not, you can specify the zone and the host itself, you can have more than one in each a-zone.

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-06-09 10:20:14 -0600 )edit

Could you please send me a tutorial or useful link to learn how to do this. Thanks in advance.

newdevos gravatar imagenewdevos ( 2016-06-09 10:31:53 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-06-10 07:14:40 -0600

According to this you can give AZ and then the host/server where you want to instantiate a VM. @Eduardo Gonzales has mentioned it correctly in the comments. No matter how many hosts you have in an AZ you can always specify the host on which you want to spin a VM. Also pasting the content from the link here.

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

where server2 or server1 are the host/servers in that AZ.

Hope that helps !!

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: 2016-06-09 09:57:59 -0600

Seen: 143 times

Last updated: Jun 10 '16