- 删除虚拟设备
virsh net-destroy default
virsh net-undefine default
service libvirt-bin restart
- 关闭虚拟机
virsh destroy xxxx
- 恢复虚拟设备
find / -name "default.xml"
virsh net-define /usr/share/libvirt/networks/default.xml
virsh net-start default
- 重启虚拟机
virsh start xxxx
参考:
https://blog.csdn.net/csfreebird/article/details/8967653
https://blog.csdn.net/qq_21398167/article/details/47777113
https://blog.csdn.net/hzhsan/article/details/44098537
https://www.chenyudong.com/archives/libvirt-kvm-bridge-network.html