我正在尝试使用XML启动VM。这个VM将有5个接口,每个接口连接到特定的桥上。这里的问题是这些接口的分配是随机的。我的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>接口的分配是随机的,e th6将连接到br3;eth7 -> br4 eth8 -> br2 eth9 -> br0.
有什么办法让它静止吗??
同时,是否有通过XML文件本身为这些eth接口分配IP地址??
发布于 2014-08-23 00:41:51
你不能真的从主人那里这样做。
一个糟糕的解决方法是用第一个界面启动客户,让它完全启动,然后关闭它。修改XML以添加第二个接口,启动,关闭.再说一遍。在大多数现代linux发行版上,这将按正确的顺序添加内容。
https://serverfault.com/questions/604142
复制相似问题