Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Virt-manager virbr0 doesn't stay connected

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
tmick
Posts: 53
Joined: 2012-05-27 21:31
Has thanked: 5 times

Virt-manager virbr0 doesn't stay connected

#1 Post by tmick »

okay I'm confused, I had a working connection. I was able to install Debian Testing as a net install so it worked once.
If I run

Code: Select all

ip addr show
it shows

Code: Select all

5: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:54:00:f4:b8:83 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
if I run

Code: Select all

sudo brctl show
bridge name	bridge id		STP enabled	interfaces
virbr0		8000.525400f4b883	yes		
My config in Virt-manager looks like
Image
Why is this not working?
I've found articles on how to create a bridged connection but they all say to modify
/etc/network/interfaces
But mine has nothing theirs does, it just contains

Code: Select all

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback
and interfaces.d is empty plus most of the information for firewalling and NAT is for IPtables and I'm using NFTables. So I'm not sure if it's a great idea to follow them because they might be outdated badly.
If it matters I'm on Debian Bookworm Kernel 5.18.0-2
Attachments
Screenshot from 2022-07-03 22-20-26.png
Screenshot from 2022-07-03 22-20-26.png (46.37 KiB) Viewed 1280 times

CwF
Global Moderator
Global Moderator
Posts: 2636
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: Virt-manager virbr0 doesn't stay connected

#2 Post by CwF »

iptables is required still in bookworm

use macvtap

tmick
Posts: 53
Joined: 2012-05-27 21:31
Has thanked: 5 times

Re: Virt-manager virbr0 doesn't stay connected

#3 Post by tmick »

okay well that's installed. I'm assuming via the GUI I can create a new connection. My choices are NAT, Routed, Open, Isolated, SR-IOV Pool, default is the VIRBR0

CwF
Global Moderator
Global Moderator
Posts: 2636
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: Virt-manager virbr0 doesn't stay connected

#4 Post by CwF »

I'm on a different thought...I don't use any virbr0.
Within the VM config I use macvtap on multiple host interfaces.
The VMM system wide config is not necessary. There should be the 'lo' static 127.0.0.1/8. The guest will all see each other. You only need virbr0 to make the host visible to guest, not guest net function or console control.

tmick
Posts: 53
Joined: 2012-05-27 21:31
Has thanked: 5 times

Re: Virt-manager virbr0 doesn't stay connected

#5 Post by tmick »

okay, if it's not there under macvtap just create it?

CwF
Global Moderator
Global Moderator
Posts: 2636
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: Virt-manager virbr0 doesn't stay connected

#6 Post by CwF »

tmick wrote: 2022-07-06 01:17 okay, if it's not there under macvtap just create it?
this happens while defining the vm, for the vm net interface, choose macvtap on an existing host device as source, using bridge for mode, virtio most the time for model.
The config pics you posted are for the host. I have only the 'lo' listing. I don't recall setting it up on anything. I only have note of removing virbr0 on one host while coincidentally looking at iptables. That's marked 1935, so Fall 2019! Other host examples also have lo.
I'd disable it at boot, set up a vm with a host tap, and go from there.

tmick
Posts: 53
Joined: 2012-05-27 21:31
Has thanked: 5 times

Re: Virt-manager virbr0 doesn't stay connected

#7 Post by tmick »

Aka: redo the vm correctly. Got it

Post Reply