SHAD0WRUNNER at gmx.de
2016-Mar-03 22:19 UTC
issue with tinc and libvirt / Network is already in use by interface tun0
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello,<br/> <br/> 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<br/> ip within 192.168.1.0/24. I want to access the guests in this<br/> libvirt network with tinc from the internet via the host.<br/> <br/> <br/> When I configure tinc the host config looks like this:<br/> <br/> Address = XXX.XXX.XXX.XX<br/> Subnet = 192.168.1.0/24<br/> Subnet = 192.168.2.10/32<br/> <br/> and tinc.conf like this<br/> <br/> Name = XXX<br/> AddressFamily = ipv4<br/> Interface = tun0<br/> ConnectTo = XXX2<br/> <br/> Furthor more I start my vpn autmaticaly via nets.boot .<br/> <br/> Every thing works fine until I reboot the host.<br/> <br/> Then I get the following error from<br/> libvirt "Network is already in use by interface tun0" and libvirt does not start<br/> the network.<br/> <br/> I can get all things up and running when I stop tinc,<br/> start the libvirt network and after this start once again tinc.<br/> <br/> Is there a tinc option I can configure to prevent this issue?<br/> <br/> regards<br/> dieter</div> <div><br/> </div></div></body></html>
Guus Sliepen
2016-Mar-04 08:47 UTC
issue with tinc and libvirt / Network is already in use by interface tun0
On Thu, Mar 03, 2016 at 11:19:10PM +0100, SHAD0WRUNNER at gmx.de wrote:> 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. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20160304/b39ea789/attachment.sig>
shad0wrunner at gmx.de
2016-Mar-04 18:46 UTC
AW: issue with tinc and libvirt / Network is already in use by interface tun0
>> 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
Possibly Parallel Threads
- AW: AW: issue with tinc and libvirt / Network is already in use by interface tun0
- AW: issue with tinc and libvirt / Network is already in use by interface tun0
- AW: issue with tinc and libvirt / Network is already in use by interface tun0
- AW: issue with tinc and libvirt / Network is already in use by interface tun0
- issue with tinc and libvirt / Network is already in use by interface tun0