查看虚拟机的网卡信息

virsh domiflist privi-server

添加临时网卡

virsh attach-interface privi-server --type bridge --source br0 

永久添加网卡命令

virsh attach-interface  privi-server --type bridge --source br0  --config

命令行增加的网卡只保存在内存中,重启就失效,所以需要保存到配置文件中

virsh dumpxml privi-server >/etc/libvirt/qemu/privi-server.xml
virsh define /etc/libvirt/qemu/privi-server.xml

删除网卡命令

virsh detach-interface privi-server --type bridge --mac  52:54:00:14:86:cf

相关文章:

  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2021-11-29
  • 2021-09-19
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
相关资源
相似解决方案