virsh XML interface allocation
Posted
by
Kaushik Koneru
on Server Fault
See other posts from Server Fault
or by Kaushik Koneru
Published on 2014-06-10T17:09:49Z
Indexed on
2014/08/23
4:22 UTC
Read the original article
Hit count: 573
I am trying to launch VM using a XML. This VM will be having 5 interfaces each connected to certain bridge. Issue here is allocation of these interfaces is random. My XML
<interface type='bridge'>
<mac address='52:54:00:9f:14:b3'/>
<source bridge='br0'/>
<target dev='vnet1'/>
<model type='e1000'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:9f:14:b4'/>
<source bridge='br1'/>
<target dev='vnet2'/>
<model type='e1000'/>
<alias name='net1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x10' function='0x0'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:9f:14:b5'/>
<source bridge='br2'/>
<target dev='vnet2'/>
<model type='e1000'/>
<alias name='net3'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x12' function='0x0'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:9f:14:c4'/>
<source bridge='br3'/>
<target dev='vnet3'/>
<model type='e1000'/>
<alias name='net4'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x18' function='0x0'/>
</interface>
Allocation of interfaces are random mean e th6 will be connected to br3 ; eth7 --> br4 eth8 --> br2 eth9 --> br0.
Is there any way to make it static??
At the same time is there anyway of assigning IP Address to these eth interfaces through XML file itself??
© Server Fault or respective owner