- Nova 支持 server-group, 指定server-group的policy,如 affinity/anti-affinity
- 创建虚机时指定 server-group,scheduler 利用server-group的policy filter 目标host
如下所示:
1 nova server-group-create anti-group01 anti-affinity2 3 nova boot --flavor m1.tiny --image cirros --nic net-name=develop01 instance-001 --hint group=c54e18fd-82df-4c6b-84ea-841dbbdb59bc
注:
Scheduler 虚机到指定的Host
1.nova hypervisor-list
2.nova boot --image <uuid> --flavor m1.tiny --key_name test --availability-zone nova:server2