1)关闭虚机
# virsh  shutdown  vm1


2)编辑虚机配置文件
# virsh  edit  vm1 
<interface type='default'> 改为<interface type='bridge'>
      <mac address='52:54:00:50:58:7e'/>
      <source network='default'/>    改为<source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
保存退出

3)重新定义域

virsh define /etc/libvirt/qemu/centos6.9.xml


4)启动虚机
# virsh  start  vm1
---------------------
作者:submorino
来源:CSDN
原文:https://blog.csdn.net/submorino/article/details/44017275
版权声明:本文为博主原创文章,转载请附上博文链接!

相关文章:

  • 2021-08-26
  • 2021-04-24
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-07-26
  • 2021-07-23
猜你喜欢
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2021-10-28
  • 2021-12-16
  • 2021-06-03
  • 2021-09-05
相关资源
相似解决方案