project-everest / everest-ci

CI scripts for project everest
3 stars 8 forks source link

We have no way to start the linux agents automatically after a reboot #79

Closed darrenge closed 6 years ago

darrenge commented 7 years ago

It looks like windows agents start nice and the linux container is set to start on reboot, but the Docker Service might not be configured properly. The machine rebooted and Tahina said the Docker Service was not started. There is a setting to "Start Docker when you log in" but we want it to be started when machine is rebooted without someone logging in.

irinasp commented 7 years ago

Modified registry to fix this issue:

regedit is updated on the build machine. I am waiting for the time when no runs are going and will reboot build machine

irinasp commented 7 years ago

Modified registry didn't help. Corporate policy is enforced on reboot and AutoAdminLogon Value is changed back to 0. Planning to apply following workaround: This disables the Exchange ActiveSync (EAS) security policies - a.k.a. the "Enforce these policies prompt" you see • Login with a local admin account • Delete any domain accounts on the system which trigger the EAS policies • In Regedit delete: • HKLM\SYSTEM\CurrentControlSet\Control\EAS • You can use this command: reg.exe delete "HKLM\SYSTEM\CurrentControlSet\Control\EAS" • In Regedit add • Under HKLM\Software\Microsoft\ActiveSync, add a DWORD value for “AutoConfigureAADAllowed” with a value of “0”  zero. • You can use this command: reg.exe add "HKLM\Software\Microsoft\activesync" /v AutoConfigureAADAllowed /t REG_DWORD /d 0 /f • Add the domain account back if you want • Afterwards, you can enable Autologon using the Sysinternals utility or manually editing registry settings.

irinasp commented 7 years ago

There is discussion on docker forum about this issue: https://forums.docker.com/t/run-docker-as-a-service/28124. It seems that this scenario is not supported for docker on windows. I am going to try to configure hyperV vm for automatic startup http://www.techrepublic.com/blog/data-center/configure-a-hyper-v-vm-for-automatic-startup/ but if this will not work the issue will be closed as won't fix.

msprotz commented 7 years ago

This is on hold for the moment until a new version of Docker for windows comes up that supports this scenario

gugavaro commented 6 years ago

not relevant anymore since now linux builds run on a linux machine.