SymptomsWhen trying to use vzctl enter or vzctl exec, the following error is observed:
ERROR: Windows API function call 'CreateProcess' failed, code 0x422
CauseThe service seclogon is not started inside the container.
ResolutionIf it is possible to connect to a container via RDP, enable seclogon startup and start the service.
- Connect to a container via RDP
Enable seclogon service startup:
sc config seclogon start= auto
Start the service:
sc start seclogon
If it is not possible to connect to a container via RDP, enable the service by editing the container's registry from the Hardware Node.
Open the registry editor on the Hardware Node:
Navigate to HKEY_LOCAL_MACHINE\vzCTID\MACHINE\SYSTEM\CurrentControlSet\services\seclogon
NOTE: Replace CTID with the actual ID of the container
- Edit the Start value and set it to "1"
- Close the registry editor and restart the container