<interface type='bridge'>
<mac address='52:54:00:77:56:88'/>
<source bridge='br0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:77:56:8a'/>
<source bridge='br1'/>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
"/etc/libvirt/qemu/vm2.xml" 75L, 2562C written
[root@ophost p_w_picpaths]# virsh define /etc/libvirt/qemu/ctrixcacti.xml
错误:从 /etc/libvirt/qemu/ctrixcacti.xml 定义域失败
错误:XML error: Attempted double use of PCI Address '0:0:3.0'
粗体为新增的网卡,报错的原因是新增网卡2和网卡1的 slot冲突,将新网卡的0x03改为0x05即可
#virsh define /etc/libvirt/qemu/vm2.xml
定义域 ctrixcacti(从 /etc/libvirt/qemu/vm2.xml)