forked from joefitzgerald/packer-windows
-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #307 from StefanScherer/add-windows-11
Add Windows 11 Eval
- Loading branch information
Showing
3 changed files
with
533 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,298 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | ||
<servicing/> | ||
<settings pass="windowsPE"> | ||
<component name="Microsoft-Windows-PnpCustomizationsWinPE" | ||
publicKeyToken="31bf3856ad364e35" language="neutral" | ||
versionScope="nonSxS" processorArchitecture="amd64" | ||
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> | ||
|
||
<!-- | ||
This makes the VirtIO drivers available to Windows, assuming that | ||
the VirtIO driver disk at https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso | ||
(see https://docs.fedoraproject.org/en-US/quick-docs/creating-windows-virtual-machines-using-virtio-drivers/index.html#virtio-win-direct-downloads) | ||
is available as drive E: | ||
--> | ||
<DriverPaths> | ||
<PathAndCredentials wcm:action="add" wcm:keyValue="2"> | ||
<Path>E:\viostor\w10\amd64</Path> | ||
</PathAndCredentials> | ||
|
||
<PathAndCredentials wcm:action="add" wcm:keyValue="3"> | ||
<Path>E:\NetKVM\w10\amd64</Path> | ||
</PathAndCredentials> | ||
|
||
<PathAndCredentials wcm:action="add" wcm:keyValue="4"> | ||
<Path>E:\Balloon\w10\amd64</Path> | ||
</PathAndCredentials> | ||
|
||
<PathAndCredentials wcm:action="add" wcm:keyValue="5"> | ||
<Path>E:\pvpanic\w10\amd64</Path> | ||
</PathAndCredentials> | ||
|
||
<PathAndCredentials wcm:action="add" wcm:keyValue="6"> | ||
<Path>E:\qemupciserial\w10\amd64</Path> | ||
</PathAndCredentials> | ||
|
||
<PathAndCredentials wcm:action="add" wcm:keyValue="7"> | ||
<Path>E:\qxldod\w10\amd64</Path> | ||
</PathAndCredentials> | ||
|
||
<PathAndCredentials wcm:action="add" wcm:keyValue="8"> | ||
<Path>E:\vioinput\w10\amd64</Path> | ||
</PathAndCredentials> | ||
|
||
<PathAndCredentials wcm:action="add" wcm:keyValue="9"> | ||
<Path>E:\viorng\w10\amd64</Path> | ||
</PathAndCredentials> | ||
|
||
<PathAndCredentials wcm:action="add" wcm:keyValue="10"> | ||
<Path>E:\vioscsi\w10\amd64</Path> | ||
</PathAndCredentials> | ||
|
||
<PathAndCredentials wcm:action="add" wcm:keyValue="11"> | ||
<Path>E:\vioserial\w10\amd64</Path> | ||
</PathAndCredentials> | ||
</DriverPaths> | ||
</component> | ||
|
||
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | ||
<DiskConfiguration> | ||
<Disk wcm:action="add"> | ||
<CreatePartitions> | ||
<CreatePartition wcm:action="add"> | ||
<Order>1</Order> | ||
<Type>Primary</Type> | ||
<Extend>true</Extend> | ||
</CreatePartition> | ||
</CreatePartitions> | ||
<ModifyPartitions> | ||
<ModifyPartition wcm:action="add"> | ||
<Extend>false</Extend> | ||
<Format>NTFS</Format> | ||
<Letter>C</Letter> | ||
<Order>1</Order> | ||
<PartitionID>1</PartitionID> | ||
<Label>Windows 11</Label> | ||
</ModifyPartition> | ||
</ModifyPartitions> | ||
<DiskID>0</DiskID> | ||
<WillWipeDisk>true</WillWipeDisk> | ||
</Disk> | ||
<WillShowUI>OnError</WillShowUI> | ||
</DiskConfiguration> | ||
<UserData> | ||
<AcceptEula>true</AcceptEula> | ||
<FullName>Vagrant</FullName> | ||
<Organization>Vagrant</Organization> | ||
|
||
<!-- | ||
NOTE: If you are re-configuring this for use of a retail key | ||
and using a retail ISO, you need to adjust the <ProductKey> block | ||
below to look like this: | ||
<ProductKey> | ||
<Key>W269N-WFGWX-YVC9B-4J6C9-T83GX</Key> | ||
<WillShowUI>Never</WillShowUI> | ||
</ProductKey> | ||
Notice the addition of the `<Key>` element. | ||
--> | ||
</UserData> | ||
<ImageInstall> | ||
<OSImage> | ||
<InstallTo> | ||
<DiskID>0</DiskID> | ||
<PartitionID>1</PartitionID> | ||
</InstallTo> | ||
<WillShowUI>OnError</WillShowUI> | ||
<InstallToAvailablePartition>false</InstallToAvailablePartition> | ||
<InstallFrom> | ||
<MetaData wcm:action="add"> | ||
<Key>/IMAGE/NAME</Key> | ||
<Value>Windows 11 Enterprise Evaluation</Value> | ||
</MetaData> | ||
</InstallFrom> | ||
</OSImage> | ||
</ImageInstall> | ||
</component> | ||
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | ||
<SetupUILanguage> | ||
<UILanguage>en-US</UILanguage> | ||
</SetupUILanguage> | ||
<InputLocale>en-US</InputLocale> | ||
<SystemLocale>en-US</SystemLocale> | ||
<UILanguage>en-US</UILanguage> | ||
<UILanguageFallback>en-US</UILanguageFallback> | ||
<UserLocale>en-US</UserLocale> | ||
</component> | ||
</settings> | ||
<settings pass="offlineServicing"> | ||
<component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | ||
<EnableLUA>false</EnableLUA> | ||
</component> | ||
</settings> | ||
<settings pass="oobeSystem"> | ||
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<InputLocale>en-US</InputLocale> | ||
<SystemLocale>en-US</SystemLocale> | ||
<UILanguage>en-US</UILanguage> | ||
<UserLocale>en-US</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"> | ||
<UserAccounts> | ||
<AdministratorPassword> | ||
<Value>vagrant</Value> | ||
<PlainText>true</PlainText> | ||
</AdministratorPassword> | ||
<LocalAccounts> | ||
<LocalAccount wcm:action="add"> | ||
<Password> | ||
<Value>vagrant</Value> | ||
<PlainText>true</PlainText> | ||
</Password> | ||
<Description>Vagrant User</Description> | ||
<DisplayName>vagrant</DisplayName> | ||
<Group>administrators</Group> | ||
<Name>vagrant</Name> | ||
</LocalAccount> | ||
</LocalAccounts> | ||
</UserAccounts> | ||
<OOBE> | ||
<HideEULAPage>true</HideEULAPage> | ||
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> | ||
<NetworkLocation>Home</NetworkLocation> | ||
<ProtectYourPC>1</ProtectYourPC> | ||
</OOBE> | ||
<AutoLogon> | ||
<Password> | ||
<Value>vagrant</Value> | ||
<PlainText>true</PlainText> | ||
</Password> | ||
<Username>vagrant</Username> | ||
<Enabled>true</Enabled> | ||
</AutoLogon> | ||
<FirstLogonCommands> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>cmd.exe /c powershell -Command "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force"</CommandLine> | ||
<Description>Set Execution Policy 64 Bit</Description> | ||
<Order>1</Order> | ||
<RequiresUserInput>true</RequiresUserInput> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>C:\Windows\SysWOW64\cmd.exe /c powershell -Command "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force"</CommandLine> | ||
<Description>Set Execution Policy 32 Bit</Description> | ||
<Order>2</Order> | ||
<RequiresUserInput>true</RequiresUserInput> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>cmd.exe /c reg add "HKLM\System\CurrentControlSet\Control\Network\NewNetworkWindowOff"</CommandLine> | ||
<Description>Network prompt</Description> | ||
<Order>3</Order> | ||
<RequiresUserInput>true</RequiresUserInput> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\fixnetwork.ps1</CommandLine> | ||
<Description>Fix public network</Description> | ||
<Order>4</Order> | ||
<RequiresUserInput>true</RequiresUserInput> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\disable-winrm.ps1</CommandLine> | ||
<Description>Disable WinRM</Description> | ||
<Order>5</Order> | ||
<RequiresUserInput>true</RequiresUserInput> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>%SystemRoot%\System32\reg.exe ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v HideFileExt /t REG_DWORD /d 0 /f</CommandLine> | ||
<Order>6</Order> | ||
<Description>Show file extensions in Explorer</Description> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>%SystemRoot%\System32\reg.exe ADD HKCU\Console /v QuickEdit /t REG_DWORD /d 1 /f</CommandLine> | ||
<Order>7</Order> | ||
<Description>Enable QuickEdit mode</Description> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>%SystemRoot%\System32\reg.exe ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v Start_ShowRun /t REG_DWORD /d 1 /f</CommandLine> | ||
<Order>8</Order> | ||
<Description>Show Run command in Start Menu</Description> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>%SystemRoot%\System32\reg.exe ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ /v StartMenuAdminTools /t REG_DWORD /d 1 /f</CommandLine> | ||
<Order>9</Order> | ||
<Description>Show Administrative Tools in Start Menu</Description> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>%SystemRoot%\System32\reg.exe ADD HKLM\SYSTEM\CurrentControlSet\Control\Power\ /v HibernateFileSizePercent /t REG_DWORD /d 0 /f</CommandLine> | ||
<Order>10</Order> | ||
<Description>Zero Hibernation File</Description> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>%SystemRoot%\System32\reg.exe ADD HKLM\SYSTEM\CurrentControlSet\Control\Power\ /v HibernateEnabled /t REG_DWORD /d 0 /f</CommandLine> | ||
<Order>11</Order> | ||
<Description>Disable Hibernation Mode</Description> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>cmd.exe /c wmic useraccount where "name='vagrant'" set PasswordExpires=FALSE</CommandLine> | ||
<Order>12</Order> | ||
<Description>Disable password expiration for vagrant user</Description> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>%SystemRoot%\System32\reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d "vagrant" /f</CommandLine> | ||
<Order>13</Order> | ||
<Description>Enable AutoLogon</Description> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>%SystemRoot%\System32\reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f</CommandLine> | ||
<Order>14</Order> | ||
<Description>Enable AutoLogon</Description> | ||
</SynchronousCommand> | ||
<!-- WITHOUT WINDOWS UPDATES --> | ||
<!-- | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\enable-winrm.ps1</CommandLine> | ||
<Description>Enable WinRM</Description> | ||
<Order>99</Order> | ||
</SynchronousCommand> | ||
--> | ||
<!-- END WITHOUT WINDOWS UPDATES --> | ||
<!-- WITH WINDOWS UPDATES --> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>cmd.exe /c a:\microsoft-updates.bat</CommandLine> | ||
<Order>98</Order> | ||
<Description>Enable Microsoft Updates</Description> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\disable-screensaver.ps1</CommandLine> | ||
<Description>Disable Screensaver</Description> | ||
<Order>99</Order> | ||
<RequiresUserInput>true</RequiresUserInput> | ||
</SynchronousCommand> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\win-updates.ps1</CommandLine> | ||
<Description>Install Windows Updates</Description> | ||
<Order>100</Order> | ||
<RequiresUserInput>true</RequiresUserInput> | ||
</SynchronousCommand> | ||
<!-- END WITH WINDOWS UPDATES --> | ||
</FirstLogonCommands> | ||
<ShowWindowsLive>false</ShowWindowsLive> | ||
</component> | ||
</settings> | ||
<settings pass="specialize"> | ||
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | ||
<OEMInformation> | ||
<HelpCustomized>false</HelpCustomized> | ||
</OEMInformation> | ||
<!-- Rename computer here. --> | ||
<ComputerName>vagrant-11</ComputerName> | ||
<TimeZone>Pacific Standard Time</TimeZone> | ||
<RegisteredOwner/> | ||
</component> | ||
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | ||
<SkipAutoActivation>true</SkipAutoActivation> | ||
</component> | ||
</settings> | ||
<cpi:offlineImage xmlns:cpi="urn:schemas-microsoft-com:cpi" cpi:source="catalog:d:/sources/install_windows 7 ENTERPRISE.clg"/> | ||
</unattend> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
# --var iso_url=~/packer_cache/msdn/en-us_windows_11_consumer_editions_x64_dvd_bd3cf8df.iso \ | ||
# --var iso_checksum=sha256:667bd113a4deb717bc49251e7bdc9f09c2db4577481ddfbce376436beb9d1d2f \ | ||
# --var autounattend=tmp/11_pro/Autounattend.xml \ | ||
|
||
packer build --only=vmware-iso \ | ||
--var iso_url=~/packer_cache/22000.194.210913-1444.co_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso \ | ||
windows_11.json | ||
|
Oops, something went wrong.