无法直接从VM中删除vCPU, 但您可以通过关闭VM后再删除vCPU;
发布日期:2021-09-16 04:37:04 浏览次数:2 分类:技术文章

本文共 1016 字,大约阅读时间需要 3 分钟。

无法直接从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

转载地址:https://blog.csdn.net/wllabs/article/details/77948049 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:/var/run/libvirt/virtlogd-sock': No such file or directory
下一篇:bool + str

发表评论

最新留言

逛到本站,mark一下
[***.202.152.39]2024年04月09日 08时06分55秒