lima-vm / lima-vm/lima

SSH host keys are regenerated each time a VM does a stop/start

Open
#678 6 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description

This is a (hopefully) unintended side effect of #273. Because the `instance-id` changes, `cloud-init` treats it like it's the first boot and does all the first boot things, like deleting the existing SSH host keys and regenerating new ones. I was able to work around this in an existing VM by creating a file in `/etc/cloud/cloud.cfg.d` with `ssh_deletekeys: false`, but this is not an ideal solution.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.