Ask Your Question
0

How to create vms on the same computer node?

asked 2015-03-12 03:06:12 -0600

nethawk gravatar image

I want to create three vms, and I want to create them on the same computer node. How can I do?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-12 03:29:39 -0600

1-Cloud gravatar image

If you want to create a Instances on Compute node use this command.

$ nova boot --image <image-id> --flavor <flavor-id> <vm-name>

this command will creatre vms on compute node.

now, you can see vms in

$ nova list

edit flag offensive delete link more
1

answered 2015-03-12 12:47:32 -0600

jdexter gravatar image

When you launch vms, nova scheduler determines what hosts to add the VMs to depending on the criteria you have defined in the schedule filter.

To assign vms to a particular host, you can specify the host using the availability zone option in the nova boot command.

$ nova boot --image <image-id> --flavor <flavor-id> <vm-name> --availability-zone <availability-zone> Where <availability-zone> is zone:host as seen in you $ nova service-list

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: 2015-03-12 03:06:12 -0600

Seen: 158 times

Last updated: Mar 12 '15