<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=6880&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] libvirt: issue with default route changing to vnet after starting VM]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=6880</link>
		<description><![CDATA[The most recent posts in [SOLVED] libvirt: issue with default route changing to vnet after starting VM.]]></description>
		<lastBuildDate>Wed, 09 Oct 2024 18:06:31 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] libvirt: issue with default route changing to vnet after starting VM]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52596#p52596</link>
			<description><![CDATA[<p>Thanks for sharing useful <ins>ifupdown</ins> page. I&#039;ve saved it, it may be useful in the future. Right now, this static homeserver which I am configuring, remains connected by one Ethernet cable 24/7/365, there is nothing to configure <img src="http://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> I hope it will stay that way.</p>]]></description>
			<author><![CDATA[dummy@example.com (VPigEePMUn7X)]]></author>
			<pubDate>Wed, 09 Oct 2024 18:06:31 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52596#p52596</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] libvirt: issue with default route changing to vnet after starting VM]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52588#p52588</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>VPigEePMUn7X wrote:</cite><blockquote><div><p>... uninstalled ConnMan and installed NetworkManager, the problem went away.</p></div></blockquote></div><p>I had quite a few issues with <span class="bbc">connman</span> and although they were (apparently) solved, I was not able to understand how I got it done.</p><p>Nor was I able to find out just <span class="bbu">wtf</span> <span class="bbc">connman</span> does, <em>when</em> it does it and most importantly, <em>why</em> it does it.</p><p>For the moment I am at peace with it but am looking to purge my system of it once I either get the old/reliable <span class="bbc">WiCD</span> installed or just go the way you have, with basic <span class="bbc">ifupdown</span> and <span class="bbc">/etc/network/interfaces</span> file.</p><p>Seeing that you are already there, here&#039;s a useful <a href="https://lecorbeausvault.wordpress.com/2021/09/09/debian-using-ifup-ifdown-for-network-connections/" rel="nofollow">page</a> you may want to have a look at.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 09 Oct 2024 11:31:41 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52588#p52588</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] libvirt: issue with default route changing to vnet after starting VM]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52580#p52580</link>
			<description><![CDATA[<p>Ok I figured it out.... it&#039;s ConnMan. It seems to be incompatible with libvirt. ConnMan is installed by default in Devuan. When I uninstalled ConnMan and installed NetworkManager, the problem went away. Then I uninstalled NetworkManager too and left the built-in, basic ifupdown and /etc/network/interfaces file. It still works. Something in ConnMan causes libvirt to go haywire and spawn all these vnet networks. It&#039;s not happening when ifupdown or NetworkManager manages it. That&#039;s how it looks like when the host has got internet working and virbr0 NAT for VMs is working too:</p><div class="codebox"><pre><code>$ ip route
default via 192.168.1.1 dev eth0 
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.182 
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (VPigEePMUn7X)]]></author>
			<pubDate>Wed, 09 Oct 2024 00:23:39 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52580#p52580</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] libvirt: issue with default route changing to vnet after starting VM]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52579#p52579</link>
			<description><![CDATA[<p>I am experiencing connectivity issues on my Devuan host machine when starting a VM using virt-manager.<br />The VM is configured to use default virbr0 NAT network. It is getting usual 192.168.122.x IP from DHCP.</p><p>Upon starting the VM, a new network interface (vnet1) is created in the host. The routing table changes on Devuan host, becoming the default route:<br /><span class="bbc">$ ip route<br />0.0.0.0 dev vnet2 scope link <br />default dev vnet2 scope link <br />default via 192.168.1.1 dev eth0<br />(...)</span><br />This change leads to loss of internet connectivity on the host, and it prevents internet from ever working in the guest as well, as it tries to route traffic through the vnet interface, which does not have a valid internet connection. In the example above, we can see vnet2 because I tried adding another NIC to the VM, every time result is the same, guest NIC is activated, vnet is spawned, changing default route for entire host.</p><p>I don&#039;t know why this happens, I did not experience it on Debian host from which I just migrated. </p><p>When all VMs are closed, or their NICs are removed, internet works normally in Devuan host:</p><p><span class="bbc">$ ip route<br />default via 192.168.1.1 dev eth0<br />(...)</span></p><p>Expected behaviour is of course virbr0 NAT network working normally without affecting the host&#039;s internet access.<br />Any insights appreciated!</p>]]></description>
			<author><![CDATA[dummy@example.com (VPigEePMUn7X)]]></author>
			<pubDate>Tue, 08 Oct 2024 23:34:34 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52579#p52579</guid>
		</item>
	</channel>
</rss>
