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
版权声明:本文为博主原创文章,转载请附上博文链接!