<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 03/09/2016 09:53 AM, Andrei
Perietanu wrote:<br>
</div>
<blockquote
cite="mid:CAE0VCzEwXOT0JP1+deOMad-wH4xqnKtBn=KT9jTfqky9BR_B3Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div>
<div class="gmail_signature">
<div dir="ltr"><br>
</div>
</div>
</div>
<div class="gmail_quote">On Wed, Mar 9, 2016 at 2:49 PM,
Andrea Bolognani <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:abologna@redhat.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:abologna@redhat.com">abologna@redhat.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class="">On Wed, 2016-03-09 at 14:15 +0000, Andrei
Perietanu wrote:<br>
> I am building a custom Linux image which includes
KVM and will be installed on multiple machines. By
default when<br>
> installing libvirt you get a 'default network'
which adds a 'vrbr0'.<br>
> I found several tutorials online about removing
this 'virbr0' but I would like to not have it in the
first place.<br>
><br>
> I am compiling libvirt from source so I would think
there is some compile time option or some configuration
file I<br>
> need to change for the default network not to be
included. <br>
</span></blockquote>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class="">
</span>It should be enough to run<br>
<br>
# virsh net-autostart --disable default<br>
<br>
or delete<br>
<br>
/etc/libvirt/qemu/networks/autostart/default.xml<br>
<br>
after installation. You can also run<br>
<br>
# virsh net-undefine default<br>
<br>
or delete<br>
<br>
/etc/libvirt/qemu/networks/default.xml<br>
<br>
if you are sure you're never going to need the<br>
default network.<br>
<br>
Cheers.<br>
<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote>
<div> Thanks for the answer, but this does not solve the
problem. As I said I am building an linux image which will
be installed on multiple machines. I don't want to have to
go to each one and manually disable the default network. I
would like to disable it in the image itself so that it's
not installed in the first place. </div>
<br>
</div>
</div>
</div>
</blockquote>
<br>
<font color="#888888">This is why libvirt has been split into many
smaller subpackages. Just setup your image to not install the
package called "libvirt-daemon-config-network" and the default
network (and thus virbr0) will never be created. (This assumes
that your distro uses the same packaging setup as
RHEL/Fedora/CentOS).<br>
<br>
(the "libvirt" package itself is just a meta-package that includes
a bunch of the other smaller packages).<br>
</font>
</body>
</html>