Virbr0 device is always down
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-boxes (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
libvirt (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 22.04.1
libvirtd create device without interfaces, so I couldn't bring it up and it does not work
bridge name bridge id STP enabled interfaces
virbr0 8000.525400784f63 no
On fedora:
bridge name bridge id STP enabled interfaces
virbr0 8000.525400053a90 yes tap0
Also if I run
virt-install --connect=
ERROR internal error: /usr/lib/
stderr=failed to create tun device: Operation not permitted
Also affects Gnome-boxes, it cannot work with bridge mode
Why Ubuntu doesn't have virtnetworkd?
https:/
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: libvirt-daemon 8.0.0-1ubuntu7.3
ProcVersionSign
Uname: Linux 5.15.0-53-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Sat Nov 19 02:02:32 2022
InstallationDate: Installed on 2022-11-18 (0 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=ru_RU.UTF-8
SHELL=/bin/bash
SourcePackage: libvirt
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
modified.
mtime.conffile.
Hi Ant
Q: Why Ubuntu doesn't have virtnetworkd?
A: Going modular is an optional configuration step and rather disruptive to the integration of libvirt into the system. There is continuous work to make this smoother, but it wasn't sufficient yet - therefore it isn't configured and build that way yet. It will be some day, but for now virtnetworkd and any virt*d are not missing, they are just part of the old style monolithic libvirtd.
Q: libvirtd create device without interfaces, so I couldn't bring it up and it does not work
A: On my 22.04.1 things work just fine, but maybe it is just a lack of detail in your request.
Your output likes like that of "brctl show" and an empty bridge (actually a bridge in nat mode to be more specific). Looks like this:
$ brctl show
bridge name bridge id STP enabled interfaces
virbr0 8000.525400d7d5df yes
Configured (the default) via: default< /name> ebd0dd56- 10b5-45e9- abfe-bd5dc15b20 e9</uuid> '52:54: 00:d7:d5: df'/> '192.168. 123.1' netmask= '255.255. 255.0'> 192.168. 123.2' end='192. 168.123. 254'/>
$ virsh net-dumpxml default
<network>
<name>
<uuid>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address=
<ip address=
<dhcp>
<range start='
</dhcp>
</ip>
</network>
So the bridge has a host network interface (virbr0 itself) but no associated interfaces right now. If I attach guests then it gets interfaces attached like veth03fabd4e.
All seems to work fine, but I'm sure you have a more specific need and configuration, yet missed to outline what and how you do. That is the default of "install libvirt, and it works", anything you configure/change in your setup would be great to be explained here.
-> Setting to incomplete until we understand the issue.
Note:
You didn't explain how you instruct libvirt to create your bridges, which is important to try to recreate your problem and to try to help further.
General instructions how to do bridges via netplan and use them in libvirt are at [1], have you done it like that?
[1]: https:/ /netplan. io/examples# configuring- network- bridges