无法直接从VM中删除vCPU, 但您可以通过关闭VM后再删除vCPU;

无法直接从VM中拔除vCPU, 但您可以通过关闭VM后再拔除vCPU;


  [root@test-kvm ~]# virsh list --all
   Id    Name                           State
  ----------------------------------------------------
   1     generic                        running
   10    centos7                        running
  [root@test-kvm ~]# virsh setvcpus centos7 1
  error: unsupported configuration: failed to find appropriate hotpluggable vcpus to reach the desired target vcpu count
  [root@test-kvm log]# virsh setvcpus --config centos7 1

  [root@test-kvm log]# virsh destroy centos7
  Domain centos7 destroyed

  [root@test-kvm log]# virsh start centos7
  Domain centos7 started

  [root@test-kvm log]# virsh dominfo centos7
  Id:             11
  Name:           centos7
  UUID:           6693189b-0a29-4225-b822-724001270bc0
  OS Type:        hvm
  State:          running
  CPU(s):         1
  CPU time:       3.3s
  Max memory:     4194304 KiB
  Used memory:    4194304 KiB
  Persistent:     yes
  Autostart:      disable
  Managed save:   no
  Security model: none
  Security DOI:   0


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值