虚机配置文件路径:/etc/libvirt/qemu
相关操作指令:
https://www.cnblogs.com/datiangou/p/10407811.html#top
https://blog.csdn.net/fanyun_01/article/details/51083585
virsh list --all
查看虚拟机原有网卡信息:
virsh domiflist 192.168.11.101_centos
修改虚拟机的配置文件后需要如下操作:
virsh undefine 192.168.11.101_centos(此操作会删除192.168.11.101_centos.xml,需提前备份)
virsh define 192.168.11.101_centos.xml
查看虚拟机内存:
virsh dommemstat 192.168.11.101_centos
显示cpu数量:
virsh vcpuinfo 192.168.11.101_centos