Skip to content
Browse files

add VM Memory Size parameter to jumpstart

  • Loading branch information...
1 parent 6c73c0f commit 8d40348b693a990b551519b38369bd4a9b66d967 @ardentperf committed Sep 29, 2011
Showing with 9 additions and 1 deletion.
  1. +1 −0 dojump.bat
  2. +5 −1 input.hta
  3. +3 −0 setupenv.bat
View
1 dojump.bat
@@ -57,6 +57,7 @@ time /t
REM ====================== Create Fixup Script =======================
echo s/fileName.*RAC11g-iso/fileName = ^"%DESTDRIVEISO%\\%DESTDIRISO%/ >%TEMP%\fixup.sed
echo s/fileName.*RAC11g-shared/fileName = ^"%DESTDRIVESHARED%\\%DESTDIRSHARED%/ >>%TEMP%\fixup.sed
+echo s/memsize =.*/memsize = ^"%MEMSIZE%^"/ >>%TEMP%\fixup.sed
type %TEMP%\fixup.sed
REM ====================== Decompress New Files ======================
View
6 input.hta
@@ -3,14 +3,15 @@
<title>RAC Attack - Jumpstart Configuration</title>
<hta:application>
<script language="vbscript">
- window.resizeTo 700,350
+ window.resizeTo 700,400
Sub SaveBatch()
Set fs = CreateObject("Scripting.FileSystemObject")
strFile = fs.GetAbsolutePathName(fs.BuildPath(fs.GetSpecialFolder(2), "UserIn.bat"))
Set ts = fs.OpenTextFile(strFile, 2, True)
ts.WriteLine "SET SOURCEDRIVE=" & document.Forms(0).elements("sourcedrive").value
ts.WriteLine "SET DESTDRIVE=" & document.Forms(0).elements("destdrive").value
ts.WriteLine "SET DESTDRIVESHARED=" & document.Forms(0).elements("destdriveshared").value
+ ts.WriteLine "SET MEMSIZE=" & document.Forms(0).elements("memsize").value
ts.WriteLine "SET VMWAREDIR=""" & document.Forms(0).elements("vmwaredir").value & """"
ts.WriteLine "SET MYUSER=" & document.Forms(0).elements("username").value
ts.WriteLine "SET MYPASS=" & document.Forms(0).elements("password").value
@@ -31,6 +32,9 @@
<tr><td align="right">[RAC11g-shared] / [RAC11g-iso] Datastore Dest Drive</td>
<td><input type=text name=destdriveshared size=5 value="DEFAULT-DESTDRIVESHARED"> <font color="red">15G Required</font></td></tr>
+ <tr><td align="right">VM Memory Size (MB)</td>
+ <td><input type=text name=memsize size=10 value="DEFAULT-MEMSIZE"></td></tr>
+
<tr><td align="right">VMware Installation Directory</td>
<td><input type=text name=vmwaredir size=45 value=DEFAULT-VMWAREDIR></td></tr>
View
3 setupenv.bat
@@ -29,6 +29,8 @@ set DESTDRIVESHARED=C:
set DESTDIRSHARED=RAC11g-shared
set DESTDIRISO=RAC11g-iso
+set MEMSIZE=900
+
set MYUSER=%USERNAME%
set MYPASS=%YOUR_WINDOWS_PASSWORD%
@@ -51,6 +53,7 @@ echo s/DEFAULT-VMWAREDIR/%VMWAREDIR%/ >>%TEMP%\UserIn.sed
echo s/DEFAULT-MYUSER/%MYUSER%/ >>%TEMP%\UserIn.sed
echo s/DEFAULT-MYPASS/%MYPASS%/ >>%TEMP%\UserIn.sed
echo s/DEFAULT-SOURCEDIR/%SOURCEDIR%/ >>%TEMP%\UserIn.sed
+echo s/DEFAULT-MEMSIZE/%MEMSIZE%/ >>%TEMP%\UserIn.sed
sed "s/\\/\\\\/g" %TEMP%\UserIn.sed >%TEMP%\UserIn2.sed
sed -f %TEMP%\UserIn2.sed input.hta >%TEMP%\UserIn.hta

0 comments on commit 8d40348

Please sign in to comment.
Something went wrong with that request. Please try again.