MattHodge / PackerTemplates

Packer Templates for building Windows Operating Systems
https://hodgkins.io/best-practices-with-packer-and-windows
164 stars 62 forks source link

Windows 2016 Dataceneter Core #2

Closed stephenbawks closed 7 years ago

stephenbawks commented 7 years ago

Is there a way I can build Windows 2016 Datacenter Core instances. I am guessing I just need to add the extra condition for Datacenter but i am not sure where you are pulling the os_name value from.

SolidOceanTrust commented 7 years ago

Hello gigadafud. If you mount the ISO for Server 2016 and then run the following command: (assuming G: is the drive letter for your ISO) Get-WindowsImage -ImagePath g:\sources\install.wim

You will see both the NAMES and INDEX's for the image.

I would make an additional folder in /answer_files for win2016datacentercore in that folder, copy the unattend.xml from the /answer_files/win2016std or /answer_files/win2016stdcore to the win2016datacentercore and modify then XML section called ImageInstall/OSImage/Installrom /IMAGE/NAME Windows Server 2016 SERVERDATACENTERCORE

Hope that helps!

MattHodge commented 7 years ago

Thanks for the answer @SolidOceanTrust :)

stephenbawks commented 7 years ago

Yes it does. Trying that out now. Thank you very much. Was just coming up blank on where those Image Names were being pulled from.

Thanks again.

On Sat, Feb 25, 2017 at 4:24 PM, Solid Ocean Trust <notifications@github.com

wrote:

Hello gigadafud. If you mount the ISO for Server 2016 and then run the following command: (assuming G: is the drive letter for your ISO) Get-WindowsImage -ImagePath g:\sources\install.wim

You will see both the NAMES and INDEX's for the image.

I would make an additional folder in /answer_files for win2016datacentercore in that folder, copy the unattend.xml from the /answer_files/win2016std or /answer_files/win2016stdcore to the win2016datacentercore and modify then XML section called ImageInstall/OSImage/Installrom /IMAGE/NAME Windows Server 2016 SERVERDATACENTERCORE

Hope that helps!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MattHodge/PackerTemplates/issues/2#issuecomment-282513459, or mute the thread https://github.com/notifications/unsubscribe-auth/AFAOu_oHK33_2RrMVF3vdsBPKsURg8Igks5rgJwRgaJpZM4L7d7L .