<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)