[Ovirt-devel] [PATCH] Fix so libvirt does not start default network interface on developer/bundled
Alan Pevec
apevec at redhat.com
Mon May 26 13:16:41 UTC 2008
Daniel P. Berrange wrote:
> On Fri, May 23, 2008 at 02:15:43PM -0400, Perry Myers wrote:
>> Libvirt by default tries to create a private network for running guests.
>> Because on the bundled/developer install we use dnsmasq ourselves, this
>> conflicts with the default libvirt network. Solution is that the appliance
>> must always be configured (via kickstart) to not start libvirtd. Then
>> when the ovirt install script runs it removes default.xml and starts
>> libvirt up.
>
>
>> +# if we are developer/bundled install, remove default network
>> +# so dnsmasq from libvirt doesn't interfere with the dev/bundled
>> +# dnsmasq
>> +if [[ "$PROD_INST" == "false" ]]; then
>> + rm -fv /etc/libvirt/qemu/networks/autostart/default.xml
>> + rm -fv /etc/libvirt/qemu/networks/default.xml
>> +fi
>
> No, no, no and no. To disable it use virsh
>
> virsh destroy default
> virsh autostart --disable default
I'll commit it with:
+ virsh net-destroy default
+ virsh net-undefine default
net-undefine removes autostart link too
More information about the ovirt-devel
mailing list