Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can libvirt networks shut down when libvirtd does?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5021
Location: Dark side of the mood

PostPosted: Tue Sep 10, 2019 10:13 am    Post subject: Can libvirt networks shut down when libvirtd does? Reply with quote

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
View user's profile Send private message
alamahant
Tux's lil' helper
Tux's lil' helper


Joined: 23 Mar 2019
Posts: 95

PostPosted: Tue Sep 10, 2019 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5021
Location: Dark side of the mood

PostPosted: Thu Sep 12, 2019 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum