AW: issue with tinc and libvirt / Network is already in use by interface tun0

shad0wrunner at gmx.de shad0wrunner at gmx.de
Fri Mar 4 19:46:24 CET 2016


>> I have tinc up and running on a kvm/libvirt host. libvirt creates a 
>> bridge and assigns ip to this bridge, for instance 192.168.1.1. All 
>> guests have an ip within 192.168.1.0/24. I want to access the guests 
>> in this libvirt network with tinc from the internet via the host.
>[...]
>> and tinc.conf like this
>[...]
>> Interface = tun0
>> 
>> Every thing works fine until I reboot the host.
>> 
>> Then I get the following error from libvirt "Network is already in 
>> use by interface tun0" and libvirt does not start the network.

> If libvirt wants to use "tun0" as an interface, then just have tinc 
> use a different name for its interface. Change "Interface = tun0" to 
> something else, or you can leave it out entirely, in
 > which case tinc names its interface the same as the netname you specify
with the -n option.

Nice hint, but it's not this simple. Libvirt complains about the network not
the interface. The interfaces have different names already.
It seems like tinc bind the subnet on startup and libvirt doesn't like it

Regards
Dieter





More information about the tinc mailing list