Lxd network config
From Jay's Cafe' Wiki
Revision as of 06:53, 21 April 2025 by Jayctheriot (talk | contribs)
configure a network external to lxd using bridge-utils and the following netplan config:
network:
ethernets:
eno1:
addresses:
- 192.168.0.31/17
gateway4: 192.168.0.1
nameservers:
addresses:
- 192.168.0.1
search:
- attlocal.net
eno2:
dhcp4: yes
dhcp6: no
bridges:
br0:
interfaces: [eno2]
parameters:
stp: true
forward-delay: 4
dhcp4: yes
dhcp6: no
renderer: networkd
version: 2
Configure network br0 internal to lxd (you may not be able to change anything).
lxc network show br0
name: br0
description: ""
type: bridge
managed: false
status: ""
config: {}
used_by:
Edit the default profile to match below.
lxc profile show default name: default description: Default LXD profile config:
security.secureboot: "false"devices:
eth0: name: eth0 nictype: bridged parent: br0 type: nic root: path: / pool: default type: diskused_by: