How to create vms on the same computer node?
I want to create three vms, and I want to create them on the same computer node. How can I do?
First time here? Check out the FAQ!
I want to create three vms, and I want to create them on the same computer node. How can I do?
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
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
Asked: 2015-03-12 03:06:12 -0500
Seen: 195 times
Last updated: Mar 12 '15