Tuning CPU and memory
Virsh Edit WYP1
Modified: Memory Value and 1CPU
<memory unit= ' KiB ' >524288</memory>
<currentmemory unit= ' KiB ' >524288</currentMemory>
<vcpu placement= ' static ' >1</vcpu>
is: Memory value and 2CPU
<memory unit= ' KiB ' >624288</memory>
<currentmemory unit= ' KiB ' >624288</currentMemory>
<vcpu placement= ' static ' >2</vcpu>
Restart virtual machine: The virtual machine cannot be restarted directly, it must be destroy to reload the virtual machine configuration file.
Virsh Destroy WYP1
Virsh Start WYP1
Then check to see if the modification was successful.
free-m
Cat/proc/cpuinfo
Do not shut down temporary virtual machine Add network card
Virsh Dominfo WYP1 #列出指定虚拟机的网卡设备列表
Virsh attach-interface wyp1--type bridge--source br0 #命令行增加一块网卡, type bridging
Executive Ifconfig-a
Found a more network card eth1 # online Add network card, restart failure.
If you want to permanently increase the network card, you need to edit the configuration file, find the interface type line, copy and paste a row.
then modify the MAC address to remove lines of address type to prevent collisions. Exit save. Restart the virtual machine.
2.5-Adjust CPU memory, NIC