Skip to content

Commit e357019

Browse files
committed
adding Windows XP template, for qemu, virtualbox, vmware, based on joefitzgerald#266
1 parent d051afb commit e357019

File tree

16 files changed

+1047
-0
lines changed

16 files changed

+1047
-0
lines changed

answer_files/xp/WINNT.SIF

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
[Data]
2+
Autopartition=1
3+
MsDosInitiated=0
4+
UnattendedInstall="Yes"
5+
6+
[Unattended]
7+
Repartition=Yes
8+
UnattendMode=FullUnattended
9+
UnattendSwitch="Yes"
10+
OemPreinstall="Yes"
11+
OemSkipEula="Yes"
12+
FileSystem=*
13+
WaitForReboot="No"
14+
NoWaitAfterTextMode=1
15+
NoWaitAfterGUIMode=1
16+
DriverSigningPolicy=Ignore
17+
NonDriverSigningPolicy=Ignore
18+
19+
[GuiUnattended]
20+
EncryptedAdminPassword="No"
21+
AutoLogon="Yes"
22+
AdminPassword="vagrant"
23+
TimeZone=020
24+
OEMSkipRegional=1
25+
OemSkipWelcome=1
26+
27+
[Components]
28+
29+
[UserData]
30+
ProductKey="QW4HD-DQCRG-HM64M-6GJRK-8K83T"
31+
ComputerName=vagrant
32+
FullName="vagrant"
33+
OrgName="vagrant"
34+
35+
[RegionalSettings]
36+
LanguageGroup=1
37+
Language="0409"
38+
39+
[Networking]
40+
InstallDefaultComponents="Yes"
41+
42+
[Identification]
43+
JoinWorkgroup="WORKGROUP"
44+
45+
[GuiRunOnce]
46+
Command0="cmd /c mkdir c:\temp"
47+
Command1="cmd /c reg add HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v forceguest /t REG_DWORD /d 0 /f"
48+
Command2="cmd /c cscript a:\extract_wget_zip.vbs"
49+
Command3="cmd /c c:\temp\bin\wget https://download.microsoft.com/download/0/8/c/08c19fa4-4c4f-4ffb-9d6c-150906578c9e/NetFx20SP1_x86.exe -O c:\temp\dotnet.exe --no-check-certificate"
50+
Command4="cmd /c start /w c:\temp\dotnet.exe /passive /norestart"
51+
Command5="cmd /c c:\temp\bin\wget https://download.microsoft.com/download/E/C/E/ECE99583-2003-455D-B681-68DB610B44A4/WindowsXP-KB968930-x86-ENG.exe -O c:\temp\winrm.exe --no-check-certificate"
52+
Command6="cmd /c start /w c:\temp\winrm.exe /passive /norestart"
53+
Command7="cmd /c a:\setup_winrm.bat"

packer-cache.json

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
{
2+
"min_packer_version": "1.3.4",
3+
"builders": [
4+
{
5+
"type": "vmware-iso",
6+
"name": "WindowsUpdateAgent30-x86.exe",
7+
"output_directory": "output/WindowsUpdateAgent30",
8+
"headless": true,
9+
"disk_size": 1,
10+
"boot_wait": "5s",
11+
"iso_url": "http://go.microsoft.com/fwlink/?LinkID=100334",
12+
"iso_target_extension": "exe",
13+
"iso_checksum": "ce7affc4c1546a5eeb65d530a40f29a5cbf315770d24a6fe93c777e951272060",
14+
"iso_checksum_type": "sha256",
15+
"ssh_username": "root",
16+
"ssh_password": "vagrant",
17+
"ssh_port": 22,
18+
19+
"shutdown_command": "poweroff"
20+
},
21+
{
22+
"type": "virtualbox-iso",
23+
"name": "WindowsUpdateAgent30-x64.exe",
24+
"output_directory": "output/WindowsUpdateAgent30",
25+
"headless": true,
26+
"disk_size": 1,
27+
"boot_wait": "5s",
28+
"iso_url": "http://go.microsoft.com/fwlink/?LinkID=100335",
29+
"iso_checksum": "b7154b2a6d8a0e003767793d77c7f243225bb19394b28f21d90588a6e889cb80",
30+
"iso_checksum_type": "sha256",
31+
"ssh_username": "root",
32+
"ssh_password": "vagrant",
33+
"ssh_port": 22,
34+
"ssh_wait_timeout": "10s",
35+
"shutdown_command": "poweroff"
36+
},
37+
{
38+
"type": "{{user `packer_type`}}",
39+
"name": "WindowsUpdateAgent30-ia64.exe",
40+
"output_directory": "output/WindowsUpdateAgent30",
41+
"headless": true,
42+
"disk_size": 1,
43+
"boot_wait": "5s",
44+
"iso_url": "http://go.microsoft.com/fwlink/?LinkID=100336",
45+
"iso_checksum": "65ec6c8d917f5fd8858a035acc7dfd3dd3d94bb8d954d430af4db20d4fa25587",
46+
"iso_checksum_type": "sha256",
47+
"ssh_username": "root",
48+
"ssh_password": "vagrant",
49+
"ssh_port": 22,
50+
"ssh_wait_timeout": "10s",
51+
"shutdown_command": "poweroff"
52+
},
53+
{
54+
"type": "{{user `packer_type`}}",
55+
"name": "NetFx20SP1_x86.exe",
56+
"output_directory": "output/WindowsUpdateAgent30",
57+
"headless": true,
58+
"disk_size": 1,
59+
"boot_wait": "5s",
60+
"iso_url": "https://download.microsoft.com/download/0/8/c/08c19fa4-4c4f-4ffb-9d6c-150906578c9e/NetFx20SP1_x86.exe",
61+
"iso_checksum": "c36c3a1d074de32d53f371c665243196a7608652a2fc6be9520312d5ce560871",
62+
"iso_checksum_type": "sha256",
63+
"ssh_username": "root",
64+
"ssh_password": "vagrant",
65+
"ssh_port": 22,
66+
"ssh_wait_timeout": "10s",
67+
"shutdown_command": "poweroff"
68+
},
69+
{
70+
"type": "{{user `packer_type`}}",
71+
"name": "WindowsXP-KB968930-x86-ENG.exe",
72+
"output_directory": "output/WindowsUpdateAgent30",
73+
"headless": true,
74+
"disk_size": 1,
75+
"boot_wait": "5s",
76+
"iso_url": "https://download.microsoft.com/download/E/C/E/ECE99583-2003-455D-B681-68DB610B44A4/WindowsXP-KB968930-x86-ENG.exe",
77+
"iso_checksum": "0ef2a9b4f500b66f418660e54e18f5f525ed8d0a4d7c50ce01c5d1d39767c00c",
78+
"iso_checksum_type": "sha256",
79+
"ssh_username": "root",
80+
"ssh_password": "vagrant",
81+
"ssh_port": 22,
82+
"ssh_wait_timeout": "10s",
83+
"shutdown_command": "poweroff"
84+
},
85+
{
86+
"type": "{{user `packer_type`}}",
87+
"name": "7zr.exe Bootstrap 18.01",
88+
"output_directory": "output/7zrBootstrap",
89+
"headless": true,
90+
"disk_size": 1,
91+
"boot_wait": "5s",
92+
"iso_url": "https://www.7-zip.org/a/7zr.exe",
93+
"iso_checksum": "ce7affc4c1546a5eeb65d530a40f29a5cbf315770d24a6fe93c777e951272060",
94+
"iso_checksum_type": "sha256",
95+
"ssh_username": "root",
96+
"ssh_password": "vagrant",
97+
"ssh_port": 22,
98+
"ssh_wait_timeout": "10s",
99+
"shutdown_command": "poweroff"
100+
},
101+
{
102+
"type": "{{user `packer_type`}}",
103+
"name": "7zr.exe",
104+
"output_directory": "output/7zip",
105+
"headless": true,
106+
"disk_size": 1,
107+
"boot_wait": "5s",
108+
"iso_url": "https://www.7-zip.org/a/7z1900-extra.7z",
109+
"iso_checksum": "af6eca1c8578df776189ee7785ab5d21525e42590f788c4e82e961a36c3a5306",
110+
"iso_checksum_type": "sha256",
111+
"ssh_username": "root",
112+
"ssh_password": "vagrant",
113+
"ssh_port": 22,
114+
"ssh_wait_timeout": "10s",
115+
"shutdown_command": "poweroff"
116+
},
117+
{
118+
"type": "{{user `packer_type`}}",
119+
"name": "7zdec.exe",
120+
"output_directory": "output/7zip",
121+
"headless": true,
122+
"disk_size": 1,
123+
"boot_wait": "5s",
124+
"iso_url": "https://www.7-zip.org/a/lzma1900.7z",
125+
"iso_checksum": "00f569e624b3d9ed89cf8d40136662c4c5207eaceb92a70b1044c77f84234bad",
126+
"iso_checksum_type": "sha256",
127+
"ssh_username": "root",
128+
"ssh_password": "vagrant",
129+
"ssh_port": 22,
130+
"ssh_wait_timeout": "10s",
131+
"shutdown_command": "poweroff"
132+
}
133+
],
134+
"variables": {
135+
"packer_type": "vbox-iso",
136+
"memory_size": "2048",
137+
"disk_size": "65535",
138+
"_comment_headless": "true",
139+
"headless": "false",
140+
"iso_url": "../_VMS_XP-ISOs__GEPRUEFT_org_Microsoft/en_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73974.iso",
141+
"iso_checksum": "fd8c8d42c1581e8767217fe800bfc0d5649c0ad20d754c927d6c763e446d1927",
142+
"iso_checksum_type": "sha256",
143+
"autounattend": "answer_files/xp/WINNT.SIF"
144+
}
145+
146+
}

scripts/AHCI-SATA/F6Readme.txt

79.4 KB
Binary file not shown.

scripts/AHCI-SATA/IaStor.sys

323 KB
Binary file not shown.

scripts/AHCI-SATA/TXTSETUP.OEM

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
; Copyright (c) 2003-09 Intel Corporation
2+
;#############################################################################
3+
;#
4+
;# Filename: TXTSETUP.OEM
5+
;#
6+
;#############################################################################
7+
[Disks]
8+
disk1 = "Intel(R) Matrix Storage Manager Driver", iaStor.sys, \
9+
10+
[Defaults]
11+
scsi = iaStor_8ME9MEPCHM
12+
13+
;#############################################################################
14+
[scsi]
15+
16+
; iaAHCI.inf
17+
iaAHCI_ESB2 = "Intel(R) ESB2 SATA AHCI Controller"
18+
iaAHCI_7RDH = "Intel(R) ICH7R/DH SATA AHCI Controller"
19+
iaAHCI_7MMDH = "Intel(R) ICH7M/MDH SATA AHCI Controller"
20+
iaAHCI_8RDHDO = "Intel(R) ICH8R/DH/DO SATA AHCI Controller"
21+
iaAHCI_8MEM = "Intel(R) ICH8M-E/M SATA AHCI Controller"
22+
iaAHCI_9RDODH = "Intel(R) ICH9R/DO/DH SATA AHCI Controller"
23+
iaAHCI_9MEM = "Intel(R) ICH9M-E/M SATA AHCI Controller"
24+
iaAHCI_10DDO = "Intel(R) ICH10D/DO SATA AHCI Controller"
25+
iaAHCI_10R = "Intel(R) ICH10R SATA AHCI Controller"
26+
iaAHCI_PCHM = "Intel(R) PCHM SATA AHCI Controller 4 Port"
27+
iaAHCI_PCHM_1 = "Intel(R) PCHM SATA AHCI Controller 6 Port"
28+
iaAHCI_PCH = "Intel(R) PCH SATA AHCI Controller"
29+
30+
; iaStor.inf
31+
iaStor_ESB2 = "Intel(R) ESB2 SATA RAID Controller"
32+
iaStor_7RDH = "Intel(R) ICH7R/DH SATA RAID Controller"
33+
iaStor_7MDH = "Intel(R) ICH7MDH SATA RAID Controller"
34+
iaStor_8R9R10RDOPCH = "Intel(R) ICH8R/ICH9R/ICH10R/DO/PCH SATA RAID Controller"
35+
iaStor_8ME9MEPCHM = "Intel(R) ICH8M-E/ICH9M-E/PCHM SATA RAID Controller"
36+
37+
;#############################################################################
38+
39+
; iaAHCI.inf
40+
[Files.scsi.iaAHCI_ESB2]
41+
driver = disk1, iaStor.sys, iaStor
42+
inf = disk1, iaAHCI.inf
43+
catalog = disk1, iaAHCI.cat
44+
45+
[Files.scsi.iaAHCI_7RDH]
46+
driver = disk1, iaStor.sys, iaStor
47+
inf = disk1, iaAHCI.inf
48+
catalog = disk1, iaAHCI.cat
49+
50+
[Files.scsi.iaAHCI_7MMDH]
51+
driver = disk1, iaStor.sys, iaStor
52+
inf = disk1, iaAHCI.inf
53+
catalog = disk1, iaAHCI.cat
54+
55+
[Files.scsi.iaAHCI_8RDHDO]
56+
driver = disk1, iaStor.sys, iaStor
57+
inf = disk1, iaAHCI.inf
58+
catalog = disk1, iaAHCI.cat
59+
60+
[Files.scsi.iaAHCI_8MEM]
61+
driver = disk1, iaStor.sys, iaStor
62+
inf = disk1, iaAHCI.inf
63+
catalog = disk1, iaAHCI.cat
64+
65+
[Files.scsi.iaAHCI_9RDODH]
66+
driver = disk1, iaStor.sys, iaStor
67+
inf = disk1, iaAHCI.inf
68+
catalog = disk1, iaAHCI.cat
69+
70+
[Files.scsi.iaAHCI_9MEM]
71+
driver = disk1, iaStor.sys, iaStor
72+
inf = disk1, iaAHCI.inf
73+
catalog = disk1, iaAHCI.cat
74+
75+
[Files.scsi.iaAHCI_10DDO]
76+
driver = disk1, iaStor.sys, iaStor
77+
inf = disk1, iaAHCI.inf
78+
catalog = disk1, iaAHCI.cat
79+
80+
[Files.scsi.iaAHCI_10R]
81+
driver = disk1, iaStor.sys, iaStor
82+
inf = disk1, iaAHCI.inf
83+
catalog = disk1, iaAHCI.cat
84+
85+
[Files.scsi.iaAHCI_PCHM]
86+
driver = disk1, iaStor.sys, iaStor
87+
inf = disk1, iaAHCI.inf
88+
catalog = disk1, iaAHCI.cat
89+
90+
[Files.scsi.iaAHCI_PCHM_1]
91+
driver = disk1, iaStor.sys, iaStor
92+
inf = disk1, iaAHCI.inf
93+
catalog = disk1, iaAHCI.cat
94+
95+
[Files.scsi.iaAHCI_PCH]
96+
driver = disk1, iaStor.sys, iaStor
97+
inf = disk1, iaAHCI.inf
98+
catalog = disk1, iaAHCI.cat
99+
100+
101+
; iaStor.inf
102+
[Files.scsi.iaStor_ESB2]
103+
driver = disk1, iaStor.sys, iaStor
104+
inf = disk1, iaStor.inf
105+
catalog = disk1, iaStor.cat
106+
107+
[Files.scsi.iaStor_7RDH]
108+
driver = disk1, iaStor.sys, iaStor
109+
inf = disk1, iaStor.inf
110+
catalog = disk1, iaStor.cat
111+
112+
[Files.scsi.iaStor_7MDH]
113+
driver = disk1, iaStor.sys, iaStor
114+
inf = disk1, iaStor.inf
115+
catalog = disk1, iaStor.cat
116+
117+
[Files.scsi.iaStor_8R9R10RDOPCH]
118+
driver = disk1, iaStor.sys, iaStor
119+
inf = disk1, iaStor.inf
120+
catalog = disk1, iaStor.cat
121+
122+
[Files.scsi.iaStor_8ME9MEPCHM]
123+
driver = disk1, iaStor.sys, iaStor
124+
inf = disk1, iaStor.inf
125+
catalog = disk1, iaStor.cat
126+
127+
128+
;#############################################################################
129+
[Config.iaStor]
130+
value = "", tag, REG_DWORD, 1b
131+
value = "", ErrorControl, REG_DWORD, 1
132+
value = "", Group, REG_SZ, "SCSI Miniport"
133+
value = "", Start, REG_DWORD, 0
134+
value = "", Type, REG_DWORD, 1
135+
136+
;#############################################################################
137+
138+
; iaAHCI.inf
139+
[HardwareIds.scsi.iaAHCI_ESB2]
140+
id = "PCI\VEN_8086&DEV_2681&CC_0106","iaStor"
141+
142+
[HardwareIds.scsi.iaAHCI_7RDH]
143+
id = "PCI\VEN_8086&DEV_27C1&CC_0106","iaStor"
144+
145+
[HardwareIds.scsi.iaAHCI_7MMDH]
146+
id = "PCI\VEN_8086&DEV_27C5&CC_0106","iaStor"
147+
148+
[HardwareIds.scsi.iaAHCI_8RDHDO]
149+
id = "PCI\VEN_8086&DEV_2821&CC_0106","iaStor"
150+
151+
[HardwareIds.scsi.iaAHCI_8MEM]
152+
id = "PCI\VEN_8086&DEV_2829&CC_0106","iaStor"
153+
154+
[HardwareIds.scsi.iaAHCI_9RDODH]
155+
id = "PCI\VEN_8086&DEV_2922&CC_0106","iaStor"
156+
157+
[HardwareIds.scsi.iaAHCI_9MEM]
158+
id = "PCI\VEN_8086&DEV_2929&CC_0106","iaStor"
159+
160+
[HardwareIds.scsi.iaAHCI_10DDO]
161+
id = "PCI\VEN_8086&DEV_3A02&CC_0106","iaStor"
162+
163+
[HardwareIds.scsi.iaAHCI_10R]
164+
id = "PCI\VEN_8086&DEV_3A22&CC_0106","iaStor"
165+
166+
[HardwareIds.scsi.iaAHCI_PCHM]
167+
id = "PCI\VEN_8086&DEV_3B29&CC_0106","iaStor"
168+
169+
[HardwareIds.scsi.iaAHCI_PCHM_1]
170+
id = "PCI\VEN_8086&DEV_3B2F&CC_0106","iaStor"
171+
172+
[HardwareIds.scsi.iaAHCI_PCH]
173+
id = "PCI\VEN_8086&DEV_3B22&CC_0106","iaStor"
174+
175+
176+
; iaStor.inf
177+
[HardwareIds.scsi.iaStor_ESB2]
178+
id = "PCI\VEN_8086&DEV_2682&CC_0104","iaStor"
179+
180+
[HardwareIds.scsi.iaStor_7RDH]
181+
id = "PCI\VEN_8086&DEV_27C3&CC_0104","iaStor"
182+
183+
[HardwareIds.scsi.iaStor_7MDH]
184+
id = "PCI\VEN_8086&DEV_27C6&CC_0104","iaStor"
185+
186+
[HardwareIds.scsi.iaStor_8R9R10RDOPCH]
187+
id = "PCI\VEN_8086&DEV_2822&CC_0104","iaStor"
188+
189+
[HardwareIds.scsi.iaStor_8ME9MEPCHM]
190+
id = "PCI\VEN_8086&DEV_282A&CC_0104","iaStor"
191+

0 commit comments

Comments
 (0)