<br><br><div class="gmail_quote">On Tue, Mar 8, 2011 at 11:20 AM, Matthias Bolte <span dir="ltr"><<a href="mailto:matthias.bolte@googlemail.com">matthias.bolte@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/3/8 Jake Xu <<a href="mailto:jake@demonwaremail.net">jake@demonwaremail.net</a>>:<br>
<div class="im">> Hi Cole,<br>
> Thanks for the wiki link. It would be so useful if the ESX driver supported<br>
> those commands. It seems like the ESX driver does not support most of the<br>
> network or interface configuration.<br>
<br>
</div>What do you mean by " those commands"?<br>
<br>
The problem with implementing ESX networking support in libvirt is<br>
that ESX's and libvirt's network model don't match directly and it's<br>
not entirely clear how two map those two in a useful way.<br>
<br>
Can you be more specific about what you need in terms of network management?<br>
<div class="im"><br></div></blockquote><div>Sorry if I did not make it clear. For commands, I meant the net-list, net-destroy, etc commands in virsh.</div><div><br></div><div>I am actually using the libvirt Python-bindings to write scripts which automate the VM creation process. All I need in terms of network management is that I want it to have two interfaces eth0 and eth1 with static ip addresses(gateway, subnet, etc), so I don't need any other extra configuration such as virtbr0 provided by libvirt/libvirtd daemon. Is there any way to prevent libvirtd daemon being installed on the guest VM?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
> Regarding the eth1 interface, I am not sure why the autostart.xml could<br>
> affect bringing up eth1. Before I made changes to the autostart.xml or<br>
> renamed the folder completely, the VMs have all interfaces installed: eth0,<br>
> eth1, virbr0 (even though the virbr0 and its iptable rules seem to be a bit<br>
> difficult to get rid of). After I renamed the autostart folder, I was able<br>
> to remove the virbr0 interface and iptable rules, but the eth1 can't be<br>
> brought up successfully as described in the opening post.<br>
> Thanks,<br>
> Jake<br>
<br>
</div>Are you installing libvirt inside the VMs and running libvirtd? Why<br>
are you doing that?<br>
<br>
Matthias<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div>No. I am running libvirt with its Python-bindings on a Ubuntu PC, and remotely creating VMs on ESX server. Since I am creating VMs on ESX server, I don't really need libvirtd. It would be nice if I can disable libvirtd before it's being installed on VMs. </div>
<div><br></div><div>Thanks so much for your help,</div><div><br></div><div>Jake</div><div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div class="h5">
> On Tue, Mar 8, 2011 at 6:31 AM, Cole Robinson <<a href="mailto:crobinso@redhat.com">crobinso@redhat.com</a>> wrote:<br>
>><br>
>> 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<br>
>> > 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<br>
>> > virbr0<br>
>> > interface and we do not want libvirt to configure iptables as a result<br>
>> > of<br>
>> > the newly created virbr0 interface.<br>
>> ><br>
>> > I have tried to remove/rename the<br>
>> > /etc/libvirt/qemu/networks/autostart.xml<br>
>> > file, and that prevents virbr0 being installed.<br>
>> ><br>
>><br>
>> Here is how to properly remove steps virbr0 (the default virtual network):<br>
>><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>
>><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>
>> Not sure why autostarting a virtual network would also bring up eth1, so<br>
>> no ideas there.<br>
>><br>
>> - Cole<br>
><br>
><br>
</div></div>> --<br>
> libvir-list mailing list<br>
> <a href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/libvir-list" target="_blank">https://www.redhat.com/mailman/listinfo/libvir-list</a><br>
><br>
</blockquote></div><br>