一、热添加网卡
1、基本命令
[root@centoszhu ~]# virsh 进入virsh命令行模式 virsh # attach-interface web01 --type bridge --source br0 添加一块桥接网卡
virsh # attach-interface web01 --type bridge --source br0 --model virtio 添加一块网卡,指定模式virtio网卡更快
virsh # attach-interface web01 --type bridge --source br0 --model virtio --config 写进配置文件,永久生效
virsh # domiflist web01 查看虚拟机有多少块网卡
virsh # domblklist web01 查看虚拟机有多少硬盘
virsh # detach-interface web01 --type bridge --mac 52:54:00:8f:96:8f 分离网卡
原文:https://www.cnblogs.com/aqicheng/p/13047632.html