KVM调整cpu和内存
2017-08-23 00:03
741 查看
1、virsh edit centos73 (更改前要将virsh shutdown centos73 ) 找到“memory”和“vcpu”标签,将 <name>centos73</name> <uuid>2220a6d1-a36a-4fbb-8523-e078b3dfe795</uuid> <memory unit='KiB'>2097152</memory> <currentMemory unit='KiB'>2097152</currentMemory> <vcpu placement='static'>1</vcpu> 改为: <name>centos73</name> <uuid>2220a6d1-a36a-4fbb-8523-e078b3dfe795</uuid> <memory unit='KiB'>3145728</memory> <currentMemory unit='KiB'>3145728</currentMemory> <vcpu placement='static'>2</vcpu> virsh define /etc/libvirt/qemu/centos73.xml 重定义使配置生效 重启虚拟机 virsh start centos73 --console 查看原配置信息 [root@localhost kvm]# virsh dominfo centos734 Id: - Name: centos73 UUID: 2220a6d1-a36a-4fbb-8523-e078b3dfe795 OS Type: hvm State: shut off CPU(s): 1 Max memory: 2097152 KiB Used memory: 2097152 KiB Persistent: yes Autostart: disable Managed save: no Security model: none Security DOI: 0 调整后信息: [root@localhost kvm]# virsh dominfo centos73 Id: - Name: centos73 UUID: 2220a6d1-a36a-4fbb-8523-e078b3dfe795 OS Type: hvm State: shut off CPU(s): 2 Max memory: 3145728 KiB Used memory: 3145728 KiB Persistent: yes Autostart: disable Managed save: no Security model: none Security DOI: 0
相关文章推荐
- KVM - 调整cpu内存、网卡
- KVM之十一:调整cpu和内存
- CentOS7.1 KVM虚拟化之虚拟机内存、CPU调整
- 8 kvm调整CPU 内存 网卡
- CentOS7.1 KVM虚拟化之虚拟机内存、CPU调整(6)
- kvm 调整 cpu 和内存
- CentOS7.1 KVM虚拟化之虚拟机内存、CPU调整
- KVM 介绍(2):CPU 和内存虚拟化
- KVM 介绍(2):CPU 和内存虚拟化
- KVM 介绍(2):CPU 和内存虚拟化
- KVM(二) KVM应用:在线扩容,在线增大CPU核数,在线增大内存,KVM虚拟机创建还原快照
- KVM主机动态更改cpu数量和内存大小 推荐
- 使用virsh调整运行中的KVM虚拟机内存,CPU(centos6.x)
- kvm性能优化方案---cpu/内存/磁盘/网络
- kvm性能优化方案---cpu/内存/磁盘/网络
- kvm性能优化方案---cpu/内存/磁盘/网络
- Xen主机动态调整CPU和内存
- Libvirt细粒度调整lxc cpu和内存资源
- 调整cpu和内存查看子机配置
- KVM的基础功能(网络、内存、cpu、存储的配置)