Just recently started deploying a new MAAS and this time using the snap. However, i would like to use the MAAS node itself to run some VMs and in the past that was fine.
I just had to add the maas user ssh-key to be able to authenticate to virsh without password.
When installing MAAS as a snap the maas user is not created and therefore i cannot find a way to create and/or add the ssh-key for passwordless login.
I am running 2.9 atm.
I have added the ssh key of the host ubuntu user, because i use that account to access deployed machines.
To clarify. When installing MAAS from APT the installation creates a user named maas. I usually create an ssh-key and add that public key to the libvirt user’s authorized_keys. This would allow MAAS to start and stop KVM VMs by itself.
However with the snap instead I cannot find a way to get the same result.
@emil-jacero, thanks for this tip. looks like i need to go thru these tutorials and take a look. meanwhile, when you said, " I have added the ssh key of the host ubuntu user, because i use that account to access deployed machines…" – were you indicating that you have a workaround?