Well, since Debian Buster, is still in the testing stages, and not a stable release,
maybe something is not ready yet, but it looks like the package is available:
https://packages.debian.org/buster/lxc
Looking closer at the wiki:
https://wiki.debian.org/LXC#Installation,
I see this :
Missing configuration is sourced from /usr/lib/x86_64-linux-gnu/lxc/lxc-net which contains the default values which means your bridge will be given a subnet of 10.0.3.0. You can change these values if you want in the /etc/default/lxc-net file. There is an Ubuntu patch to /usr/lib/x86_64-linux-gnu/lxc/lxc-net (or /usr/lib/<architecture/lxc/lxc-net) available at its packaging on Github called 0001-Allocate-new-lxcbr0-subnet-at-startup-time.patch that will automatically configure /etc/default/lxc-net with a subnet that is available on your system; typically 10.0.3.0 would just be available. It would pick any free subnet in the range of 10.0.x.0 going up with 10.0.3.0 as the starting point. This is done on system boot in case /etc/default/lxc-net is missing. So in order to use it, you must then delete this file first.
For other purposes, see /SimpleBridge#Using_lxc-net for values you can add yourself.
The Wiki also has a link pointing to this:
https://wiki.debian.org/LXC/SimpleBridge#Using_lxc-net
This information is put in the file /etc/default/lxc-net.
This is also the default configuration for LXC-net as started with Debian Stretch in the default configuration (setup) without the patch applied to it (see the main page)
After creating this file with the required config you can simply start the service with:
systemctl start lxc-net after enabling it with systemctl enable lxc-net. This is covered in the introduction at the
Main Page. Commands:
Code: Select all
systemctl enable lxc-net
systemctl start lxc-net
This information is put in the file /etc/default/lxc-net
rsi »
Code: Select all
root@vmm:/etc/lxc# lxc-net
bash: lxc-net: command not found
"lxc-net" is a file, not a command, the correct command to start lxc, is :
But be sure you have enabled it first:
The manual should have more details
There also is a pretty good tutorial here:
https://angristan.xyz/setup-network-bridge-lxc-net/