3.0 on Ravello

Minor updates to support deployment on Ravello
master
DemitasseNZ 2018-07-20 10:50:23 +12:00
parent 945c87edba
commit 3cfbe4ed26
12 changed files with 179 additions and 47 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Build/Automate/DC/MBOOT.C32 Normal file

Binary file not shown.

View File

@ -130,6 +130,7 @@ if (Test-Path "B:\ESXi67\*") {
Write-BuildLog "ESXi 6.7 found; creating C:\TFTP-Root\ESXi67 and copying ESXi 67 boot files." Write-BuildLog "ESXi 6.7 found; creating C:\TFTP-Root\ESXi67 and copying ESXi 67 boot files."
$null = $null = New-Item -Path C:\TFTP-Root\ESXi67 -ItemType Directory -Force -Confirm:$false $null = $null = New-Item -Path C:\TFTP-Root\ESXi67 -ItemType Directory -Force -Confirm:$false
xcopy B:\ESXi67\*.* C:\TFTP-Root\ESXi67\ /s /c /y /q xcopy B:\ESXi67\*.* C:\TFTP-Root\ESXi67\ /s /c /y /q
xcopy b:\automate\DC\mboot.c32 C:\TFTP-Root\ESXi67\ /y /q
Get-Content C:\TFTP-Root\ESXi67\BOOT.CFG | %{$_ -replace "/","/ESXi67/"} | Set-Content C:\TFTP-Root\ESXi67\Besx1-67.cfg Get-Content C:\TFTP-Root\ESXi67\BOOT.CFG | %{$_ -replace "/","/ESXi67/"} | Set-Content C:\TFTP-Root\ESXi67\Besx1-67.cfg
Add-Content C:\TFTP-Root\ESXi67\Besx1-67.cfg "kernelopt=ks=nfs://192.168.199.7/mnt/LABVOL/Build/Automate/Hosts/esx1-5.cfg" Add-Content C:\TFTP-Root\ESXi67\Besx1-67.cfg "kernelopt=ks=nfs://192.168.199.7/mnt/LABVOL/Build/Automate/Hosts/esx1-5.cfg"
Get-Content C:\TFTP-Root\ESXi67\BOOT.CFG | %{$_ -replace "/","/ESXi67/"} | Set-Content C:\TFTP-Root\ESXi67\Besx2-67.cfg Get-Content C:\TFTP-Root\ESXi67\BOOT.CFG | %{$_ -replace "/","/ESXi67/"} | Set-Content C:\TFTP-Root\ESXi67\Besx2-67.cfg
@ -154,6 +155,7 @@ if (Test-Path "B:\ESXi65\*") {
Write-BuildLog "ESXi 6.5 found; creating C:\TFTP-Root\ESXi65 and copying ESXi 65 boot files." Write-BuildLog "ESXi 6.5 found; creating C:\TFTP-Root\ESXi65 and copying ESXi 65 boot files."
$null = $null = New-Item -Path C:\TFTP-Root\ESXi65 -ItemType Directory -Force -Confirm:$false $null = $null = New-Item -Path C:\TFTP-Root\ESXi65 -ItemType Directory -Force -Confirm:$false
xcopy B:\ESXi65\*.* C:\TFTP-Root\ESXi65\ /s /c /y /q xcopy B:\ESXi65\*.* C:\TFTP-Root\ESXi65\ /s /c /y /q
xcopy b:\automate\DC\mboot.c32 C:\TFTP-Root\ESXi65\ /y /q
Get-Content C:\TFTP-Root\ESXi65\BOOT.CFG | %{$_ -replace "/","/ESXi65/"} | Set-Content C:\TFTP-Root\ESXi65\Besx1-65.cfg Get-Content C:\TFTP-Root\ESXi65\BOOT.CFG | %{$_ -replace "/","/ESXi65/"} | Set-Content C:\TFTP-Root\ESXi65\Besx1-65.cfg
Add-Content C:\TFTP-Root\ESXi65\Besx1-65.cfg "kernelopt=ks=nfs://192.168.199.7/mnt/LABVOL/Build/Automate/Hosts/esx1-5.cfg" Add-Content C:\TFTP-Root\ESXi65\Besx1-65.cfg "kernelopt=ks=nfs://192.168.199.7/mnt/LABVOL/Build/Automate/Hosts/esx1-5.cfg"
Get-Content C:\TFTP-Root\ESXi65\BOOT.CFG | %{$_ -replace "/","/ESXi65/"} | Set-Content C:\TFTP-Root\ESXi65\Besx2-65.cfg Get-Content C:\TFTP-Root\ESXi65\BOOT.CFG | %{$_ -replace "/","/ESXi65/"} | Set-Content C:\TFTP-Root\ESXi65\Besx2-65.cfg
@ -319,7 +321,7 @@ if (Test-Path "B:\gParted\*") {
LABEL gParted LABEL gParted
MENU LABEL gParted utility MENU LABEL gParted utility
kernel gparted/vmlinuz kernel gparted/vmlinuz
append initrd=gparted/initrd.img boot=live config components union=overlay username=user noswap noeject ip= vga=788 fetch=tftp://\\dc.lab.local/gparted/filesystem.squashfs append initrd=gparted/initrd.img boot=live config components union=overlay username=user noswap noeject ip= vga=788 fetch=tftp://192.168.199.4/gparted/filesystem.squashfs
"@ "@
} }
@ -515,10 +517,10 @@ netsh dhcp add server dc.lab.local 192.168.199.4 >> C:\DNS.log
netsh dhcp server \\dc.lab.local add scope 192.168.199.0 255.255.255.0 "Lab scope" "Scope for lab.local" >> C:\DNS.log netsh dhcp server \\dc.lab.local add scope 192.168.199.0 255.255.255.0 "Lab scope" "Scope for lab.local" >> C:\DNS.log
netsh dhcp server \\dc.lab.local scope 192.168.199.0 add iprange 192.168.199.100 192.168.199.199 >> C:\DNS.log netsh dhcp server \\dc.lab.local scope 192.168.199.0 add iprange 192.168.199.100 192.168.199.199 >> C:\DNS.log
netsh dhcp server \\dc.lab.local scope 192.168.199.0 set optionvalue 003 IPADDRESS 192.168.199.2 >> C:\DNS.log netsh dhcp server \\dc.lab.local scope 192.168.199.0 set optionvalue 003 IPADDRESS 192.168.199.2 >> C:\DNS.log
netsh dhcp server \\dc.lab.local scope 192.168.199.0 set optionvalue 005 IPADDRESS \\dc.lab.local >> C:\DNS.log netsh dhcp server \\dc.lab.local scope 192.168.199.0 set optionvalue 005 IPADDRESS 192.168.199.4 >> C:\DNS.log
netsh dhcp server \\dc.lab.local scope 192.168.199.0 set optionvalue 006 IPADDRESS \\dc.lab.local >> C:\DNS.log netsh dhcp server \\dc.lab.local scope 192.168.199.0 set optionvalue 006 IPADDRESS 192.168.199.4 >> C:\DNS.log
netsh dhcp server \\dc.lab.local scope 192.168.199.0 set optionvalue 015 STRING lab.local >> C:\DNS.log netsh dhcp server \\dc.lab.local scope 192.168.199.0 set optionvalue 015 STRING lab.local >> C:\DNS.log
netsh dhcp server \\dc.lab.local scope 192.168.199.0 set optionvalue 066 STRING \\dc.lab.local >> C:\DNS.log netsh dhcp server \\dc.lab.local scope 192.168.199.0 set optionvalue 066 STRING 192.168.199.4 >> C:\DNS.log
netsh dhcp server \\dc.lab.local scope 192.168.199.0 set optionvalue 067 STRING pxelinux.0 >> C:\DNS.log netsh dhcp server \\dc.lab.local scope 192.168.199.0 set optionvalue 067 STRING pxelinux.0 >> C:\DNS.log
netsh dhcp server \\dc.lab.local scope 192.168.199.0 set state 1 >> C:\DNS.log netsh dhcp server \\dc.lab.local scope 192.168.199.0 set state 1 >> C:\DNS.log
Write-BuildLog "Checking available SQL Express versions." Write-BuildLog "Checking available SQL Express versions."
@ -532,6 +534,9 @@ if (Test-Path "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\sqlcmd.exe")
copy B:\VIM_67\redist\SQLEXPR\SQLEXPR_x64_ENU.exe C:\temp copy B:\VIM_67\redist\SQLEXPR\SQLEXPR_x64_ENU.exe C:\temp
$Arguments = '/IACCEPTSQLSERVERLICENSETERMS /action=Install /FEATURES=SQL,Tools /SQLSYSADMINACCOUNTS="Lab\Domain Admins" /SQLSVCACCOUNT="Lab\vi-admin" /SQLSVCPASSWORD="' + $AdminPWD + '" /AGTSVCACCOUNT="Lab\vi-admin" /AGTSVCPASSWORD="' + $AdminPWD + '" /ADDCURRENTUSERASSQLADMIN /SECURITYMODE=SQL /SAPWD="VMware1!" /INSTANCENAME=SQLExpress /BROWSERSVCSTARTUPTYPE="Automatic" /TCPENABLED=1 /NPENABLED=1 /SQLSVCSTARTUPTYPE=Automatic /q' $Arguments = '/IACCEPTSQLSERVERLICENSETERMS /action=Install /FEATURES=SQL,Tools /SQLSYSADMINACCOUNTS="Lab\Domain Admins" /SQLSVCACCOUNT="Lab\vi-admin" /SQLSVCPASSWORD="' + $AdminPWD + '" /AGTSVCACCOUNT="Lab\vi-admin" /AGTSVCPASSWORD="' + $AdminPWD + '" /ADDCURRENTUSERASSQLADMIN /SECURITYMODE=SQL /SAPWD="VMware1!" /INSTANCENAME=SQLExpress /BROWSERSVCSTARTUPTYPE="Automatic" /TCPENABLED=1 /NPENABLED=1 /SQLSVCSTARTUPTYPE=Automatic /q'
Start-Process C:\temp\SQLEXPR_x64_ENU.exe -ArgumentList $Arguments -Wait Start-Process C:\temp\SQLEXPR_x64_ENU.exe -ArgumentList $Arguments -Wait
do {
start-sleep 10
} until ((get-process "msiexec" -ea SilentlyContinue) -eq $Null)
del c:\TEMP\SQLEXPR_x64_ENU.EXE del c:\TEMP\SQLEXPR_x64_ENU.EXE
Write-BuildLog "Creating Databases." Write-BuildLog "Creating Databases."
Start-Process "C:\Program Files\Microsoft SQL Server\110\Tools\Binn\sqlcmd.exe" -ArgumentList "-S dc\SQLEXPRESS -i B:\Automate\DC\MakeDB.txt" -RedirectStandardOutput c:\sqllog.txt -Wait Start-Process "C:\Program Files\Microsoft SQL Server\110\Tools\Binn\sqlcmd.exe" -ArgumentList "-S dc\SQLEXPRESS -i B:\Automate\DC\MakeDB.txt" -RedirectStandardOutput c:\sqllog.txt -Wait
@ -542,6 +547,9 @@ if (Test-Path "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\sqlcmd.exe")
copy B:\VIM_65\redist\SQLEXPR\SQLEXPR_x64_ENU.exe C:\temp copy B:\VIM_65\redist\SQLEXPR\SQLEXPR_x64_ENU.exe C:\temp
$Arguments = '/IACCEPTSQLSERVERLICENSETERMS /action=Install /FEATURES=SQL,Tools /SQLSYSADMINACCOUNTS="Lab\Domain Admins" /SQLSVCACCOUNT="Lab\vi-admin" /SQLSVCPASSWORD="' + $AdminPWD + '" /AGTSVCACCOUNT="Lab\vi-admin" /AGTSVCPASSWORD="' + $AdminPWD + '" /ADDCURRENTUSERASSQLADMIN /SECURITYMODE=SQL /SAPWD="VMware1!" /INSTANCENAME=SQLExpress /BROWSERSVCSTARTUPTYPE="Automatic" /TCPENABLED=1 /NPENABLED=1 /SQLSVCSTARTUPTYPE=Automatic /q' $Arguments = '/IACCEPTSQLSERVERLICENSETERMS /action=Install /FEATURES=SQL,Tools /SQLSYSADMINACCOUNTS="Lab\Domain Admins" /SQLSVCACCOUNT="Lab\vi-admin" /SQLSVCPASSWORD="' + $AdminPWD + '" /AGTSVCACCOUNT="Lab\vi-admin" /AGTSVCPASSWORD="' + $AdminPWD + '" /ADDCURRENTUSERASSQLADMIN /SECURITYMODE=SQL /SAPWD="VMware1!" /INSTANCENAME=SQLExpress /BROWSERSVCSTARTUPTYPE="Automatic" /TCPENABLED=1 /NPENABLED=1 /SQLSVCSTARTUPTYPE=Automatic /q'
Start-Process C:\temp\SQLEXPR_x64_ENU.exe -ArgumentList $Arguments -Wait Start-Process C:\temp\SQLEXPR_x64_ENU.exe -ArgumentList $Arguments -Wait
do {
start-sleep 10
} until ((get-process "msiexec" -ea SilentlyContinue) -eq $Null)
del c:\TEMP\SQLEXPR_x64_ENU.EXE del c:\TEMP\SQLEXPR_x64_ENU.EXE
Write-BuildLog "Creating Databases." Write-BuildLog "Creating Databases."
Start-Process "C:\Program Files\Microsoft SQL Server\110\Tools\Binn\sqlcmd.exe" -ArgumentList "-S dc\SQLEXPRESS -i B:\Automate\DC\MakeDB.txt" -RedirectStandardOutput c:\sqllog.txt -Wait Start-Process "C:\Program Files\Microsoft SQL Server\110\Tools\Binn\sqlcmd.exe" -ArgumentList "-S dc\SQLEXPRESS -i B:\Automate\DC\MakeDB.txt" -RedirectStandardOutput c:\sqllog.txt -Wait
@ -552,6 +560,9 @@ if (Test-Path "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\sqlcmd.exe")
copy B:\VIM_60\redist\SQLEXPR\SQLEXPR_x64_ENU.exe C:\temp copy B:\VIM_60\redist\SQLEXPR\SQLEXPR_x64_ENU.exe C:\temp
$Arguments = '/IACCEPTSQLSERVERLICENSETERMS /action=Install /FEATURES=SQL,Tools /SQLSYSADMINACCOUNTS="Lab\Domain Admins" /SQLSVCACCOUNT="Lab\vi-admin" /SQLSVCPASSWORD="' + $AdminPWD + '" /AGTSVCACCOUNT="Lab\vi-admin" /AGTSVCPASSWORD="' + $AdminPWD + '" /ADDCURRENTUSERASSQLADMIN /SECURITYMODE=SQL /SAPWD="VMware1!" /INSTANCENAME=SQLExpress /BROWSERSVCSTARTUPTYPE="Automatic" /TCPENABLED=1 /NPENABLED=1 /SQLSVCSTARTUPTYPE=Automatic /q' $Arguments = '/IACCEPTSQLSERVERLICENSETERMS /action=Install /FEATURES=SQL,Tools /SQLSYSADMINACCOUNTS="Lab\Domain Admins" /SQLSVCACCOUNT="Lab\vi-admin" /SQLSVCPASSWORD="' + $AdminPWD + '" /AGTSVCACCOUNT="Lab\vi-admin" /AGTSVCPASSWORD="' + $AdminPWD + '" /ADDCURRENTUSERASSQLADMIN /SECURITYMODE=SQL /SAPWD="VMware1!" /INSTANCENAME=SQLExpress /BROWSERSVCSTARTUPTYPE="Automatic" /TCPENABLED=1 /NPENABLED=1 /SQLSVCSTARTUPTYPE=Automatic /q'
Start-Process C:\temp\SQLEXPR_x64_ENU.exe -ArgumentList $Arguments -Wait Start-Process C:\temp\SQLEXPR_x64_ENU.exe -ArgumentList $Arguments -Wait
do {
start-sleep 10
} until ((get-process "msiexec" -ea SilentlyContinue) -eq $Null)
del c:\TEMP\SQLEXPR_x64_ENU.EXE del c:\TEMP\SQLEXPR_x64_ENU.EXE
Write-BuildLog "Creating Databases." Write-BuildLog "Creating Databases."
Start-Process "C:\Program Files\Microsoft SQL Server\110\Tools\Binn\sqlcmd.exe" -ArgumentList "-S dc\SQLEXPRESS -i B:\Automate\DC\MakeDB.txt" -RedirectStandardOutput c:\sqllog.txt -Wait Start-Process "C:\Program Files\Microsoft SQL Server\110\Tools\Binn\sqlcmd.exe" -ArgumentList "-S dc\SQLEXPRESS -i B:\Automate\DC\MakeDB.txt" -RedirectStandardOutput c:\sqllog.txt -Wait
@ -562,6 +573,9 @@ if (Test-Path "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\sqlcmd.exe")
copy B:\VIM_55\redist\SQLEXPR\SQLEXPR_x64_ENU.exe C:\temp copy B:\VIM_55\redist\SQLEXPR\SQLEXPR_x64_ENU.exe C:\temp
$Arguments = '/IACCEPTSQLSERVERLICENSETERMS /action=Install /FEATURES=SQL,Tools /SQLSYSADMINACCOUNTS="Lab\Domain Admins" /SQLSVCACCOUNT="Lab\vi-admin" /SQLSVCPASSWORD="' + $AdminPWD + '" /AGTSVCACCOUNT="Lab\vi-admin" /AGTSVCPASSWORD="' + $AdminPWD + '" /ADDCURRENTUSERASSQLADMIN /SECURITYMODE=SQL /SAPWD="VMware1!" /INSTANCENAME=SQLExpress /BROWSERSVCSTARTUPTYPE="Automatic" /TCPENABLED=1 /NPENABLED=1 /SQLSVCSTARTUPTYPE=Automatic /q' $Arguments = '/IACCEPTSQLSERVERLICENSETERMS /action=Install /FEATURES=SQL,Tools /SQLSYSADMINACCOUNTS="Lab\Domain Admins" /SQLSVCACCOUNT="Lab\vi-admin" /SQLSVCPASSWORD="' + $AdminPWD + '" /AGTSVCACCOUNT="Lab\vi-admin" /AGTSVCPASSWORD="' + $AdminPWD + '" /ADDCURRENTUSERASSQLADMIN /SECURITYMODE=SQL /SAPWD="VMware1!" /INSTANCENAME=SQLExpress /BROWSERSVCSTARTUPTYPE="Automatic" /TCPENABLED=1 /NPENABLED=1 /SQLSVCSTARTUPTYPE=Automatic /q'
Start-Process C:\temp\SQLEXPR_x64_ENU.exe -ArgumentList $Arguments -Wait Start-Process C:\temp\SQLEXPR_x64_ENU.exe -ArgumentList $Arguments -Wait
do {
start-sleep 10
} until ((get-process "msiexec" -ea SilentlyContinue) -eq $Null)
del c:\TEMP\SQLEXPR_x64_ENU.EXE del c:\TEMP\SQLEXPR_x64_ENU.EXE
Write-BuildLog "Creating Databases." Write-BuildLog "Creating Databases."
Start-Process "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\sqlcmd.exe" -ArgumentList "-S dc\SQLEXPRESS -i B:\Automate\DC\MakeDB.txt" -RedirectStandardOutput c:\sqllog.txt -Wait Start-Process "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\sqlcmd.exe" -ArgumentList "-S dc\SQLEXPRESS -i B:\Automate\DC\MakeDB.txt" -RedirectStandardOutput c:\sqllog.txt -Wait

160
Build/Automate/NAS_Build.sh Normal file
View File

@ -0,0 +1,160 @@
#!/bin/sh
mkdir /mnt/cd0
mkdir /mnt/cd1
mount /dev/sr0 /mnt/cd0
mount /dev/sr1 /mnt/cd1
if [ -f "/mnt/LABVOL/Build/ESXi51/vmware-esx-base-readme" ]
then
echo "Already have ESXi 5.1 installer"
else
if grep -q "VMware ESXi 5.1" "/mnt/cd0/vmware-esx-base-osl.txt"
then
echo "Found ESXi 5.1 installer on CD0"
cp -r /mnt/cd0/* /mnt/LABVOL/Build/ESXi51
fi
if grep -q "VMware ESXi 5.1" "/mnt/cd1/vmware-esx-base-osl.txt"
then
echo "Found ESXi 5.1 installer on CD1"
cp -r /mnt/cd1/* /mnt/LABVOL/Build/ESXi51
fi
fi
if [ -f "/mnt/LABVOL/Build/ESXi55/vmware-esx-base-readme" ]
then
echo "Already have ESXi 5.5 installer"
else
if grep -q "VMware ESXi 5.5" "/mnt/cd0/vmware-esx-base-osl.txt"
then
echo "Found ESXi 5.5 installer on CD0"
cp -r /mnt/cd0/* /mnt/LABVOL/Build/ESXi55
fi
if grep -q "VMware ESXi 5.5" "/mnt/cd1/vmware-esx-base-osl.txt"
then
echo "Found ESXi 5.5 installer on CD1"
cp -r /mnt/cd1/* /mnt/LABVOL/Build/ESXi55
fi
fi
if [ -f "/mnt/LABVOL/Build/ESXi60/vmware-esx-base-readme" ]
then
echo "Already have ESXi 6.0 installer"
else
if grep -q "VMware ESXi 6.0" "/mnt/cd0/vmware-esx-base-osl.txt"
then
echo "Found ESXi 6.0 installer on CD0"
cp -r /mnt/cd0/* /mnt/LABVOL/Build/ESXi60
fi
if grep -q "VMware ESXi 6.0" "/mnt/cd1/vmware-esx-base-osl.txt"
then
echo "Found ESXi 6.0 installer on CD1"
cp -r /mnt/cd1/* /mnt/LABVOL/Build/ESXi60
fi
fi
if [ -f "/mnt/LABVOL/Build/ESXi65/vmware-esx-base-readme" ]
then
echo "Already have ESXi 6.5 installer"
else
if grep -q "6.5.0" "/mnt/cd0/vmware-esx-base-osl.txt"
then
echo "Found ESXi 6.5 installer on CD0"
cp -r /mnt/cd0/* /mnt/LABVOL/Build/ESXi65
fi
if grep -q "6.5.0" "/mnt/cd1/vmware-esx-base-osl.txt"
then
echo "Found ESXi 6.5 installer on CD1"
cp -r /mnt/cd1/* /mnt/LABVOL/Build/ESXi65
fi
fi
if [ -f "/mnt/LABVOL/Build/ESXi67/vmware-esx-base-readme" ]
then
echo "Already have ESXi 6.7 installer"
else
if grep -q "VMware ESXi 6.7" "/mnt/cd0/vmware-esx-base-osl.txt"
then
echo "Found ESXi 6.7 installer on CD0"
cp -r /mnt/cd0/* /mnt/LABVOL/Build/ESXi67
fi
if grep -q "VMware ESXi 6.7" "/mnt/cd1/vmware-esx-base-osl.txt"
then
echo "Found ESXi 6.7 installer on CD1"
cp -r /mnt/cd1/* /mnt/LABVOL/Build/ESXi67
fi
fi
if [ -f "/mnt/LABVOL/Build/VIM_51/autorun.exe" ]
then
echo "Already have vCentre 5.1 installer"
else
if grep -q "VMWARE vCenter Server 5.1" "/mnt/cd0/readme.txt"
then
echo "Found vCentre 5.1 installer on CD0"
cp -r /mnt/cd0/* /mnt/LABVOL/Build/VIM_51
fi
if grep -q "VMWARE vCenter Server 5.1" "/mnt/cd1/readme.txt"
then
echo "Found vCentre 5.1 installer on CD1"
cp -r /mnt/cd1/* /mnt/LABVOL/Build/VIM_51
fi
fi
if [ -f "/mnt/LABVOL/Build/VIM_55/autorun.exe" ]
then
echo "Already have vCentre 5.5 installer"
else
if grep -q "VMWARE vCenter Server 5.5" "/mnt/cd0/readme.txt"
then
echo "Found vCentre 5.5 installer on CD0"
cp -r /mnt/cd0/* /mnt/LABVOL/Build/VIM_55
fi
if grep -q "VMWARE vCenter Server 5.5" "/mnt/cd1/readme.txt"
then
echo "Found vCentre 5.5 installer on CD1"
cp -r /mnt/cd1/* /mnt/LABVOL/Build/VIM_55
fi
fi
if [ -f "/mnt/LABVOL/Build/VIM_60/autorun.exe" ]
then
echo "Already have vCentre 6.0 installer"
else
if grep -q "VMWARE vCenter Server 6.0" "/mnt/cd0/readme.txt"
then
echo "Found vCentre 6.0 installer on CD0"
cp -r /mnt/cd0/* /mnt/LABVOL/Build/VIM_60
fi
if grep -q "VMWARE vCenter Server 6.0" "/mnt/cd1/readme.txt"
then
echo "Found vCentre 6.0 installer on CD1"
cp -r /mnt/cd1/* /mnt/LABVOL/Build/VIM_60
fi
fi
if [ -f "/mnt/LABVOL/Build/VIM_65/autorun.exe" ]
then
echo "Already have vCentre 6.5 installer"
else
if grep -q "VMWARE vCenter Server 6.5" "/mnt/cd0/readme.txt"
then
echo "Found vCentre 6.5 installer on CD0"
cp -r /mnt/cd0/* /mnt/LABVOL/Build/VIM_65
fi
if grep -q "VMWARE vCenter Server 6.5" "/mnt/cd1/readme.txt"
then
echo "Found vCentre 6.5 installer on CD1"
cp -r /mnt/cd1/* /mnt/LABVOL/Build/VIM_65
fi
fi
if [ -f "/mnt/LABVOL/Build/VIM_67/autorun.exe" ]
then
echo "Already have vCentre 6.7 installer"
else
if grep -q "VMWARE vCenter Server 6.7" "/mnt/cd0/readme.txt"
then
echo "Found vCentre 6.7 installer on CD0"
cp -r /mnt/cd0/* /mnt/LABVOL/Build/VIM_67
fi
if grep -q "VMWARE vCenter Server 6.7" "/mnt/cd1/readme.txt"
then
echo "Found vCentre 6.7 installer on CD1"
cp -r /mnt/cd1/* /mnt/LABVOL/Build/VIM_67
fi
fi
umount -f /dev/sr0
umount -f /dev/sr1

View File

@ -12,7 +12,7 @@ BuildVM=true
ProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX ProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
ViewInstall=None ViewInstall=None
ViewInstallOptions=50,51,52,53,60,70,None ViewInstallOptions=50,51,52,53,60,70,75,None
BuildViewVM=true BuildViewVM=true
ViewVMProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX ViewVMProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

View File

@ -1,42 +0,0 @@
#!/bin/sh
mkdir /mnt/cd0
mkdir /mnt/cd1
mount /dev/sr0 /mnt/cd0
mount /dev/sr1 /mnt/cd1
if [ -f "/mnt/LABVOL/Build/ESXi60/vmware-esx-base-readme" ]
then
echo "Already have ESXi 6.0 installer"
else
if [ -f "/mnt/cd0/vmware-esx-base-readme" ]
then
echo "Found ESXi installer on CD0"
cp -r /mnt/cd0/* /mnt/LABVOL/Build/ESXi60
fi
if [ -f "/mnt/cd1/vmware-esx-base-readme" ]
then
echo "Found ESXi installer on CD1"
cp -r /mnt/cd1/* /mnt/LABVOL/Build/ESXi60
fi
fi
if [ -f "/mnt/LABVOL/Build/VIM_60/autorun.exe" ]
then
echo "Already have vCentre 6.0 installer"
else
if [ -f "/mnt/cd0/autorun.exe" ]
then
echo "Found vCentre installer on CD0"
cp -r /mnt/cd0/* /mnt/LABVOL/Build/VIM_60
fi
if [ -f "/mnt/cd1/autorun.exe" ]
then
echo "Found vCentre installer on CD1"
cp -r /mnt/cd1/* /mnt/LABVOL/Build/VIM_60
fi
fi
umount -f /dev/sr0
umount -f /dev/sr1