ssh keys are not mounted through boot2docker VM disk image #3167
Labels
area/guest-vm
General configuration issues with the minikube guest VM
co/sshd
ssh related issues
kind/bug
Categorizes issue or PR as related to a bug.
Is this a BUG REPORT:
We have intermittent ssh connectivity issues affecting any future machine provisioning operations. This happens for us primarily on hyperv and Windows, but I believe it could be reproduced on other systems, as I think the systemd initialization order is broken.
Environment:
Minikube version: 0.28.2
What happened:
I seems that the automount script can be run before the device is mounted by the virtual machine manager. Although I cannot explain jounralctl timestamps differences (leap from 17:00 to 21:00) (which could have an impact), you can see that the
minikube-automount
happens before the devicesda
(.vhd mount) is mounted.In a minikube VM I ran journalctl. Notice the
UNPARTITIONED_HD
variable which does not contain the sda device, as it is not available at that time.Here is the relevant device mount operations. Notice the timestamps:
After sshing into the VM, the device is there (but too late).
What you expected to happen:
I expect that the automount script be run after the
/dev/sda
device (in my case) is available.How to reproduce it (as minimally and precisely as possible):
As this is a kind of race, it is reproductible only about 30-40%, but a simple:
Anything else do we need to know:
Not very knowledgeable on systemd, but I will try adding
RequiresMountsFor=/dev
to the [Unit] clause to see if this fixes the problem.The text was updated successfully, but these errors were encountered: