Hey Joseph,
We used "bootstrap manual/ubuntu@<ip>"
So this is basically what we did:
Create a new project infrastructure
$ lxc project create infrastructure --config features.images=false --config features.networks=false --config features.storage.volumes=false
Switch to infrastructure project
$ lxc project switch infrastructure
Add root disk and network to the default profile on project infrastructure
$ lxc profile device add default root disk path=/ pool=default
$ lxc profile device add default eth0 nic name=eth0 nictype=bridged parent=br0
Set limits for profile default
$ lxc profile set default limits.cpu=8
$ lxc profile set default limits.memory=32GB
Launch containers on each node
$ lxc launch ubuntu:jammy jctrl-<id>
Machines included in controller ha
dwellir9:jctrl-0
192.168.110.69/22
dwellir11:jctrl-1
192.168.110.68/22
dwellir15:jctrl-2
192.168.110.67/22
Add your SSH-keys to the containers
$ lxc exec <container-name> -- sh -c "echo '<ssh-key>' /home/ubuntu/.ssh/authorized_keys"
Since confined snaps aren't allowed to read from /tmp/ you need to create a tmp folder inside your home directory and point ssh-agent to use it
$ mkdir ~/tmp
$ eval `ssh-agent -a $HOME/tmp/ssh-agent`
Hey Joseph,
We used "bootstrap manual/ubuntu@<ip>"
So this is basically what we did: images= false --config features. networks= false --config features. storage. volumes= false
Create a new project infrastructure
$ lxc project create infrastructure --config features.
Switch to infrastructure project
$ lxc project switch infrastructure
Add root disk and network to the default profile on project infrastructure
$ lxc profile device add default root disk path=/ pool=default
$ lxc profile device add default eth0 nic name=eth0 nictype=bridged parent=br0
Set limits for profile default
$ lxc profile set default limits.cpu=8
$ lxc profile set default limits.memory=32GB
Launch containers on each node
$ lxc launch ubuntu:jammy jctrl-<id>
Machines included in controller ha
dwellir9:jctrl-0
192.168.110.69/22
dwellir11:jctrl-1
192.168.110.68/22
dwellir15:jctrl-2
192.168.110.67/22
Add your SSH-keys to the containers .ssh/authorized _keys"
$ lxc exec <container-name> -- sh -c "echo '<ssh-key>' /home/ubuntu/
Since confined snaps aren't allowed to read from /tmp/ you need to create a tmp folder inside your home directory and point ssh-agent to use it ssh-agent`
$ mkdir ~/tmp
$ eval `ssh-agent -a $HOME/tmp/
Bootstrap controller ubuntu@ <container- ip> <controller-name> --config identity-url="https:/ /api.jujucharms .com/identity"
$ juju bootstrap manual/
Add machine from other lxd-hosts 192.168. 110.68 192.168. 110.67
$ juju add-machine ssh:ubuntu@
$ juju add-machine ssh:ubuntu@
Enable HA in juju
$ juju enable-ha -n 3 --to 1,2