[CentOS7]删除virbr0
- 一键命令
ifconfig virbr0 down
brctl delbr virbr0
nmcli device delete virbr0-nic
systemctl mask libvirtd.service
systemctl disable libvirtd.service
-
图形化安装出现virbr0,我们需要将其删除
-
删除链接
[root@rac2 ~]# ifconfig virbr0 down
[root@rac2 ~]# brctl delbr virbr0
- 禁用libvirtd服务
[root@rac2 ~]# systemctl disable libvirtd.service
Removed symlink /etc/systemd/system/multi-user.target.wants/libvirtd.service.
Removed symlink /etc/systemd/system/sockets.target.wants/virtlogd.socket.
Removed symlink /etc/systemd/system/sockets.target.wants/virtlockd.socket.
[root@rac2 ~]# systemctl mask libvirtd.service
Created symlink from /etc/systemd/system/libvirtd.service to /dev/null.