Skip to content

eaksel/packer-Win10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packer-Win10

What is packer-Win10 ?

packer-Win10 is a set of configuration files used to build automated Windows 10 virtual machine images using Packer. This Packer configuration file allows you to build images for VMware Workstation and Oracle VM VirtualBox.

Prerequisites

How to use Packer

Commands to create an automated VM image:

To create a Windows 10 VM image using VMware Workstation use the following commands:

cd c:\packer-Win10
packer build -only=vmware-iso win10.json

To create a Windows 10 VM image using Oracle VM VirtualBox use the following commands:

cd c:\packer-Win10
packer build -only=virtualbox-iso win10.json

If you omit the keyword "-only=" images for both Workstation and Virtualbox will be created.

By default the .iso of Windows 10 is pulled from http://cdn.digiboy.ir/?b=dlir-s3&f=SW_DVD5_WIN_ENT_LTSC_2019_64-bit_English_MLF_X21-96425.ISO

You can change the URL to one closer to your build server. To do so change the "iso_url" parameter in the "variables" section of the debian9.json file.

{
  "variables": {
      "iso_url": "http://cdn.digiboy.ir/?b=dlir-s3&f=SW_DVD5_WIN_ENT_LTSC_2019_64-bit_English_MLF_X21-96425.ISO"
}

Configuring Input/User Locale & Timezone

To set the input/user locale and timezone according to your preferences edit the following file:

  • ".\packer-Win2019\scripts\autounattend.xml"
<settings pass="specialize">
    <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
        <InputLocale>fr-FR</InputLocale>
        <UserLocale>fr-FR</UserLocale>
    </component>
    <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
        <TimeZone>Romance Standard Time</TimeZone>
    </component>
</settings>

Default credentials

The default credentials for this VM image are:

Username Password
administrator packer

About

Packer configuration files for Windows 10

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published