Skip to content

Conversation

@larsewi
Copy link
Contributor

@larsewi larsewi commented Dec 10, 2025

SSH key is now generated if needed with ssh-keygen when spawning a VM using the Vagrant provider.

Ticket: ENT-13485
Signed-off-by: Lars Erik Wik lars.erik.wik@northern.tech

Copy link
Contributor

@craigcomstock craigcomstock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will definitely work. It smells a bit funny somehow like $HOME/.ssh/id_rsa is a bit precious and personal so maybe should just fail fast instead of making one but 🤷

SSH key is now generated if needed with `ssh-keygen` when spawning a VM
using the Vagrant provider.

Ticket: ENT-13485
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi
Copy link
Contributor Author

larsewi commented Dec 10, 2025

$ python3 cf_remote spawn --platform bento/ubuntu-24.04 --provider vagrant --count 1 --name test --role hub
Spawning VMs...
[ERROR] SSH key not found at /home/larsewi/.ssh/id_rsa.pub. Please create one with: ssh-keygen -t rsa -b 4096


Error: vagrant exited with error code 1 - Make sure you have a working vagrant setup, install VirtualBox if you haven't already: https://www.virtualbox.org/wiki/Downloads

@larsewi larsewi merged commit f69a26d into cfengine:master Dec 10, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants