Creating Nano Container VM with New-ContainerHost.ps1 script and not language en-us

If you, like me, are running an OS that do not use the language en-us then you can run into problems when building an Nano Container server with the script New-ContainerHost.ps1.

This is the error you can get.
12/08/2015 09:50:39 ========================================
12/08/2015 09:50:39 New-NanoServerImage Cmdlet Started
12/08/2015 09:50:39 ========================================
12/08/2015 09:50:39 The ‘sv-se’ directory does not exist in the ‘Packages’ directory (‘D:\NanoServer\Packages’).
at Test-Paths, D:\NanoServer\NanoServerImageGenerator.psm1: line 1406
at New-NanoServerImage<Process>, D:\NanoServer\NanoServerImageGenerator.psm1: line 634
at Cache-HostFiles, C:\New-ContainerHost.ps1: line 323
at New-ContainerHost, C:\New-ContainerHost.ps1: line 660
at <ScriptBlock>, C:\New-ContainerHost.ps1: line 1455
at <ScriptBlock>, <No file>: line 1
12/08/2015 09:50:39 Terminating due to an error. See log file at: C:\Users\u\AppData\Local\Temp\NanoServerImageGenerator.log

Creating Nano Container VM with New-ContainerHost.ps1 script and not language en-us1

To fix this, edit the script at line 323 by adding the parameter “-language en-us” at the end of the line.

New-NanoServerImage -MediaPath “$($driveLetter):\” -TargetPath $global:localVhdPath -Compute -Containers -ReverseForwarders -GuestDrivers -AdministratorPassword $Password -Language en-us

No comments yet.

Leave a Reply