View previous topic :: View next topic |
Author |
Message |
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Tue Sep 10, 2019 10:13 am Post subject: Can libvirt networks shut down when libvirtd does? |
|
|
Hi all.
I've been experiencing this [very] slight inconvenience for quite some time now: I have to manually shut down all of the networks defined with libvirt otherwise they leave unwanted links and routes when the service is shut down.
Is there a way to make all of the virtual networks shut down with libvirtd? I know they can be marked "auto-start" but I'd like an "auto-stop" feature if there's one.
I quickly checked files under /etc/libvirt but found nothing relevant. Thanks in advance for any hint and/or suggestion. _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Tue Sep 10, 2019 6:25 pm Post subject: |
|
|
If you keep all you non-kvm iptables rules in a seperate file and flushed all the rules and reloaded only the non-kvm ones would not that clear the kvm bridging?
would virsh net-destroy stop all the running networks? |
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Thu Sep 12, 2019 11:51 am Post subject: |
|
|
alamahant wrote: | If you keep all you non-kvm iptables rules in a seperate file and flushed all the rules and reloaded only the non-kvm ones would not that clear the kvm bridging? |
I have no clue what you're talking about ...
alamahant wrote: | would virsh net-destroy stop all the running networks? |
From what I read, net-destroy does the opposite of net-start, so, yes, that seems to stop identified networks. What's your idea behind that? I'd like an automated of shutting down those networks. _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
|