It is possible to specify which node to run the instance on using the nova client. In
order to use such feature, make sure you are using an admin accont ; also, in your
/etc/nova/nova.conf, make sure the following configuration
option is set :
allow_admin_api
You can retrieve the current active node by running :
$nova-manage service list
server1 nova-network enabled :- ) 2011-04-06 17:05:11
server1 nova-compute enabled :- ) 2011-04-06 17:05:13
server1 nova-scheduler enabled :- ) 2011-04-06 17:05:17
server2 nova-compute disabled :- ) 2011-04-06 17:05:19
We see here our "server2" runs as a node. You can now select the host on which the instance would be spawned, using the "--hint" flag :
$ nova boot --image 1 --flavor 2 --key_name test --hint force_hosts=server2 my-first-server

