Hi Cole,<div><br></div><div>Thanks for the wiki link. It would be so useful if the ESX driver supported those commands. It seems like the ESX driver does not support most of the network or interface configuration.</div><div>
<br></div><div>Regarding the eth1 interface, I am not sure why the autostart.xml could affect bringing up eth1. Before I made changes to the autostart.xml or renamed the folder completely, the VMs have all interfaces installed: eth0, eth1, virbr0 (even though the virbr0 and its iptable rules seem to be a bit difficult to get rid of). After I renamed the autostart folder, I was able to remove the virbr0 interface and iptable rules, but the eth1 can't be brought up successfully as described in the opening post.</div>
<div><br></div><div>Thanks,</div><div>Jake <br><br><div class="gmail_quote">On Tue, Mar 8, 2011 at 6:31 AM, Cole Robinson <span dir="ltr"><<a href="mailto:crobinso@redhat.com">crobinso@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 03/07/2011 04:32 PM, Jake Xu wrote:<br>
> Hi all,<br>
><br>
> Recently, I have been using libvirt to create virtual machines on ESX<br>
> servers. It has been very well until to the point where I couldn't find any<br>
> way to disable/remove the virbr0 interface properly.<br>
><br>
> We use static configuration for VMs on ESX so we do not need to use virbr0<br>
> interface and we do not want libvirt to configure iptables as a result of<br>
> the newly created virbr0 interface.<br>
><br>
> I have tried to remove/rename the /etc/libvirt/qemu/networks/autostart.xml<br>
> file, and that prevents virbr0 being installed.<br>
><br>
<br>
</div>Here is how to properly remove steps virbr0 (the default virtual network):<br>
<br>
<a href="http://wiki.libvirt.org/page/FAQ#How_can_I_make_libvirt_stop_using_iptables.3F" target="_blank">http://wiki.libvirt.org/page/FAQ#How_can_I_make_libvirt_stop_using_iptables.3F</a><br>
<div class="im"><br>
> However, that also seems to prevent the second interface eth1 being<br>
> configured properly. After libvirt defines a VM, eth0 and eht1 are both<br>
> installed, but only eth0 is configured properly.<br>
><br>
> The eth1 does not appear in the /etc/sysconfig/network-script/ifcfg-xxx<br>
> file. It seems to me that the 'autostart.xml' file interrupts the<br>
> configuration of the eth1 interface.<br>
><br>
<br>
</div>Not sure why autostarting a virtual network would also bring up eth1, so<br>
no ideas there.<br>
<font color="#888888"><br>
- Cole<br>
</font></blockquote></div><br></div>