veewee 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -0
- data/README.md +1 -1
- data/doc/definition.md +18 -0
- data/doc/kvm.md +28 -1
- data/doc/template.md +53 -2
- data/lib/veewee/command/fusion.rb +37 -3
- data/lib/veewee/command/vagrant/basebox.rb +2 -0
- data/lib/veewee/command/vagrant/winrm.rb +39 -0
- data/lib/veewee/command/vbox.rb +18 -0
- data/lib/veewee/definition.rb +13 -3
- data/lib/veewee/error.rb +3 -0
- data/lib/veewee/provider/core/box.rb +7 -0
- data/lib/veewee/provider/core/box/build.rb +34 -14
- data/lib/veewee/provider/core/box/copy.rb +17 -0
- data/lib/veewee/provider/core/box/exec.rb +31 -12
- data/lib/veewee/provider/core/box/floppy.rb +1 -0
- data/lib/veewee/provider/core/box/halt.rb +7 -3
- data/lib/veewee/provider/core/box/validate_tags.rb +8 -2
- data/lib/veewee/provider/core/box/wincp.rb +120 -0
- data/lib/veewee/provider/core/box/winrm.rb +59 -0
- data/lib/veewee/provider/core/helper/comm.rb +47 -0
- data/lib/veewee/provider/core/helper/web.rb +20 -9
- data/lib/veewee/provider/core/helper/winrm.rb +167 -0
- data/lib/veewee/provider/kvm/box/create.rb +59 -3
- data/lib/veewee/provider/kvm/provider.rb +6 -6
- data/lib/veewee/provider/parallels/box/helper/buildinfo.rb +1 -1
- data/lib/veewee/provider/virtualbox/box.rb +1 -0
- data/lib/veewee/provider/virtualbox/box/build.rb +4 -2
- data/lib/veewee/provider/virtualbox/box/create.rb +32 -12
- data/lib/veewee/provider/virtualbox/box/helper/buildinfo.rb +6 -3
- data/lib/veewee/provider/virtualbox/box/helper/create.rb +20 -5
- data/lib/veewee/provider/virtualbox/box/helper/winrm_options.rb +31 -0
- data/lib/veewee/provider/virtualbox/box/up.rb +33 -12
- data/lib/veewee/provider/virtualbox/box/winrm.rb +13 -0
- data/lib/veewee/provider/vmfusion/box.rb +2 -0
- data/lib/veewee/provider/vmfusion/box/add_share.rb +18 -0
- data/lib/veewee/provider/vmfusion/box/build.rb +3 -1
- data/lib/veewee/provider/vmfusion/box/create.rb +7 -2
- data/lib/veewee/provider/vmfusion/box/helper/buildinfo.rb +9 -6
- data/lib/veewee/provider/vmfusion/box/helper/ip.rb +1 -1
- data/lib/veewee/provider/vmfusion/box/helper/winrm_options.rb +21 -0
- data/lib/veewee/provider/vmfusion/box/template.rb +7 -3
- data/lib/veewee/provider/vmfusion/box/template.vmx.erb +6 -0
- data/lib/veewee/provider/vmfusion/box/winrm.rb +12 -0
- data/lib/veewee/provider/vmfusion/provider.rb +7 -1
- data/lib/veewee/version.rb +1 -1
- data/templates/CentOS-5.6-x86_64-netboot-packages/definition.rb +16 -0
- data/templates/CentOS-5.6-x86_64-netboot-packages/ks.cfg +47 -0
- data/templates/CentOS-5.6-x86_64-netboot-packages/postinstall.sh +61 -0
- data/templates/Debian-7.0-b3-amd64-netboot/base.sh +27 -0
- data/templates/Debian-7.0-b3-amd64-netboot/chef.sh +2 -0
- data/templates/Debian-7.0-b3-amd64-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-7.0-b3-amd64-netboot/cleanup.sh +17 -0
- data/templates/Debian-7.0-b3-amd64-netboot/definition.rb +51 -0
- data/templates/Debian-7.0-b3-amd64-netboot/preseed.cfg +313 -0
- data/templates/Debian-7.0-b3-amd64-netboot/puppet.sh +2 -0
- data/templates/Debian-7.0-b3-amd64-netboot/ruby.sh +10 -0
- data/templates/Debian-7.0-b3-amd64-netboot/vagrant.sh +25 -0
- data/templates/Debian-7.0-b3-amd64-netboot/virtualbox.sh +13 -0
- data/templates/Debian-7.0-b3-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Fedora-18-i386/definition.rb +17 -0
- data/templates/Fedora-18-i386/ks.cfg +75 -0
- data/templates/Fedora-18-i386/postinstall.sh +38 -0
- data/templates/Fedora-18-x86_64/definition.rb +17 -0
- data/templates/Fedora-18-x86_64/ks.cfg +75 -0
- data/templates/Fedora-18-x86_64/postinstall.sh +38 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/base.sh +30 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/chef.sh +3 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/cleanup.sh +5 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/definition.rb +40 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/ks.cfg +42 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/puppet.sh +12 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/ruby.sh +3 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/vagrant.sh +18 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/zerodisk.sh +3 -0
- data/templates/funtoo-latest-x86_64/definition.rb +37 -0
- data/templates/funtoo-latest-x86_64/postinstall.sh +401 -0
- data/templates/openbsd50_amd64/definition.rb +3 -2
- data/templates/openbsd50_amd64/postinstall.sh +4 -4
- data/templates/openbsd50_i386/definition.rb +4 -4
- data/templates/openbsd52_amd64/README +28 -0
- data/templates/openbsd52_amd64/definition.rb +85 -0
- data/templates/openbsd52_amd64/postinstall.sh +81 -0
- data/templates/openbsd52_i386/README +28 -0
- data/templates/openbsd52_i386/definition.rb +85 -0
- data/templates/openbsd52_i386/postinstall.sh +81 -0
- data/templates/windows-2008R1-serverstandard-amd64/Autounattend.xml +6 -6
- data/templates/windows-2008R1-serverweb-amd64/install-winrm.bat +1 -1
- data/templates/windows-2008R2-serverstandard-amd64-winrm/Autounattend.xml +224 -0
- data/templates/windows-2008R2-serverstandard-amd64-winrm/README.md +87 -0
- data/templates/windows-2008R2-serverstandard-amd64-winrm/definition.rb +33 -0
- data/templates/windows-2008R2-serverstandard-amd64-winrm/install-chef.bat +2 -0
- data/templates/windows-2008R2-serverstandard-amd64-winrm/install-vbox.bat +4 -0
- data/templates/windows-2008R2-serverstandard-amd64-winrm/oracle-cert.cer +0 -0
- data/templates/windows-2008R2-serverstandard-amd64-winrm/postinstall.sh +74 -0
- data/templates/windows-7-enterprise-amd64-winrm/Autounattend.xml +227 -0
- data/templates/windows-7-enterprise-amd64-winrm/README.md +52 -0
- data/templates/windows-7-enterprise-amd64-winrm/definition.rb +27 -0
- data/templates/windows-7-enterprise-amd64-winrm/install-chef.bat +2 -0
- data/templates/windows-7-enterprise-amd64-winrm/install-fusion.bat +18 -0
- data/templates/windows-7-enterprise-amd64-winrm/install-puppet.bat +4 -0
- data/templates/windows-7-enterprise-amd64-winrm/install-vbox.bat +4 -0
- data/templates/windows-7-enterprise-amd64-winrm/oracle-cert.cer +0 -0
- data/templates/windows-7-enterprise-amd64-winrm/postinstall.bat +74 -0
- data/validation/veewee-windows.feature +34 -0
- data/veewee.gemspec +1 -1
- metadata +73 -7
@@ -107,11 +107,11 @@
|
|
107
107
|
<!-- <Description>Install Chef Client</Description> -->
|
108
108
|
<!-- <Order>2</Order> -->
|
109
109
|
<!-- </SynchronousCommand> -->
|
110
|
-
<SynchronousCommand wcm:action="add">
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
</SynchronousCommand>
|
110
|
+
<!-- <SynchronousCommand wcm:action="add"> -->
|
111
|
+
<!-- <CommandLine>cmd.exe /c a:install-cygwin-sshd.bat</CommandLine> -->
|
112
|
+
<!-- <Description>Install Cygwin SSHD</Description> -->
|
113
|
+
<!-- <Order>2</Order> -->
|
114
|
+
<!-- </SynchronousCommand> -->
|
115
115
|
<!-- needed wget -->
|
116
116
|
<!-- <SynchronousCommand wcm:action="add"> -->
|
117
117
|
<!-- <CommandLine>cmd.exe /c a:install-guest-additions.bat</CommandLine> -->
|
@@ -128,7 +128,7 @@
|
|
128
128
|
<HelpCustomized>false</HelpCustomized>
|
129
129
|
</OEMInformation>
|
130
130
|
<!-- Rename computer here. -->
|
131
|
-
<ComputerName>vagrant-2008R1
|
131
|
+
<ComputerName>vagrant-2008R1</ComputerName>
|
132
132
|
<TimeZone>New Zealand Standard Time</TimeZone>
|
133
133
|
<RegisteredOwner></RegisteredOwner>
|
134
134
|
</component>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
cmd /c winrm quickconfig -q
|
2
|
-
cmd /c winrm quickconfig -transport:http
|
2
|
+
cmd /c winrm quickconfig -transport:http
|
3
3
|
cmd /c winrm set winrm/config @{MaxTimeoutms="1800000"}
|
4
4
|
cmd /c winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"}
|
5
5
|
cmd /c winrm set winrm/config/service @{AllowUnencrypted="true"}
|
@@ -0,0 +1,224 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<unattend xmlns="urn:schemas-microsoft-com:unattend">
|
3
|
+
<servicing></servicing>
|
4
|
+
|
5
|
+
<settings pass="windowsPE">
|
6
|
+
|
7
|
+
<component name="Microsoft-Windows-Setup" 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">
|
8
|
+
|
9
|
+
<DiskConfiguration>
|
10
|
+
<Disk wcm:action="add">
|
11
|
+
|
12
|
+
<CreatePartitions>
|
13
|
+
<CreatePartition wcm:action="add">
|
14
|
+
<Order>1</Order>
|
15
|
+
<Type>Primary</Type>
|
16
|
+
<Size>20000</Size>
|
17
|
+
</CreatePartition>
|
18
|
+
</CreatePartitions>
|
19
|
+
|
20
|
+
<ModifyPartitions>
|
21
|
+
<ModifyPartition wcm:action="add">
|
22
|
+
<Extend>false</Extend>
|
23
|
+
<Format>NTFS</Format>
|
24
|
+
<Letter>C</Letter>
|
25
|
+
<Order>1</Order>
|
26
|
+
<PartitionID>1</PartitionID>
|
27
|
+
<Label>Windows 2008R2</Label>
|
28
|
+
</ModifyPartition>
|
29
|
+
</ModifyPartitions>
|
30
|
+
|
31
|
+
<DiskID>0</DiskID>
|
32
|
+
<WillWipeDisk>true</WillWipeDisk>
|
33
|
+
|
34
|
+
</Disk>
|
35
|
+
<WillShowUI>OnError</WillShowUI>
|
36
|
+
</DiskConfiguration>
|
37
|
+
|
38
|
+
<UserData>
|
39
|
+
<!-- Product Key from http://technet.microsoft.com/en-us/library/ff793406.aspx -->
|
40
|
+
<ProductKey>YC6KT-GKW9T-YTKYR-T4X34-R7VHC
|
41
|
+
<WillShowUI>Never</WillShowUI>
|
42
|
+
</ProductKey>
|
43
|
+
|
44
|
+
<AcceptEula>true</AcceptEula>
|
45
|
+
<FullName>Vagrant Fullname</FullName>
|
46
|
+
<Organization>Vagrant Inc</Organization>
|
47
|
+
</UserData>
|
48
|
+
|
49
|
+
<ImageInstall>
|
50
|
+
<OSImage>
|
51
|
+
<InstallTo>
|
52
|
+
<DiskID>0</DiskID>
|
53
|
+
<PartitionID>1</PartitionID>
|
54
|
+
</InstallTo>
|
55
|
+
<WillShowUI>OnError</WillShowUI>
|
56
|
+
<InstallToAvailablePartition>false</InstallToAvailablePartition>
|
57
|
+
<InstallFrom>
|
58
|
+
<MetaData wcm:action="add">
|
59
|
+
<Key>/IMAGE/NAME</Key>
|
60
|
+
<Value>Windows Server 2008 R2 SERVERSTANDARD</Value>
|
61
|
+
</MetaData>
|
62
|
+
</InstallFrom>
|
63
|
+
</OSImage>
|
64
|
+
</ImageInstall>
|
65
|
+
|
66
|
+
</component>
|
67
|
+
|
68
|
+
<component name="Microsoft-Windows-International-Core-WinPE" 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">
|
69
|
+
<SetupUILanguage>
|
70
|
+
<UILanguage>en-US</UILanguage>
|
71
|
+
</SetupUILanguage>
|
72
|
+
<InputLocale>en-US</InputLocale>
|
73
|
+
<SystemLocale>en-US</SystemLocale>
|
74
|
+
<UILanguage>en-US</UILanguage>
|
75
|
+
<UILanguageFallback>en-US</UILanguageFallback>
|
76
|
+
<UserLocale>en-US</UserLocale>
|
77
|
+
</component>
|
78
|
+
</settings>
|
79
|
+
|
80
|
+
|
81
|
+
<settings pass="oobeSystem">
|
82
|
+
<component name="Microsoft-Windows-Shell-Setup" 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">
|
83
|
+
<UserAccounts>
|
84
|
+
<AdministratorPassword>
|
85
|
+
<Value>dgBhAGcAcgBhAG4AdABBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
|
86
|
+
<PlainText>false</PlainText>
|
87
|
+
</AdministratorPassword>
|
88
|
+
<LocalAccounts>
|
89
|
+
<LocalAccount wcm:action="add">
|
90
|
+
<Password>
|
91
|
+
<Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value>
|
92
|
+
<PlainText>false</PlainText>
|
93
|
+
</Password>
|
94
|
+
<Description>Vagrant User</Description>
|
95
|
+
<DisplayName>vagrant</DisplayName>
|
96
|
+
<Group>administrators</Group>
|
97
|
+
<Name>vagrant</Name>
|
98
|
+
</LocalAccount>
|
99
|
+
</LocalAccounts>
|
100
|
+
</UserAccounts>
|
101
|
+
<OOBE>
|
102
|
+
<HideEULAPage>true</HideEULAPage>
|
103
|
+
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
|
104
|
+
<NetworkLocation>Home</NetworkLocation>
|
105
|
+
</OOBE>
|
106
|
+
<AutoLogon>
|
107
|
+
<Password>
|
108
|
+
<Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value>
|
109
|
+
<PlainText>false</PlainText>
|
110
|
+
</Password>
|
111
|
+
<Username>administrator</Username>
|
112
|
+
<Enabled>true</Enabled>
|
113
|
+
</AutoLogon>
|
114
|
+
<FirstLogonCommands>
|
115
|
+
<!-- <SynchronousCommand wcm:action="add"> -->
|
116
|
+
<!-- <CommandLine>cmd.exe /c a:install-cygwin-sshd.bat</CommandLine> -->
|
117
|
+
<!-- <Description>Install Cygwin SSH</Description> -->
|
118
|
+
<!-- <Order>1</Order> -->
|
119
|
+
<!-- <RequiresUserInput>true</RequiresUserInput> -->
|
120
|
+
<!-- </SynchronousCommand> -->
|
121
|
+
<!-- <SynchronousCommand wcm:action="add"> -->
|
122
|
+
<!-- <CommandLine>cmd.exe /c a:install-winrm.bat</CommandLine> -->
|
123
|
+
<!-- <Description>Install Win RM</Description> -->
|
124
|
+
<!-- <Order>2</Order> -->
|
125
|
+
<!-- <RequiresUserInput>true</RequiresUserInput> -->
|
126
|
+
<!-- </SynchronousCommand> -->
|
127
|
+
<SynchronousCommand wcm:action="add">
|
128
|
+
<CommandLine>cmd.exe /c winrm quickconfig -q</CommandLine>
|
129
|
+
<Description>winrm quickconfig -q</Description>
|
130
|
+
<Order>1</Order>
|
131
|
+
<RequiresUserInput>true</RequiresUserInput>
|
132
|
+
</SynchronousCommand>
|
133
|
+
<SynchronousCommand wcm:action="add">
|
134
|
+
<CommandLine>cmd.exe /c winrm quickconfig -transport:http</CommandLine>
|
135
|
+
<Description>winrm quickconfig -transport:http</Description>
|
136
|
+
<Order>2</Order>
|
137
|
+
<RequiresUserInput>true</RequiresUserInput>
|
138
|
+
</SynchronousCommand>
|
139
|
+
<SynchronousCommand wcm:action="add">
|
140
|
+
<CommandLine>cmd.exe /c winrm set winrm/config @{MaxTimeoutms="1800000"}</CommandLine>
|
141
|
+
<Description>Win RM MaxTimoutms</Description>
|
142
|
+
<Order>3</Order>
|
143
|
+
<RequiresUserInput>true</RequiresUserInput>
|
144
|
+
</SynchronousCommand>
|
145
|
+
<SynchronousCommand wcm:action="add">
|
146
|
+
<CommandLine>cmd.exe /c winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"}</CommandLine>
|
147
|
+
<Description>Win RM MaxMemoryPerShellMB</Description>
|
148
|
+
<Order>4</Order>
|
149
|
+
<RequiresUserInput>true</RequiresUserInput>
|
150
|
+
</SynchronousCommand>
|
151
|
+
<SynchronousCommand wcm:action="add">
|
152
|
+
<CommandLine>cmd.exe /c winrm set winrm/config/service @{AllowUnencrypted="true"}</CommandLine>
|
153
|
+
<Description>Win RM AllowUnencrypted</Description>
|
154
|
+
<Order>5</Order>
|
155
|
+
<RequiresUserInput>true</RequiresUserInput>
|
156
|
+
</SynchronousCommand>
|
157
|
+
<SynchronousCommand wcm:action="add">
|
158
|
+
<CommandLine>cmd.exe /c winrm set winrm/config/service/auth @{Basic="true"}</CommandLine>
|
159
|
+
<Description>Win RM auth Basic</Description>
|
160
|
+
<Order>6</Order>
|
161
|
+
<RequiresUserInput>true</RequiresUserInput>
|
162
|
+
</SynchronousCommand>
|
163
|
+
<SynchronousCommand wcm:action="add">
|
164
|
+
<CommandLine>cmd.exe /c winrm set winrm/config/listener?Address=*+Transport=HTTP @{Port="5985"} </CommandLine>
|
165
|
+
<Description>Win RM listener Address/Port</Description>
|
166
|
+
<Order>7</Order>
|
167
|
+
<RequiresUserInput>true</RequiresUserInput>
|
168
|
+
</SynchronousCommand>
|
169
|
+
<SynchronousCommand wcm:action="add">
|
170
|
+
<CommandLine>cmd.exe /c netsh advfirewall firewall set rule group="remote administration" new enable=yes </CommandLine>
|
171
|
+
<Description>Win RM adv firewall enable</Description>
|
172
|
+
<Order>8</Order>
|
173
|
+
<RequiresUserInput>true</RequiresUserInput>
|
174
|
+
</SynchronousCommand>
|
175
|
+
<SynchronousCommand wcm:action="add">
|
176
|
+
<CommandLine>cmd.exe /c netsh firewall add portopening TCP 5985 "Port 5985" </CommandLine>
|
177
|
+
<Description>Win RM port open</Description>
|
178
|
+
<Order>9</Order>
|
179
|
+
<RequiresUserInput>true</RequiresUserInput>
|
180
|
+
</SynchronousCommand>
|
181
|
+
<SynchronousCommand wcm:action="add">
|
182
|
+
<CommandLine>cmd.exe /c net stop winrm </CommandLine>
|
183
|
+
<Description>Stop Win RM Service </Description>
|
184
|
+
<Order>10</Order>
|
185
|
+
<RequiresUserInput>true</RequiresUserInput>
|
186
|
+
</SynchronousCommand>
|
187
|
+
<SynchronousCommand wcm:action="add">
|
188
|
+
<CommandLine>cmd.exe /c sc config winrm start= auto</CommandLine>
|
189
|
+
<Description>Win RM Autostart</Description>
|
190
|
+
<Order>11</Order>
|
191
|
+
<RequiresUserInput>true</RequiresUserInput>
|
192
|
+
</SynchronousCommand>
|
193
|
+
<SynchronousCommand wcm:action="add">
|
194
|
+
<CommandLine>cmd.exe /c net start winrm </CommandLine>
|
195
|
+
<Description>Start Win RM Service</Description>
|
196
|
+
<Order>12</Order>
|
197
|
+
<RequiresUserInput>true</RequiresUserInput>
|
198
|
+
</SynchronousCommand>
|
199
|
+
<SynchronousCommand wcm:action="add">
|
200
|
+
<CommandLine>powershell -Command "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force"</CommandLine>
|
201
|
+
<Description>Start Win RM Service</Description>
|
202
|
+
<Order>13</Order>
|
203
|
+
<RequiresUserInput>true</RequiresUserInput>
|
204
|
+
</SynchronousCommand>
|
205
|
+
</FirstLogonCommands>
|
206
|
+
<ShowWindowsLive>false</ShowWindowsLive>
|
207
|
+
</component>
|
208
|
+
</settings>
|
209
|
+
<settings pass="specialize">
|
210
|
+
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" >
|
211
|
+
<OEMInformation>
|
212
|
+
<HelpCustomized>false</HelpCustomized>
|
213
|
+
</OEMInformation>
|
214
|
+
<!-- Rename computer here. -->
|
215
|
+
<ComputerName>vagrant-2008R2</ComputerName>
|
216
|
+
<TimeZone>Pacific Standard Time</TimeZone>
|
217
|
+
<RegisteredOwner></RegisteredOwner>
|
218
|
+
</component>
|
219
|
+
<component name="Microsoft-Windows-Security-SPP-UX" 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">
|
220
|
+
<SkipAutoActivation>true</SkipAutoActivation>
|
221
|
+
</component>
|
222
|
+
</settings>
|
223
|
+
<cpi:offlineImage cpi:source="catalog:d:/sources/install_windows server 2008 r2 serverdatacenter.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
|
224
|
+
</unattend>
|
@@ -0,0 +1,87 @@
|
|
1
|
+
You can download a free trial of Windows Server 2008 R2 with Service Pack 1 from two different locations manually:
|
2
|
+
|
3
|
+
* url: http://technet.microsoft.com/en-us/evalcenter/dd459137.aspx
|
4
|
+
* url: http://msdn.microsoft.com/en-us/evalcenter/ee175713.aspx
|
5
|
+
|
6
|
+
But they seem to always generate the same url of http://care.dlservice.microsoft.com//dl/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso
|
7
|
+
|
8
|
+
* 64bit
|
9
|
+
* filename: 7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso
|
10
|
+
* md5sum: 4263be2cf3c59177c45085c0a7bc6ca5
|
11
|
+
|
12
|
+
|
13
|
+
The installation uses the Standard Windows Unattended installation. The XML file was created using the Windows AIK kit, but the file can also be edited by hand.
|
14
|
+
|
15
|
+
To edit the Autounattend.xml and validate it you can download The Windows® Automated Installation Kit (AIK) for Windows® 7:
|
16
|
+
|
17
|
+
* url: http://www.microsoft.com/download/en/details.aspx?id=5753
|
18
|
+
* file: KB3AIK_EN.iso
|
19
|
+
* md5sum: 1e73b24a89eceab9d50585b92db5482f
|
20
|
+
|
21
|
+
AIK also includes dism, which will allow you to choose a specific version:
|
22
|
+
|
23
|
+
If you want to install a different version, edit Autoattended.xml and replace the /IMAGE/NAME value with
|
24
|
+
one of the names listed in the 2008r2 install.wim on the install DVD .iso
|
25
|
+
|
26
|
+
|
27
|
+
```xml
|
28
|
+
<InstallFrom>
|
29
|
+
<MetaData wcm:action="add">
|
30
|
+
<Key>/IMAGE/NAME</Key>
|
31
|
+
<Value>Windows Server 2008 R2 SERVERSTANDARD</Value>
|
32
|
+
</MetaData>
|
33
|
+
</InstallFrom>
|
34
|
+
```
|
35
|
+
|
36
|
+
|
37
|
+
```
|
38
|
+
PS C:\Users\Administrator> Dism /Get-WIMInfo /WimFile:d:\sources\install.wim
|
39
|
+
|
40
|
+
Deployment Image Servicing and Management tool
|
41
|
+
Version: 6.1.7600.16385
|
42
|
+
|
43
|
+
Details for image : d:\sources\install.wim
|
44
|
+
|
45
|
+
Index : 1
|
46
|
+
Name : Windows Server 2008 R2 SERVERSTANDARD
|
47
|
+
Description : Windows Server 2008 R2 SERVERSTANDARD
|
48
|
+
Size : 10,510,643,622 bytes
|
49
|
+
|
50
|
+
Index : 2
|
51
|
+
Name : Windows Server 2008 R2 SERVERSTANDARDCORE
|
52
|
+
Description : Windows Server 2008 R2 SERVERSTANDARDCORE
|
53
|
+
Size : 3,564,132,307 bytes
|
54
|
+
|
55
|
+
Index : 3
|
56
|
+
Name : Windows Server 2008 R2 SERVERENTERPRISE
|
57
|
+
Description : Windows Server 2008 R2 SERVERENTERPRISE
|
58
|
+
Size : 10,511,024,733 bytes
|
59
|
+
|
60
|
+
Index : 4
|
61
|
+
Name : Windows Server 2008 R2 SERVERENTERPRISECORE
|
62
|
+
Description : Windows Server 2008 R2 SERVERENTERPRISECORE
|
63
|
+
Size : 3,564,106,331 bytes
|
64
|
+
|
65
|
+
Index : 5
|
66
|
+
Name : Windows Server 2008 R2 SERVERDATACENTER
|
67
|
+
Description : Windows Server 2008 R2 SERVERDATACENTER
|
68
|
+
Size : 10,511,131,897 bytes
|
69
|
+
|
70
|
+
Index : 6
|
71
|
+
Name : Windows Server 2008 R2 SERVERDATACENTERCORE
|
72
|
+
Description : Windows Server 2008 R2 SERVERDATACENTERCORE
|
73
|
+
Size : 3,564,144,547 bytes
|
74
|
+
|
75
|
+
Index : 7
|
76
|
+
Name : Windows Server 2008 R2 SERVERWEB
|
77
|
+
Description : Windows Server 2008 R2 SERVERWEB
|
78
|
+
Size : 10,520,222,743 bytes
|
79
|
+
|
80
|
+
Index : 8
|
81
|
+
Name : Windows Server 2008 R2 SERVERWEBCORE
|
82
|
+
Description : Windows Server 2008 R2 SERVERWEBCORE
|
83
|
+
Size : 3,562,750,400 bytes
|
84
|
+
|
85
|
+
The operation completed successfully.
|
86
|
+
```
|
87
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
Veewee::Session.declare({
|
3
|
+
:os_type_id => 'Windows2008_64',
|
4
|
+
# http://technet.microsoft.com/en-us/evalcenter/dd459137.aspx
|
5
|
+
# Download and install full featured software for 180-day trial
|
6
|
+
:iso_file => "7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso",
|
7
|
+
:iso_md5 => "4263be2cf3c59177c45085c0a7bc6ca5",
|
8
|
+
:iso_src => "http://care.dlservice.microsoft.com//dl/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso",
|
9
|
+
:iso_download_timeout => "1000",
|
10
|
+
:cpu_count => '1',
|
11
|
+
:memory_size=> '384',
|
12
|
+
:disk_size => '20280', :disk_format => 'VDI', :hostiocache => 'off',
|
13
|
+
|
14
|
+
:floppy_files => [
|
15
|
+
"Autounattend.xml",
|
16
|
+
"oracle-cert.cer"
|
17
|
+
],
|
18
|
+
|
19
|
+
:boot_wait => "1",
|
20
|
+
:boot_cmd_sequence => [''],
|
21
|
+
:winrm_user => "vagrant", :winrm_password => "vagrant",
|
22
|
+
:kickstart_port => "7100",
|
23
|
+
:postinstall_timeout => "10000",
|
24
|
+
:postinstall_files => [
|
25
|
+
"install-chef.bat",
|
26
|
+
"install-vbox.bat"
|
27
|
+
],
|
28
|
+
:sudo_cmd => "%f",
|
29
|
+
:shutdown_cmd => "shutdown /s /t 10 /f /d p:4:1 /c \"Vagrant Shutdown\"" ,
|
30
|
+
# :shutdown_cmd => "shutdown /s /t 60 /d p:4:1 /c \"Vagrant Shutdown\"",
|
31
|
+
})
|
32
|
+
|
33
|
+
|
Binary file
|
@@ -0,0 +1,74 @@
|
|
1
|
+
set -x
|
2
|
+
|
3
|
+
# Create the home directory
|
4
|
+
mkdir -p /home/vagrant
|
5
|
+
chown vagrant /home/vagrant
|
6
|
+
cd /home/vagrant
|
7
|
+
|
8
|
+
# Install ssh certificates
|
9
|
+
mkdir /home/vagrant/.ssh
|
10
|
+
chmod 700 /home/vagrant/.ssh
|
11
|
+
cd /home/vagrant/.ssh
|
12
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
|
13
|
+
chown -R vagrant /home/vagrant/.ssh
|
14
|
+
cd ..
|
15
|
+
|
16
|
+
# Install rpm,apt-get like code for cygwin
|
17
|
+
# http://superuser.com/questions/40545/upgrading-and-installing-packages-through-the-cygwin-command-line
|
18
|
+
wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg
|
19
|
+
chmod +x apt-cyg
|
20
|
+
mv apt-cyg /usr/local/bin/
|
21
|
+
|
22
|
+
# 7zip will allow us to extract a file from an ISO
|
23
|
+
wget http://downloads.sourceforge.net/sevenzip/7z920-x64.msi
|
24
|
+
msiexec /qb /i 7z920-x64.msi
|
25
|
+
|
26
|
+
# Download Virtualbox Additions
|
27
|
+
VBOX_VERSION="4.1.8" #"4.0.8"
|
28
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
29
|
+
|
30
|
+
# Extract the installer from the ISO (WHY WHY WHY isn't this available not bundled within an ISO)
|
31
|
+
/cygdrive/c/Program\ Files/7-Zip/7z.exe x VBoxGuestAdditions_$VBOX_VERSION.iso VBoxWindowsAdditions-amd64.exe
|
32
|
+
|
33
|
+
# Mark Oracle as a trusted installer
|
34
|
+
#http://blogs.msdn.com/b/steverac/archive/2009/07/09/adding-certificates-to-the-local-certificates-store-and-setting-local-policy-using-a-command-line-system-center-updates-publisher-example.aspx
|
35
|
+
|
36
|
+
certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
|
37
|
+
|
38
|
+
# Install the Virtualbox Additions
|
39
|
+
./VBoxWindowsAdditions-amd64.exe /S
|
40
|
+
|
41
|
+
|
42
|
+
#Rather than do the manual install of ruby and chef, just use the opscode msi
|
43
|
+
curl -L http://www.opscode.com/chef/install.msi -o chef-client-latest.msi
|
44
|
+
msiexec /qb /i chef-client-latest.msi
|
45
|
+
|
46
|
+
|
47
|
+
#http://www.msfn.org/board/topic/105277-howto-create-a-fully-up-to-date-xp-x64-dvd/
|
48
|
+
|
49
|
+
#Making aliases
|
50
|
+
cat <<EOF > /home/vagrant/.bash_profile
|
51
|
+
alias chef-client="chef-client.bat"
|
52
|
+
alias gem="gem.bat"
|
53
|
+
alias ruby="ruby.exe"
|
54
|
+
alias puppet="puppet.bat"
|
55
|
+
alias ohai="ohai.bat"
|
56
|
+
alias irb="irb.bat"
|
57
|
+
alias facter="facter.bat"
|
58
|
+
EOF
|
59
|
+
|
60
|
+
|
61
|
+
cat <<'EOF' > /bin/sudo
|
62
|
+
#!/usr/bin/bash
|
63
|
+
exec "$@"
|
64
|
+
EOF
|
65
|
+
chmod 755 /bin/sudo
|
66
|
+
|
67
|
+
# Mounting a directory
|
68
|
+
net.exe use '\\vboxsvr\veewee-validation'
|
69
|
+
|
70
|
+
|
71
|
+
# Reboot
|
72
|
+
# http://www.techrepublic.com/blog/datacenter/restart-windows-server-2003-from-the-command-line/245
|
73
|
+
shutdown.exe /r /t 0 /d p:2:4 /c "Vagrant initial reboot"
|
74
|
+
|