I try to remove two different interfaces which was being created automatically by incus - one of them by me during the initialization of incus (incus admin init) and the other was made by incus itself, I’m not sure why or how: incusbr1 (the one that I made) and incusbr-0 (an interface made by incus automatically).
No machines (nor containers) exist on the system, I removed all of them with incus rm <machine_name>.
$ incus network delete incusbr-0
Error: The network is currently in use
$ incus network delete incusbr1
Error: The network is currently in use
Yet, Incus is showing:
$ incus network list
+-----------+----------+---------+------------------+------+--------------------------------------------+---------+---------+
| NAME | TYPE | MANAGED | IPV4 | IPV6 | DESCRIPTION | USED BY | STATE |
+-----------+----------+---------+------------------+------+--------------------------------------------+---------+---------+
| eth0 | physical | NO | | | | 0 | |
+-----------+----------+---------+------------------+------+--------------------------------------------+---------+---------+
| foo-incus | bridge | YES | 10.4.52.1/24 | | | 0 | CREATED |
+-----------+----------+---------+------------------+------+--------------------------------------------+---------+---------+
| incusbr1 | bridge | YES | 192.168.122.1/24 | none | | 1 | CREATED |
+-----------+----------+---------+------------------+------+--------------------------------------------+---------+---------+
| incusbr-0 | bridge | YES | 10.91.66.1/24 | | Network for user restricted project user-0 | 1 | CREATED |
+-----------+----------+---------+------------------+------+--------------------------------------------+---------+---------+
| lo | loopback | NO | | | | 0 | |
+-----------+----------+---------+------------------+------+--------------------------------------------+---------+---------+
But:
$ incus list --all-projects
+---------+------+-------+------+------+------+-----------+
| PROJECT | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+---------+------+-------+------+------+------+-----------+
I tried:
rm -rf /var/lib/incus/networks/incusbr*- Didn’t worked, Incus keeps making those folders again and again.
Didn’t tried to remove incus dnsmasq configuration: /etc/dnsmasq.d-available/incus, A file that is clearly responsible for the new automated incusbr-0, which wasn’t created by me:
root# cat /etc/dnsmasq.d-available/incus
# Tell any system-wide dnsmasq instance to make sure to bind to interfaces
# instead of listening on 0.0.0.0
# WARNING: changes to this file will be lost if incus is removed.
bind-interfaces
except-interface=incusbr0
So what to do from here? Should I re-install incus? should I surrender to those interfaces that won’t let go?