Is there any way to do this on incus?
editing the containers config so that
config:
cloud-init.network-config: |-
version: 2
ethernets:
eth0:
addresses:
- 69.41.138.102/27
gateway4: 69.41.138.97
nameservers:
addresses:
- 69.41.138.98
- 8.8.4.4
eth1:
addresses:
- 192.168.31.141/24
... other stuff ...
devices:
eth1:
name: eth1
nictype: bridged
parent: br1
type: nic
... other stuff ...
cloud-init clean --seed
followed by
incus config set NAME volatile.apply_template=create
doesn’t seem to work.
root@tk2022:~# incus list
±----------±--------±-----------------------------±-----±----------±----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
±----------±--------±-----------------------------±-----±----------±----------+
…
±----------±--------±-----------------------------±-----±----------±----------+
| ezra | RUNNING | 69.41.138.110 (eth0) | | CONTAINER | 2 |
| | | 69.41.138.102 (eth0) | | | |