Lxc
Images
sudo /snap/bin/lxc image list images:debian/10/cloud sudo /snap/bin/lxc image info images:debian/10/cloud
cloud-init profile
Creare un profilo che includa cloud-init
echo 'config: user.user-data: | #cloud-config package_upgrade: true packages: - lsof - git - sudo users: - default - name: francesco groups: sudo shell: /bin/bash sudo: ['ALL=(ALL) NOPASSWD:ALL'] ssh-authorized-keys: - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEovN6Lh2SrKCHkv[...] - ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYA[...]' > cloud-profile1.profile
ed applicarlo all'immagine:
lxc profile create cloud-profile1 cat cloud-profile1.profile | lxc profile edit cloud-profile1 lxc launch images:debian/10/cloud vm-debian10 -p cloud-profile1 -s pool1
(se in lxc storage list ho uno storage dal nome 'pool1').