kvm升级配置
1.1查看虚拟机配置
[root@localhost ~]# virsh list
Id Name State
----------------------------------------------------
5 cxf-8.16-node1 running
6 cxf-8.16-node2 running
[root@localhost ~]# virsh dominfo cxf-8.16-node1
Id: 5
Name: cxf-8.16-node1
UUID: 15b26cae-aa68-4868-b4d9-b6000de7be3e
OS Type: hvm
State: running
CPU(s): 8
CPU time: 1890407.1s
Max memory: 16777216 KiB
Used memory: 16777216 KiB
Persistent: yes
Autostart: disable
Managed save: no
Security model: none
Security DOI: 0
[root@localhost ~]# virsh shutdown cxf-8.16-node1 #先进行关机操作在修改配置
1.2 修改配置
[root@localhost ~]# virsh edit cxf-8.16-node1
<domain type='kvm'>
<name>cxf-8.16-node1</name>
<uuid>15b26cae-aa68-4868-b4d9-b6000de7be3e</uuid>
<memory unit='KiB'>16777216</memory> #修改此处内存容量
<currentMemory unit='KiB'>16777216</currentMemory> #同上
<vcpu placement='static'>8</vcpu> #修改虚拟机cpu个数
<os>
<type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type>
<boot dev='hd'/>
1.3启动虚拟机
[root@localhost ~]# virsh start cxf-8.16-node1
#虚拟机看机之后执行
# virsh dominfo cxf-8.16-node1 是否更改成自己配置的设置
完结撒花