Failed to build image from latest 2019-Datacenter-Core
- Dominant language
- Go
- Stars
- 159
- Forks
- 277
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 178
Description
**What happened**:
I'm trying to build an image for AKS from the image SKU `2019-Datacenter-Core`. It fails for image version `17763.6414.241004` or later with the following error:
```
azure-arm: Start-Service : Service 'OpenSSH SSH Server (sshd)' cannot be started due to the following error: Cannot start service
azure-arm: sshd on computer '.'.
azure-arm: At C:\Windows\Temp\script-6745f9f6-4784-99a2-8a03-0793c3a69f24.ps1:400 char:5
azure-arm: + Start-Service sshd
azure-arm: + ~~~~~~~~~~~~~~~~~~
azure-arm: + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
azure-arm: ServiceCommandException
azure-arm: + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
```
The last working image version is `17763.6293.240905`.
**What you expected to happen**:
Image build completes successfully.
**How to reproduce it**:
Build an image with the following source image:
```
"windows_image_sku": "2019-Datacenter-Core",
"windows_image_version": "17763.6532.241101",
"windows_image_publisher":"MicrosoftWindowsServer",
"windows_image_offer":"WindowsServer",
```
**Anything else we need to know?**:
I found this thread, where people reported, that there is some permission problem on the ssh logs directory.
https://serverfault.com/questions/1166382/openssh-ssh-server-wont-start-on-windows-server-2019-after-windows-updates
In my case the logs directory does not exist, by the time, when `Start-Service sshd` is executed.
**Environment**:
- AgentBaker version: dev
- Kubernetes version (use `kubectl version`):
- OS (e.g. from /etc/os-release):
- Kernel (e.g. `uname -a`):
- Install tools:
- Others:
Packer: v1.11.2
Contributor guide
Assessment
This issue has not been assessed yet.