zoukankan      html  css  js  c++  java
  • 解决Openstack windows创建虚拟机只显示两2个CPU

    解决Openstack windows创建虚拟机只显示两2个CPU

    先创建一个虚拟机模板,然后再使用下面的命令;然后再dashboard中更新元数据。再用这个模板去创建新的虚拟机就可以了。

    设置vm的cpu toplogy。 max limit类型的设置也可以通过image 属性来设置.
    
    $ nova flavor-key FLAVOR-NAME set hw:cpu_sockets=FLAVOR-SOCKETS
    $ nova flavor-key FLAVOR-NAME set hw:cpu_cores=FLAVOR-CORES
    $ nova flavor-key FLAVOR-NAME set hw:cpu_threads=FLAVOR-THREADS
    $ nova flavor-key FLAVOR-NAME set hw:cpu_max_sockets=FLAVOR-SOCKETS
    $ nova flavor-key FLAVOR-NAME set hw:cpu_max_cores=FLAVOR-CORES
    $ nova flavor-key FLAVOR-NAME set hw:cpu_max_threads=FLAVOR-THREADS
     
    
    Where:
    
    FLAVOR-SOCKETS—(Integer) The number of sockets for the guest VM. By this is set to the number of vCPUs requested.
    FLAVOR-CORES—(Integer) The number of cores per socket for the guest VM. By this is set to 1.
    FLAVOR-THREADS—(Integer) The number of threads per core for the guest VM. By this is set to 1.
    

    或者是使用在线扩容的方式

  • 相关阅读:
    自主学习之RxSwift(一) -----Driver
    RxSwift:ReactiveX for Swift 翻译
    C简单实现动态顺序表
    C简单实现双向链表
    C实现单链表
    享受这一点点的平淡
    C文件读写
    大神都在看的RxSwift 的完全入坑手册
    字符串常量存在何处
    认识自己
  • 原文地址:https://www.cnblogs.com/gshelldon/p/14837726.html
Copyright © 2011-2022 走看看