Openstack 虛擬機 CPU類型不匹配致使虛擬機建立啓動慢的問題

Openstack以qcow2爲鏡像建立實例,實例的CPU類型自動分配爲EYPC,
可是查看計算節點CPU類型爲Inter,
所以在nova配置中設置計算節點的cpu_modedom

[libvirt]
virt_type=kvm
cpu_mode=host-model

如下引入Openstack官網的配置信息描述:code

virt_type = kvm    

(StrOpt) Libvirt domain type 
(valid options are: kvm, lxc, qemu, uml, xen and parallels)
cpu_mode = None    

(StrOpt) Set to "host-model" to clone the host CPU feature flags;
to "host-passthrough" to use the host CPU model exactly; 
to "custom" to use a named CPU model; 
to "none" to not set any CPU model. 
If virt_type="kvm|qemu", it will default to "host-model", 
otherwise it will default to "none"
cpu_model = None

(StrOpt) Set to a named libvirt CPU model 
(see names listed in /usr/share/libvirt/cpu_map.xml). 
Only has effect if cpu_mode="custom" and virt_type="kvm|qemu"
相關文章
相關標籤/搜索