I'm building a Vagrant Windows 10 box (using libvirt, based on the workflow documented at here: https://fishilico.github.io/generic-config/windows/vagrant.html). After the VM is ready, I run:
vagrant package default --output win10-libvirt.box
and then I take the "box" file to another machine and import it using vagrant add
.
The thing is, as part of the setup I add a key to the user's ~/.ssh/authorized_keys
file, but when I start the new box on the second machine - that file is gone. I also tried to add a key to the "administrators' keys" file supported on Microsoft Windows OpenSSH port at C:\ProgramData\ssh\administrators_authorized_keys
- but that is also gone when I start the new box - actually the entire C:\ProgramData\ssh
folder is gone.
Does vagrant package
cleans the machine configuration folders, and if so - can this be disabled somehow? I couldn't find documentation about this.