Ask Your Question
1

Is it possible to force controller place new VM on particular compute node ?

asked 2014-05-27 07:21:56 -0500

DanIzack gravatar image
Is there an option for `nova boot` command to launch newly created instance at  particular Compute Node,
when quota does allow to do that ?
edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
1

answered 2014-05-27 10:35:57 -0500

SGPJ gravatar image

Please find below the steps to force an Instance onto a host.

nova boot --image <uuid> --flavor m1.tiny --key_name deepakkey --availability-zone nova:serverx

edit flag offensive delete link more
2

answered 2014-05-27 08:05:10 -0500

Yes, you can:

nova boot --image IMAGE_ID --flavor FLAVOR --availability-zone nova:server2

Try reading this

If you have a particular disk image (let's say vmdk) and you want to spawn on vmware hosts only, you must add metadata to glance images:

glance image-update --property hypervisor_type="vmware" IMAGE_ID
edit flag offensive delete link more

Comments

Thank you very much.

DanIzack gravatar imageDanIzack ( 2014-05-27 08:55:00 -0500 )edit
0

answered 2016-07-15 08:55:27 -0500

mriedem gravatar image

Compute hosts can be grouped using host aggregates and availability zones are mapped to host aggregates. Host aggregates are an admin-only concept, availability zones are for the user. Users aren't supposed to know about what servers are in the AZs (or cloud). The aggregates can have metadata associated with them though. As well as the image can have properties (metadata) and flavors can have metadata (extra specs). Those are all combined in the scheduler to map a given request to a given host aggregate. For example, if you have a compute node with ppc64 architecture, and you have a ppc64 image, the scheduler should send the request with that image and that architecture (defined via the image properties) to the proper compute in the aggregate with matching metadata.

edit flag offensive delete link more

Comments

0

answered 2016-07-14 16:53:35 -0500

Manohar gravatar image

Yes, you can force controller to create VM on particular compute node

nova boot --flavor <flavor-id> --image <image-uuid> --nic-net-id=<network-uuid> <name_vm> --availability-zone nova:<compute node="" name="">

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-05-27 07:21:56 -0500

Seen: 1,217 times

Last updated: Jul 15 '16