virsh attach-interface 管理添加网卡配置
临时添加网卡:##virsh attach-interface SAAS001 --type bridge--source br0
# virsh attach-interface ECCTL01--type bridge --source br0
#virsh domiflist ECCTL01
# virsh dumpxml ECCTL01 > ECCTL01.xml 重定向到xml文件中# virsh dumpxml EC01 > EC01.xml
重启生效。
# virshdumpxml EC01 >/etc/libvirt/qemu/EC01.xml
添加网卡:
virsh attach-interface rhel-server-7.9 --type bridge --source br1 --config
virsh detach-interface CentOS6.5 --type bridge --mac 52:54:00:51:1f:f3 --config永久删除网卡
virsh attach-interface rhel-server-7.9 --type bridge --source br1 --modelvirtio 添加网卡:
永久添加网卡$ virsh attach-interface openluer_x86 --type bridge--source br0 --config
Interface attached successfully
页:
[1]