diff --git a/Build/Automate/DC/DropDBs.txt b/Build/Automate/DC/DropDBs.txt index 23b1315..172e1b3 100644 --- a/Build/Automate/DC/DropDBs.txt +++ b/Build/Automate/DC/DropDBs.txt @@ -12,7 +12,3 @@ drop database SRMRep go drop database RSA go -drop database vCloud51 -go -drop database vCloud15 -go \ No newline at end of file diff --git a/Build/Automate/DC/MakeDB.txt b/Build/Automate/DC/MakeDB.txt index 024bb66..8937146 100644 --- a/Build/Automate/DC/MakeDB.txt +++ b/Build/Automate/DC/MakeDB.txt @@ -44,8 +44,6 @@ ALTER AUTHORIZATION ON DATABASE::SRMRep TO VMSRM Go EXEC master..sp_addsrvrolemember @loginame = 'lab\VI-admin', @rolename = 'sysadmin' Go -EXEC master..sp_addsrvrolemember @loginame = 'lab\SVC_Veeam', @rolename = 'sysadmin' -Go USE MASTER GO CREATE DATABASE RSA ON PRIMARY( diff --git a/Build/Automate/DC/MakeDB41.txt b/Build/Automate/DC/MakeDB41.txt index 72054e2..14f337e 100644 --- a/Build/Automate/DC/MakeDB41.txt +++ b/Build/Automate/DC/MakeDB41.txt @@ -28,5 +28,3 @@ ALTER AUTHORIZATION ON DATABASE::SRMRep TO VMSRM Go EXEC master..sp_addsrvrolemember @loginame = 'lab\VI-admin', @rolename = 'sysadmin' Go -EXEC master..sp_addsrvrolemember @loginame = 'lab\SVC_Veeam', @rolename = 'sysadmin' -Go \ No newline at end of file diff --git a/Build/Automate/DC/MakeDBvCD15.txt b/Build/Automate/DC/MakeDBvCD15.txt deleted file mode 100644 index 6f3c892..0000000 --- a/Build/Automate/DC/MakeDBvCD15.txt +++ /dev/null @@ -1,26 +0,0 @@ -USE [master] -GO -CREATE DATABASE [vCloud15] ON PRIMARY -(NAME = N'vCloud15', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\vCloud15.mdf', SIZE = 100MB, FILEGROWTH = 10% ) -LOG ON -(NAME = N'vcdb_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\vCloud15.ldf', SIZE = 1MB, FILEGROWTH = 10%) -COLLATE Latin1_General_CS_AS -GO -USE [vCloud15] -GO -ALTER DATABASE [vCloud15] SET SINGLE_USER WITH ROLLBACK IMMEDIATE; -ALTER DATABASE [vCloud15] SET ALLOW_SNAPSHOT_ISOLATION ON; -ALTER DATABASE [vCloud15] SET READ_COMMITTED_SNAPSHOT ON WITH NO_WAIT; -ALTER DATABASE [vCloud15] SET MULTI_USER; -GO -USE [vCloud15] -GO -CREATE LOGIN [vCloud15] WITH PASSWORD = 'VMware1!', DEFAULT_DATABASE =[vCloud15], - DEFAULT_LANGUAGE =[us_english], CHECK_POLICY=OFF -GO -CREATE USER [vCloud15] for LOGIN [vCloud15] -GO -USE [vCloud15] -GO -sp_addrolemember [db_owner], [vCloud15] -GO diff --git a/Build/Automate/DC/MakeDBvCD51.txt b/Build/Automate/DC/MakeDBvCD51.txt deleted file mode 100644 index 677833f..0000000 --- a/Build/Automate/DC/MakeDBvCD51.txt +++ /dev/null @@ -1,26 +0,0 @@ -USE [master] -GO -CREATE DATABASE [vCloud51] ON PRIMARY -(NAME = N'vCloud51', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\vCloud51.mdf', SIZE = 100MB, FILEGROWTH = 10% ) -LOG ON -(NAME = N'vcdb_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\vCloud51.ldf', SIZE = 1MB, FILEGROWTH = 10%) -COLLATE Latin1_General_CS_AS -GO -USE [vCloud51] -GO -ALTER DATABASE [vCloud51] SET SINGLE_USER WITH ROLLBACK IMMEDIATE; -ALTER DATABASE [vCloud51] SET ALLOW_SNAPSHOT_ISOLATION ON; -ALTER DATABASE [vCloud51] SET READ_COMMITTED_SNAPSHOT ON WITH NO_WAIT; -ALTER DATABASE [vCloud51] SET MULTI_USER; -GO -USE [vCloud51] -GO -CREATE LOGIN [vcloud51] WITH PASSWORD = 'VMware1!', DEFAULT_DATABASE =[vCloud51], - DEFAULT_LANGUAGE =[us_english], CHECK_POLICY=OFF -GO -CREATE USER [vcloud51] for LOGIN [vcloud51] -GO -USE [vCloud51] -GO -sp_addrolemember [db_owner], [vcloud51] -GO \ No newline at end of file diff --git a/Build/Automate/DC/Phase2.cmd b/Build/Automate/DC/Phase2.cmd index 1be1bde..1edfa02 100644 --- a/Build/Automate/DC/Phase2.cmd +++ b/Build/Automate/DC/Phase2.cmd @@ -1,4 +1,5 @@ @echo off +net use B: \\192.168.199.7\Build ver | find "6.1" > nul if %ERRORLEVEL% == 0 goto ver_2K8 ver | find "6.2" > nul @@ -20,6 +21,10 @@ Dism /online /enable-feature /featurename:DirectoryServices-DomainController /al Dism /online /enable-feature /featurename:DirectoryServices-AdministrativeCenter /all /quiet Dism /online /enable-feature /featurename:ActiveDirectory-PowerShell /all /quiet sc config dhcpserver start= auto +regedit -s B:\Automate\_Common\ExecuPol.reg +regedit -s B:\Automate\_Common\NoSCRNSave.reg +regedit -s B:\Automate\_Common\ExplorerView.reg +regedit -s b:\Automate\_Common\Nested.reg echo * Promote to DC echo * Promote to DC >> c:\buildlog.txt copy \\192.168.199.7\Build\Automate\DC\dcpromo.ps1 c:\ diff --git a/Build/Automate/DC/Phase2.ps1 b/Build/Automate/DC/Phase2.ps1 index 6729ea2..51a0a46 100644 --- a/Build/Automate/DC/Phase2.ps1 +++ b/Build/Automate/DC/Phase2.ps1 @@ -15,12 +15,8 @@ if (Test-Path B:\Automate\automate.ini) { Write-BuildLog "Setup Users" NET ACCOUNTS /MAXPWAGE:UNLIMITED >> C:\AD-Users.log 2>> C:\Error.log net group "Domain Admins" vi-admin /add >> C:\AD-Users.log 2>> C:\Error.log - net user SVC_Veeam $AdminPWD /add /Domain >> C:\AD-Users.log 2>> C:\Error.log - net group "Domain Admins" SVC_Veeam /add >> C:\AD-Users.log 2>> C:\Error.log net user SVC_SRM $AdminPWD /add /Domain >> C:\AD-Users.log 2>> C:\Error.log net group "Domain Admins" SVC_SRM /add >> C:\AD-Users.log 2>> C:\Error.log - net user SVC_vCD $AdminPWD /add /Domain >> C:\AD-Users.log 2>> C:\Error.log - net group "Domain Admins" SVC_vCD /add >> C:\AD-Users.log 2>> C:\Error.log net group "ESX Admins" /add >> C:\AD-Users.log 2>> C:\Error.log net group "ESX Admins" vi-admin /add >> C:\AD-Users.log 2>> C:\Error.log net user DomUser $AdminPWD /add /domain >> C:\AD-Users.log 2>> C:\Error.log @@ -338,52 +334,6 @@ if (!($vSphere41 -or $vSphere50 -or $vSphere51 -or $vSphere55 -or $vSphere60)) { Write-BuildLog "Matching vCenter & ESXi distributions not found. Please check the Build share." } -Write-BuildLog "" -Write-BuildLog "Checking for vCloud files..." -if (Test-Path "B:\vCD_51\vmware-vcloud-director-5.1*.bin") { - Write-BuildLog "vCloud Director 5.1 found." - $vcd51 = $true -} else { - $vcd51 = $false -} - -if (Test-Path "B:\vCD_51\VMware-vShield-Manager-5.1*.ova") { - Write-BuildLog "vShield Manager 5.1 for vCloud Director 5.1 found." - $vcd51vsm = $true -} else { - $vcd51vsm = $false -} - -if ($vcd51 -and $vcd51vsm) { - powershell C:\PXEMenuConfig.ps1 vCloud - powershell C:\PXEMenuConfig.ps1 vCD51 - Write-BuildLog "Added vCloud Director 5.1 to PXE menu." -} elseif ($vcd51 -or $vcd51vsm) { - Write-BuildLog "vCloud 5.1 installation requirements not met. Please verify that both vCloud 5.1 & vShield Manager 5.1 exist on the Build share." -} - -if (Test-Path "B:\vCD_15\vmware-vcloud-director-1.5*.bin") { - Write-BuildLog "vCloud Director 1.5 found." - $vcd15 = $true -} else { - $vcd15 = $false -} - -if (Test-Path "B:\vCD_15\VMware-vShield-Manager-5.0*.ova") { - Write-BuildLog "vShield Manager 5.0 for vCloud Director 1.5 found." - $vcd15vsm = $true -} else { - $vcd15vsm = $false -} - -if ($vcd15 -and $vcd15vsm) { - powershell C:\PXEMenuConfig.ps1 vCloud - powershell C:\PXEMenuConfig.ps1 vCD15 - Write-BuildLog "Added vCloud Director 1.5 to PXE menu." -} elseif ($vcd15 -or $vcd15vsm) { - Write-BuildLog "vCloud 1.5 installation requirements not met. Please verify that both vCloud 1.5 & vShield Manager 5.0 exist on the Build share." -} - Write-BuildLog "" Write-BuildLog "Authorise and configure DHCP" netsh dhcp server 192.168.199.4 set dnscredentials administrator lab.local $AdminPWD @@ -416,11 +366,6 @@ dnscmd localhost /RecordAdd lab.local Host4 A 192.168.199.14 >> C:\DNS.log dnscmd localhost /RecordAdd lab.local CS1 A 192.168.199.33 >> C:\DNS.log dnscmd localhost /RecordAdd lab.local CS2 A 192.168.199.34 >> C:\DNS.log dnscmd localhost /RecordAdd lab.local SS A 192.168.199.35 >> C:\DNS.log -dnscmd localhost /RecordAdd lab.local V1 A 192.168.199.36 >> C:\DNS.log -dnscmd localhost /RecordAdd lab.local VBR A 192.168.199.37 >> C:\DNS.log -dnscmd localhost /RecordAdd lab.local vcd A 192.168.199.38 >> C:\DNS.log -dnscmd localhost /RecordAdd lab.local vcd-proxy A 192.168.199.39 >> C:\DNS.log -dnscmd localhost /RecordAdd lab.local vshield A 192.168.199.40 >> C:\DNS.log dnscmd localhost /RecordAdd lab.local DC2 A 192.168.201.4 >> C:\DNS.log dnscmd localhost /RecordAdd lab.local VC2 A 192.168.201.5 >> C:\DNS.log dnscmd localhost /RecordAdd lab.local Host11 A 192.168.201.11 >> C:\DNS.log @@ -436,11 +381,6 @@ dnscmd localhost /RecordAdd 199.168.192.in-addr.arpa 14 PTR Host4.lab.local >> C dnscmd localhost /RecordAdd 199.168.192.in-addr.arpa 33 PTR cs1.lab.local >> C:\DNS.log dnscmd localhost /RecordAdd 199.168.192.in-addr.arpa 34 PTR cs2.lab.local >> C:\DNS.log dnscmd localhost /RecordAdd 199.168.192.in-addr.arpa 35 PTR SS.lab.local >> C:\DNS.log -dnscmd localhost /RecordAdd 199.168.192.in-addr.arpa 36 PTR V1.lab.local >> C:\DNS.log -dnscmd localhost /RecordAdd 199.168.192.in-addr.arpa 37 PTR VBR.lab.local >> C:\DNS.log -dnscmd localhost /RecordAdd 199.168.192.in-addr.arpa 38 PTR vcd.lab.local >> C:\DNS.log -dnscmd localhost /RecordAdd 199.168.192.in-addr.arpa 39 PTR vcd-proxy.lab.local >> C:\DNS.log -dnscmd localhost /RecordAdd 199.168.192.in-addr.arpa 40 PTR vshield.lab.local >> C:\DNS.log dnscmd localhost /RecordAdd 201.168.192.in-addr.arpa 4 PTR DC2.lab.local >> C:\DNS.log dnscmd localhost /RecordAdd 201.168.192.in-addr.arpa 5 PTR VC2.lab.local >> C:\DNS.log dnscmd localhost /RecordAdd 201.168.192.in-addr.arpa 11 PTR Host11.lab.local >> C:\DNS.log @@ -465,8 +405,6 @@ if (Test-Path "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\sqlcmd.exe") del c:\TEMP\SQLEXPR_x64_ENU.EXE 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\MakeDBvCD51.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\MakeDBvCD15.txt" -RedirectStandardOutput c:\sqllog.txt -Wait regedit -s B:\Automate\DC\SQLTCP.reg } elseif (Test-Path "B:\VIM_55\redist\SQLEXPR\SQLEXPR_x64_ENU.exe") { $vc5SQL = $true @@ -477,8 +415,6 @@ if (Test-Path "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\sqlcmd.exe") del c:\TEMP\SQLEXPR_x64_ENU.EXE 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\MakeDBvCD51.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\MakeDBvCD15.txt" -RedirectStandardOutput c:\sqllog.txt -Wait regedit -s B:\Automate\DC\SQLTCP.reg } elseif (Test-Path "B:\VIM_51\redist\SQLEXPR\SQLEXPR_x64_ENU.exe") { $vc5SQL = $true @@ -488,8 +424,6 @@ if (Test-Path "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\sqlcmd.exe") Start-Process C:\temp\SQLEXPR_x64_ENU.exe -ArgumentList $Arguments -Wait 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\MakeDBvCD51.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\MakeDBvCD15.txt" -RedirectStandardOutput c:\sqllog.txt -Wait regedit -s B:\Automate\DC\SQLTCP.reg } elseif (Test-Path "B:\VIM_50\redist\SQLEXPR\SQLEXPR_x64_ENU.exe") { $vc5SQL = $true @@ -499,7 +433,6 @@ if (Test-Path "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\sqlcmd.exe") Start-Process C:\temp\SQLEXPR_x64_ENU.exe -ArgumentList $Arguments -Wait 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\MakeDBvCD15.txt" -RedirectStandardOutput c:\sqllog.txt -Wait regedit -s B:\Automate\DC\SQLTCP.reg } elseif (Test-Path "B:\VIM_41\redist\SQLEXPR\x64\SQLEXPR.EXE") { copy B:\VIM_41\redist\SQLEXPR\x64\SQLEXPR.EXE C:\temp diff --git a/Build/Automate/DC/TFTP-Root/pxelinux.cfg/vCloud.menu b/Build/Automate/DC/TFTP-Root/pxelinux.cfg/vCloud.menu deleted file mode 100644 index f78695e..0000000 --- a/Build/Automate/DC/TFTP-Root/pxelinux.cfg/vCloud.menu +++ /dev/null @@ -1,6 +0,0 @@ -MENU TITLE vCloud installs - -LABEL Main Menu - MENU LABEL ^Return to Main Menu - KERNEL pxelinux.cfg/vesamenu.c32 - APPEND pxelinux.cfg/default diff --git a/Build/Automate/DC/TFTP-Root/vCloud/TRANS.TBL b/Build/Automate/DC/TFTP-Root/vCloud/TRANS.TBL deleted file mode 100644 index 2a22019..0000000 --- a/Build/Automate/DC/TFTP-Root/vCloud/TRANS.TBL +++ /dev/null @@ -1,2 +0,0 @@ -F INITRD.IMG;1 initrd.img -F VMLINUZ.;1 vmlinuz diff --git a/Build/Automate/DC/TFTP-Root/vCloud/initrd.img b/Build/Automate/DC/TFTP-Root/vCloud/initrd.img deleted file mode 100644 index 7edc9bf..0000000 Binary files a/Build/Automate/DC/TFTP-Root/vCloud/initrd.img and /dev/null differ diff --git a/Build/Automate/DC/TFTP-Root/vCloud/vmlinuz b/Build/Automate/DC/TFTP-Root/vCloud/vmlinuz deleted file mode 100644 index 2c27d6d..0000000 Binary files a/Build/Automate/DC/TFTP-Root/vCloud/vmlinuz and /dev/null differ diff --git a/Build/Automate/DC/WWWRoot/Default.htm b/Build/Automate/DC/WWWRoot/Default.htm index aac0b6b..bf1fd88 100644 --- a/Build/Automate/DC/WWWRoot/Default.htm +++ b/Build/Automate/DC/WWWRoot/Default.htm @@ -15,7 +15,6 @@ vSphere Web Client
vSphere Web Client
-vCloud Director Management
vCloud Director Management

vShield Management @@ -27,17 +26,12 @@ -

Veeam

+

VMware View

-Business View Veeam -Business View
-
-Veeam Reporter Veeam -ONE Reporter View Administrator Portal View Administrator Console - CS1

diff --git a/Build/Automate/DC/WWWRoot/vcd.png b/Build/Automate/DC/WWWRoot/vcd.png deleted file mode 100644 index bda7273..0000000 Binary files a/Build/Automate/DC/WWWRoot/vcd.png and /dev/null differ diff --git a/Build/Automate/DC2/MakeDB.txt b/Build/Automate/DC2/MakeDB.txt index 22fec61..af48857 100644 --- a/Build/Automate/DC2/MakeDB.txt +++ b/Build/Automate/DC2/MakeDB.txt @@ -16,8 +16,6 @@ ALTER AUTHORIZATION ON DATABASE::SRMRep TO VMSRM Go EXEC master..sp_addsrvrolemember @loginame = 'lab\VI-admin', @rolename = 'sysadmin' Go -EXEC master..sp_addsrvrolemember @loginame = 'lab\SVC_Veeam', @rolename = 'sysadmin' -Go USE MASTER GO CREATE DATABASE RSA ON PRIMARY( diff --git a/Build/Automate/ScriptMenu.ps1 b/Build/Automate/ScriptMenu.ps1 index cdd2789..6083a98 100644 --- a/Build/Automate/ScriptMenu.ps1 +++ b/Build/Automate/ScriptMenu.ps1 @@ -5,7 +5,7 @@ # . "C:\PSFunctions.ps1" clear-host -$choices = ("Validate this server's build","Open build log","Add ESXi Hosts to vCenter and configure cluster","Activate Windows","Install vShield 5.0 for vCloud 1.5", "Launch Derek Seamans SSL Script", "Shutdown Lab servers") +$choices = ("Validate this server's build","Open build log","Add ESXi Hosts to vCenter and configure cluster","Activate Windows", "Launch Derek Seamans SSL Script", "Shutdown Lab servers") While ($True) { $sel = SelectFromList $choices " AutoLab script Launcher" clear-host @@ -16,7 +16,6 @@ While ($True) { 2 {Start-Process c:\windows\syswow64\WindowsPowerShell\v1.0\powershell.exe -ArgumentList " C:\AddHosts.ps1"} 3 {Start-Process cscript.exe -Verb Runas -ArgumentList " c:\windows\system32\slmgr.vbs /ato"} 4 {Start-Process c:\windows\syswow64\WindowsPowerShell\v1.0\powershell.exe -ArgumentList " -noexit c:\Derek-SSL.ps1" -Verg RunAs} - 5 {Start-Process c:\windows\syswow64\WindowsPowerShell\v1.0\powershell.exe -ArgumentList " -noexit c:\vShield15.ps1"} - 6 {Invoke-Expression "C:\ShutLab.ps1"} + 5 {Invoke-Expression "C:\ShutLab.ps1"} } } diff --git a/Build/Automate/VC/PuTTY.reg b/Build/Automate/VC/PuTTY.reg index 14b40d8..830e793 100644 Binary files a/Build/Automate/VC/PuTTY.reg and b/Build/Automate/VC/PuTTY.reg differ diff --git a/Build/Automate/VC/VeeamOne.reg b/Build/Automate/VC/VeeamOne.reg deleted file mode 100644 index 1ab8e6e..0000000 Binary files a/Build/Automate/VC/VeeamOne.reg and /dev/null differ diff --git a/Build/Automate/VC2/PuTTY.reg b/Build/Automate/VC2/PuTTY.reg index 76de9ec..e5caf82 100644 Binary files a/Build/Automate/VC2/PuTTY.reg and b/Build/Automate/VC2/PuTTY.reg differ diff --git a/Build/Automate/VC2/VeeamOne.reg b/Build/Automate/VC2/VeeamOne.reg deleted file mode 100644 index 1ab8e6e..0000000 Binary files a/Build/Automate/VC2/VeeamOne.reg and /dev/null differ diff --git a/Build/Automate/vCloud/vcd15-install b/Build/Automate/vCloud/vcd15-install deleted file mode 100644 index 9c4e37a..0000000 --- a/Build/Automate/vCloud/vcd15-install +++ /dev/null @@ -1,172 +0,0 @@ -#!/bin/bash - -# vcd15-install Install vCloud Director 1.5 for AutoLab v1.1 -# -# vCloud Director Installation Script -# William Lam -# www.virtuallyghetto.com -# -# Damian Karlson -# www.damiankarlson.com -# www.labguides.com -# www.professionalvmware.com/brownbags -# -# chkconfig: 3 99 99 -# description: Automated vCloud Director installation on AutoLab - -#################### -# FILE DEFINITIONS # -#################### -# vCloud Director 1.5.x -VMWARE_VCD_BIN=`find /root/vmware-vcloud-director-1.5*.bin` -VCLOUD_VERSION=1.5.x - -##################### -# SECOND IP ADDRESS # -##################### -IP_ADDRESS_2=192.168.199.39 -IP_ADDRESS_2_NETMASK=255.255.255.0 - -################# -# KEYSTORE INFO # -################# -KEYSTORE_PASSWORD=vcloud -KEYSTORE_ORG_UNIT_NAME=AutoLab -KEYSTORE_ORG=AutoLab -KEYSTORE_CITY=AutoLab -KEYSTORE_STATE=AutoLab -KEYSTORE_COUNTRY=US - -################################ -# SQL 2008 R2 SP1 EXPRESS CONF # -################################ -SQL_VCLOUD_USERNAME=vcloud15 -SQL_VCLOUD_PASSWORD=VMware1! -SQL_VCLOUD_DATABASE=vCloud15 - -verify() { - if [ ${UID} -ne 0 ]; then - echo "Installer must run as root!" >> /root/vcd15-install.log - exit 1 - fi - if [ ! -f ${VMWARE_VCD_BIN} ]; then - echo "Unable to find ${VMWARE_VCD_BIN}!" >> /root/vcd15-install.log - exit 1 - fi - - echo "Proceeding with the installation of VMware vCD ${VCLOUD_VERSION}" >> /root/vcd15-install.log -} - -generateCertificates() { - HTTP_IP=$(grep IPADDR /etc/sysconfig/network-scripts/ifcfg-eth0 | awk -F "=" '{print $2}' | sed 's/"//g') - CONSOLEPROXY_IP=$(grep IPADDR /etc/sysconfig/network-scripts/ifcfg-eth1 | awk -F "=" '{print $2}' | sed 's/"//g') - HTTP_HOSTNAME=$(host ${HTTP_IP} | awk '{print $5}' | sed 's/.$//g') - CONSOLEPROXY_HOSTNAME=$(host ${CONSOLEPROXY_IP} | awk '{print $5}' | sed 's/.$//g') - - if [ ! -f /opt/keystore/certificates.ks ]; then - echo "Creating keystore certificate for http using ${HTTP_HOSTNAME}" >> /root/vcd15-install.log - keytool -keystore certificates.ks -storetype JCEKS -storepass ${KEYSTORE_PASSWORD} -keypass ${KEYSTORE_PASSWORD} -genkey -keyalg RSA -alias http -dname "CN=${HTTP_HOSTNAME}, OU=${KEYSTORE_ORG_UNIT_NAME}, O=${KEYSTORE_ORG}, L=${KEYSTORE_CITY},S=${KEYSTORE_STATE}, C=${KEYSTORE_COUNTRY}" 2>&1 >> /root/vcd15-install.log - keytool -keystore certificates.ks -storetype JCEKS -storepass ${KEYSTORE_PASSWORD} -keypass ${KEYSTORE_PASSWORD} -certreq -alias http -file http.csr 2>&1 >> /root/vcd15-install.log - - echo "Creating keystore certificate for consoleproxy using ${CONSOLEPROXY_HOSTNAME}" >> /root/vcd15-install.log - keytool -keystore certificates.ks -storetype JCEKS -storepass ${KEYSTORE_PASSWORD} -keypass ${KEYSTORE_PASSWORD} -genkey -keyalg RSA -alias consoleproxy -dname "CN=${HTTP_HOSTNAME}, OU=${KEYSTORE_ORG_UNIT_NAME}, O=${KEYSTORE_ORG}, L=${KEYSTORE_CITY},S=${KEYSTORE_STATE}, C=${KEYSTORE_COUNTRY}" 2>&1 >> /root/vcd15-install.log - keytool -keystore certificates.ks -storetype JCEKS -storepass ${KEYSTORE_PASSWORD} -keypass ${KEYSTORE_PASSWORD} -certreq -alias consoleproxy -file consoleproxy.csr 2>&1 >> /root/vcd15-install.log - - echo "Moving certificates.ks to /opt/keystore" >> /root/vcd15-install.log - if [ -f certificates.ks ]; then - mkdir -p /opt/keystore - mv certificates.ks /opt/keystore - else - echo "Error! Unable to locate certificates.ks in current working directory, certificates may not have been generated correctly!" >> /root/vcd15-install.log - fi - else - echo "Looks like /opt/keystore/certificates.ks exists already! Will not generate vCD keystores!" >> /root/vcd15-install.log - fi -} - -installvCD() { - VCD_INSTALL_RESPONSE_FILE=/tmp/vcd15-install-$$.response - - rpm -qa | grep -i "vmware-vcloud-director" > /dev/null 2>&1 - if [ $? -eq 1 ]; then - echo "Installing VMware vCloud Director ${VCLOUD_VERSION}" >> /root/vcd15-install.log - cat > ${VCD_INSTALL_RESPONSE_FILE} << __VCD_INSTALL__ -y -n -__VCD_INSTALL__ - - chmod u+x ${VMWARE_VCD_BIN} - ${VMWARE_VCD_BIN} < ${VCD_INSTALL_RESPONSE_FILE} 2>&1 >> /root/vcd15-install.log - - rm -f ${VCD_INSTALL_RESPONSE_FILE} - else - echo "VMware vCloud Director ${VCLOUD_VERSION} is already installed!" >> /root/vcd15-install.log - fi - } - -configurevCD() { - VCD_CONFIG_RESPONSE_FILE=/tmp/vcd-configure-$$.response - VCD_PATH=/opt/vmware/vcloud-director - - cat > ${VCD_CONFIG_RESPONSE_FILE} << __VCD_CONFIGURE__ -1 -1 -/opt/keystore/certificates.ks -${KEYSTORE_PASSWORD} - -2 -192.168.199.4 -1433 -${SQL_VCLOUD_DATABASE} - -${SQL_VCLOUD_USERNAME} -${SQL_VCLOUD_PASSWORD} -y -__VCD_CONFIGURE__ - - service vmware-vcd status > /dev/null 2>&1 - if [ $? -eq 0 ]; then - service vmware-vcd stop - fi - echo "Configuring vCloud Director" >> /root/vcd15-install.log - ${VCD_PATH}/bin/configure < ${VCD_CONFIG_RESPONSE_FILE} - - rm -f ${VCD_CONFIG_RESPONSE_FILE} - - echo "Completed installation of vCloud Director!" >> /root/vcd15-install.log - echo "Starting vCloud Director" >> /root/vcd15-install.log - ${VCD_PATH}/bin/vmware-vcd start - echo "Waiting for vCloud Director to finish initialization" >> /root/vcd15-install.log - VCD_START_SUCCESS=0 - VCD_START_COUNT=0 - VCD_START_MAX_COUNT=24 - while [ 1 ]; - do - grep -i "Application Initialization: Complete" ${VCD_PATH}/logs/vcloud-container-info.log > /dev/null 2>&1 - if [ $? -eq 0 ]; then - echo "vCloud Director is up and running! You can now go to https://${HTTP_HOSTNAME}" >> /root/vcd15-install.log - break - else - if [ ${VCD_START_COUNT} = ${VCD_START_MAX_COUNT} ]; then - echo "Unable to start vCloud Director, something went wrong! Please take a look at ${VCD_PATH}/logs/vcloud-container-info.log for more info" >> /root/vcd15-install.log - break - fi - VCD_START_COUNT=$((VCD_START_COUNT+1)) - sleep 5 - fi - done -} - -case "$1" in - start) - verify - generateCertificates - installvCD - configurevCD - chkconfig vcd15-install off - ;; - stop|status|restart|reload|force-reload) - # do nothing - ;; -esac -exit \ No newline at end of file diff --git a/Build/Automate/vCloud/vcd15-ks-min.cfg b/Build/Automate/vCloud/vcd15-ks-min.cfg deleted file mode 100644 index 80087f5..0000000 --- a/Build/Automate/vCloud/vcd15-ks-min.cfg +++ /dev/null @@ -1,82 +0,0 @@ -#version=DEVEL -install -text -url --url http://mirrors.kernel.org/centos/6.3/os/x86_64/ -lang en_US.UTF-8 -keyboard us -skipx -reboot -network --onboot yes --device eth0 --bootproto static --ip 192.168.199.38 --netmask 255.255.255.0 --gateway 192.168.199.2 --noipv6 --nameserver 192.168.199.4 --hostname vcd.lab.local --activate -network --onboot yes --device eth1 --bootproto static --ip 192.168.199.39 --netmask 255.255.255.0 --gateway 192.168.199.2 --noipv6 --nameserver 192.168.199.4 --hostname vcd.lab.local --activate -rootpw --iscrypted $6$mhXX4f4VoZQd17Zi$92QTGG0zjyPpybH/AeSEKZKELgh5a/gvJZUZDa3kxmbij.QKLHHCWXdBJOur.qxeq0EfARQf7bewzujFYRhsp. -firewall --disabled -authconfig --enableshadow --passalgo=sha512 -selinux --disabled -timezone --utc America/Chicago -bootloader --location=mbr --driveorder=sda -zerombr -clearpart --all --initlabel --drives=sda -part /boot --fstype=ext4 --asprimary --size=200 -part / --fstype=ext4 --asprimary --size=10240 -part swap --asprimary --size=4608 - -%packages --firmware* --openfwwf* -nfs-utils -libICE -libSM -libXdmcp -libXt -libXtst -redhat-lsb -java-1.6.0-openjdk -%end - -%post --log=/root/anaconda_post.log -ifdown eth0 -ifup eth0 -ping -c 4 google.com > /dev/null 2>&1 -if [ $? -eq 0 ]; then - echo "External network connection is available!" >> /root/anaconda_post.log - yum -y update - wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub - wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub - rpm --import VMWARE-PACKAGING-GPG-DSA-KEY.pub - rpm --import VMWARE-PACKAGING-GPG-RSA-KEY.pub -else - echo "External network connection is not available. Skipping operating system updates & VMware RPM key download." >> /root/anaconda_post.log - -fi -sed -i "s/\b quiet\b//g" /boot/grub/grub.conf -sed -i "s/\b rhgb\b//g" /boot/grub/grub.conf -echo 'DOMAIN="lab.local"' >> /etc/sysconfig/network-scripts/ifcfg-eth0 -echo 'DOMAIN="lab.local"' >> /etc/sysconfig/network-scripts/ifcfg-eth1 -%end - -%post -service rpcbind start -mkdir /mnt/tmp -mount -t nfs 192.168.199.7:/mnt/LABVOL/Build /mnt/tmp -if [ $? -eq 0 ]; then - echo "Mounted AutoLab Build share to /mnt/tmp" >> /root/anaconda_post.log - cp /mnt/tmp/Automate/vCloud/vcd15-install /etc/init.d - chmod 755 /etc/init.d/vcd15-install - cp /mnt/tmp/vCD_15/vmware-vcloud-director-1.5*.bin /root/ - chmod +x /root/vmware-vcloud-director-1.5*.bin - echo "Copied vCloud 1.5 installation script and binary installer to /root/." -fi -sed -ie 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config -chkconfig atd off -chkconfig cpuspeed off -chkconfig cups off -chkconfig ip6tables off -chkconfig iptables off -chkconfig kdump off -chkconfig lvm2-monitor off -chkconfig mdmonitor off -chkconfig ntpd on -chkconfig postfix off -chkconfig smartd off -chkconfig vcd15-install on -%end \ No newline at end of file diff --git a/Build/Automate/vCloud/vcd15-ks.cfg b/Build/Automate/vCloud/vcd15-ks.cfg deleted file mode 100644 index 7cbf4f1..0000000 --- a/Build/Automate/vCloud/vcd15-ks.cfg +++ /dev/null @@ -1,82 +0,0 @@ -#version=DEVEL -install -text -cdrom -lang en_US.UTF-8 -keyboard us -skipx -reboot -network --onboot yes --device eth0 --bootproto static --ip 192.168.199.38 --netmask 255.255.255.0 --gateway 192.168.199.2 --noipv6 --nameserver 192.168.199.4 --hostname vcd.lab.local --activate -network --onboot yes --device eth1 --bootproto static --ip 192.168.199.39 --netmask 255.255.255.0 --gateway 192.168.199.2 --noipv6 --nameserver 192.168.199.4 --hostname vcd.lab.local --activate -rootpw --iscrypted $6$mhXX4f4VoZQd17Zi$92QTGG0zjyPpybH/AeSEKZKELgh5a/gvJZUZDa3kxmbij.QKLHHCWXdBJOur.qxeq0EfARQf7bewzujFYRhsp. -firewall --disabled -authconfig --enableshadow --passalgo=sha512 -selinux --disabled -timezone --utc America/Chicago -bootloader --location=mbr --driveorder=sda -zerombr -clearpart --all --initlabel --drives=sda -part /boot --fstype=ext4 --asprimary --size=200 -part / --fstype=ext4 --asprimary --size=10240 -part swap --asprimary --size=4608 - -%packages --firmware* --openfwwf* -nfs-utils -libICE -libSM -libXdmcp -libXt -libXtst -redhat-lsb -java-1.6.0-openjdk -%end - -%post --log=/root/anaconda_post.log -ifdown eth0 -ifup eth0 -ping -c 4 google.com > /dev/null 2>&1 -if [ $? -eq 0 ]; then - echo "External network connection is available!" >> /root/anaconda_post.log - yum -y update - wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub - wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub - rpm --import VMWARE-PACKAGING-GPG-DSA-KEY.pub - rpm --import VMWARE-PACKAGING-GPG-RSA-KEY.pub -else - echo "External network connection is not available. Skipping operating system updates & VMware RPM key download." >> /root/anaconda_post.log - -fi -sed -i "s/\b quiet\b//g" /boot/grub/grub.conf -sed -i "s/\b rhgb\b//g" /boot/grub/grub.conf -echo 'DOMAIN="lab.local"' >> /etc/sysconfig/network-scripts/ifcfg-eth0 -echo 'DOMAIN="lab.local"' >> /etc/sysconfig/network-scripts/ifcfg-eth1 -%end - -%post -service rpcbind start -mkdir /mnt/tmp -mount -t nfs 192.168.199.7:/mnt/LABVOL/Build /mnt/tmp -if [ $? -eq 0 ]; then - echo "Mounted AutoLab Build share to /mnt/tmp" >> /root/anaconda_post.log - cp /mnt/tmp/Automate/vCloud/vcd15-install /etc/init.d - chmod 755 /etc/init.d/vcd15-install - cp /mnt/tmp/vCD_15/vmware-vcloud-director-1.5*.bin /root/ - chmod +x /root/vmware-vcloud-director-1.5*.bin - echo "Copied vCloud 1.5 installation script and binary installer to /root/." -fi -sed -ie 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config -chkconfig atd off -chkconfig cpuspeed off -chkconfig cups off -chkconfig ip6tables off -chkconfig iptables off -chkconfig kdump off -chkconfig lvm2-monitor off -chkconfig mdmonitor off -chkconfig ntpd on -chkconfig postfix off -chkconfig smartd off -chkconfig vcd15-install on -%end \ No newline at end of file diff --git a/Build/Automate/vCloud/vcd51-install b/Build/Automate/vCloud/vcd51-install deleted file mode 100644 index 2af8428..0000000 --- a/Build/Automate/vCloud/vcd51-install +++ /dev/null @@ -1,172 +0,0 @@ -#!/bin/bash - -# vcd51-install Install vCloud Director 5.1 for AutoLab v1.1 -# -# vCloud Director Installation Script -# William Lam -# www.virtuallyghetto.com -# -# Damian Karlson -# www.damiankarlson.com -# www.labguides.com -# www.professionalvmware.com/brownbags -# -# chkconfig: 3 99 99 -# description: Automated vCloud Director installation on AutoLab - -#################### -# FILE DEFINITIONS # -#################### -# vCloud Director 5.1.x -VMWARE_VCD_BIN=`find /root/vmware-vcloud-director-5.1*.bin` -VCLOUD_VERSION=5.1.x - -##################### -# SECOND IP ADDRESS # -##################### -IP_ADDRESS_2=192.168.199.39 -IP_ADDRESS_2_NETMASK=255.255.255.0 - -################# -# KEYSTORE INFO # -################# -KEYSTORE_PASSWORD=vcloud -KEYSTORE_ORG_UNIT_NAME=AutoLab -KEYSTORE_ORG=AutoLab -KEYSTORE_CITY=AutoLab -KEYSTORE_STATE=AutoLab -KEYSTORE_COUNTRY=US - -################################ -# SQL 2008 R2 SP1 EXPRESS CONF # -################################ -SQL_VCLOUD_USERNAME=vcloud51 -SQL_VCLOUD_PASSWORD=VMware1! -SQL_VCLOUD_DATABASE=vCloud51 - -verify() { - if [ ${UID} -ne 0 ]; then - echo "Installer must run as root!" >> /root/vcd51-install.log - exit 1 - fi - if [ ! -f ${VMWARE_VCD_BIN} ]; then - echo "Unable to find ${VMWARE_VCD_BIN}!" >> /root/vcd51-install.log - exit 1 - fi - - echo "Proceeding with the installation of VMware vCD ${VCLOUD_VERSION}" >> /root/vcd51-install.log -} - -generateCertificates() { - HTTP_IP=$(grep IPADDR /etc/sysconfig/network-scripts/ifcfg-eth0 | awk -F "=" '{print $2}' | sed 's/"//g') - CONSOLEPROXY_IP=$(grep IPADDR /etc/sysconfig/network-scripts/ifcfg-eth1 | awk -F "=" '{print $2}' | sed 's/"//g') - HTTP_HOSTNAME=$(host ${HTTP_IP} | awk '{print $5}' | sed 's/.$//g') - CONSOLEPROXY_HOSTNAME=$(host ${CONSOLEPROXY_IP} | awk '{print $5}' | sed 's/.$//g') - - if [ ! -f /opt/keystore/certificates.ks ]; then - echo "Creating keystore certificate for http using ${HTTP_HOSTNAME}" >> /root/vcd51-install.log - keytool -keystore certificates.ks -storetype JCEKS -storepass ${KEYSTORE_PASSWORD} -keypass ${KEYSTORE_PASSWORD} -genkey -keyalg RSA -alias http -dname "CN=${HTTP_HOSTNAME}, OU=${KEYSTORE_ORG_UNIT_NAME}, O=${KEYSTORE_ORG}, L=${KEYSTORE_CITY},S=${KEYSTORE_STATE}, C=${KEYSTORE_COUNTRY}" 2>&1 >> /root/vcd51-install.log - keytool -keystore certificates.ks -storetype JCEKS -storepass ${KEYSTORE_PASSWORD} -keypass ${KEYSTORE_PASSWORD} -certreq -alias http -file http.csr 2>&1 >> /root/vcd51-install.log - - echo "Creating keystore certificate for consoleproxy using ${CONSOLEPROXY_HOSTNAME}" - keytool -keystore certificates.ks -storetype JCEKS -storepass ${KEYSTORE_PASSWORD} -keypass ${KEYSTORE_PASSWORD} -genkey -keyalg RSA -alias consoleproxy -dname "CN=${HTTP_HOSTNAME}, OU=${KEYSTORE_ORG_UNIT_NAME}, O=${KEYSTORE_ORG}, L=${KEYSTORE_CITY},S=${KEYSTORE_STATE}, C=${KEYSTORE_COUNTRY}" 2>&1 >> /root/vcd51-install.log - keytool -keystore certificates.ks -storetype JCEKS -storepass ${KEYSTORE_PASSWORD} -keypass ${KEYSTORE_PASSWORD} -certreq -alias consoleproxy -file consoleproxy.csr 2>&1 >> /root/vcd51-install.log - - echo "Moving certificates.ks to /opt/keystore" >> /root/vcd51-install.log - if [ -f certificates.ks ]; then - mkdir -p /opt/keystore - mv certificates.ks /opt/keystore - else - echo "Error! Unable to locate certificates.ks in current working directory, certificates may not have been generated correctly!" >> /root/vcd51-install.log - fi - else - echo "Looks like /opt/keystore/certificates.ks exists already! Will not generate vCD keystores!" >> /root/vcd51-install.log - fi -} - -installvCD() { - VCD_INSTALL_RESPONSE_FILE=/tmp/vcd51-install-$$.response - - rpm -qa | grep -i "vmware-vcloud-director" > /dev/null 2>&1 - if [ $? -eq 1 ]; then - echo "Installing VMware vCloud Director ${VCLOUD_VERSION}" >> /root/vcd51-install.log - cat > ${VCD_INSTALL_RESPONSE_FILE} << __VCD_INSTALL__ -y -n -__VCD_INSTALL__ - - chmod u+x ${VMWARE_VCD_BIN} - ${VMWARE_VCD_BIN} < ${VCD_INSTALL_RESPONSE_FILE} 2>&1 >> /root/vcd51-install.log - - rm -f ${VCD_INSTALL_RESPONSE_FILE} - else - echo "VMware vCloud Director ${VCLOUD_VERSION} is already installed!" >> /root/vcd51-install.log - fi - } - -configurevCD() { - VCD_CONFIG_RESPONSE_FILE=/tmp/vcd-configure-$$.response - VCD_PATH=/opt/vmware/vcloud-director - - cat > ${VCD_CONFIG_RESPONSE_FILE} << __VCD_CONFIGURE__ -1 -1 -/opt/keystore/certificates.ks -${KEYSTORE_PASSWORD} - -2 -192.168.199.4 -1433 -${SQL_VCLOUD_DATABASE} - -${SQL_VCLOUD_USERNAME} -${SQL_VCLOUD_PASSWORD} -y -__VCD_CONFIGURE__ - - service vmware-vcd status > /dev/null 2>&1 - if [ $? -eq 0 ]; then - service vmware-vcd stop - fi - echo "Configuring vCloud Director" >> /root/vcd51-install.log - ${VCD_PATH}/bin/configure < ${VCD_CONFIG_RESPONSE_FILE} - - rm -f ${VCD_CONFIG_RESPONSE_FILE} - - echo "Completed installation of vCloud Director!" >> /root/vcd51-install.log - echo "Starting vCloud Director" >> /root/vcd51-install.log - ${VCD_PATH}/bin/vmware-vcd start - echo "Waiting for vCloud Director to finish initialization" >> /root/vcd51-install.log - VCD_START_SUCCESS=0 - VCD_START_COUNT=0 - VCD_START_MAX_COUNT=24 - while [ 1 ]; - do - grep -i "Application Initialization: Complete" ${VCD_PATH}/logs/vcloud-container-info.log > /dev/null 2>&1 - if [ $? -eq 0 ]; then - echo "vCloud Director is up and running! You can now go to https://${HTTP_HOSTNAME}" >> /root/vcd51-install.log - break - else - if [ ${VCD_START_COUNT} = ${VCD_START_MAX_COUNT} ]; then - echo "Unable to start vCloud Director, something went wrong! Please take a look at ${VCD_PATH}/logs/vcloud-container-info.log for more info" >> /root/vcd51-install.log - break - fi - VCD_START_COUNT=$((VCD_START_COUNT+1)) - sleep 5 - fi - done -} - -case "$1" in - start) - verify - generateCertificates - installvCD - configurevCD - chkconfig vcd51-install off - ;; - stop|status|restart|reload|force-reload) - # do nothing - ;; -esac -exit \ No newline at end of file diff --git a/Build/Automate/vCloud/vcd51-ks-min.cfg b/Build/Automate/vCloud/vcd51-ks-min.cfg deleted file mode 100644 index 65d2a7c..0000000 --- a/Build/Automate/vCloud/vcd51-ks-min.cfg +++ /dev/null @@ -1,82 +0,0 @@ -#version=DEVEL -install -text -url --url http://mirrors.kernel.org/centos/6.3/os/x86_64/ -lang en_US.UTF-8 -keyboard us -skipx -reboot -network --onboot yes --device eth0 --bootproto static --ip 192.168.199.38 --netmask 255.255.255.0 --gateway 192.168.199.2 --noipv6 --nameserver 192.168.199.4 --hostname vcd.lab.local --activate -network --onboot yes --device eth1 --bootproto static --ip 192.168.199.39 --netmask 255.255.255.0 --gateway 192.168.199.2 --noipv6 --nameserver 192.168.199.4 --hostname vcd.lab.local --activate -rootpw --iscrypted $6$mhXX4f4VoZQd17Zi$92QTGG0zjyPpybH/AeSEKZKELgh5a/gvJZUZDa3kxmbij.QKLHHCWXdBJOur.qxeq0EfARQf7bewzujFYRhsp. -firewall --disabled -authconfig --enableshadow --passalgo=sha512 -selinux --disabled -timezone --utc America/Chicago -bootloader --location=mbr --driveorder=sda -zerombr -clearpart --all --initlabel --drives=sda -part /boot --fstype=ext4 --asprimary --size=200 -part / --fstype=ext4 --asprimary --size=10240 -part swap --asprimary --size=4608 - -%packages --firmware* --openfwwf* -nfs-utils -libICE -libSM -libXdmcp -libXt -libXtst -redhat-lsb -java-1.6.0-openjdk -%end - -%post --log=/root/anaconda_post.log -ifdown eth0 -ifup eth0 -ping -c 4 google.com > /dev/null 2>&1 -if [ $? -eq 0 ]; then - echo "External network connection is available!" >> /root/anaconda_post.log - yum -y update - wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub - wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub - rpm --import VMWARE-PACKAGING-GPG-DSA-KEY.pub - rpm --import VMWARE-PACKAGING-GPG-RSA-KEY.pub -else - echo "External network connection is not available. Skipping operating system updates & VMware RPM key download." >> /root/anaconda_post.log - -fi -sed -i "s/\b quiet\b//g" /boot/grub/grub.conf -sed -i "s/\b rhgb\b//g" /boot/grub/grub.conf -echo 'DOMAIN="lab.local"' >> /etc/sysconfig/network-scripts/ifcfg-eth0 -echo 'DOMAIN="lab.local"' >> /etc/sysconfig/network-scripts/ifcfg-eth1 -%end - -%post -service rpcbind start -mkdir /mnt/tmp -mount -t nfs 192.168.199.7:/mnt/LABVOL/Build /mnt/tmp -if [ $? -eq 0 ]; then - echo "Mounted AutoLab Build share to /mnt/tmp" >> /root/anaconda_post.log - cp /mnt/tmp/Automate/vCloud/vcd51-install /etc/init.d - chmod 755 /etc/init.d/vcd51-install - cp /mnt/tmp/vCD_51/vmware-vcloud-director-5.1*.bin /root/ - chmod +x /root/vmware-vcloud-director-5.1*.bin - echo "Copied vCloud 5.1 installation script and binary installer to /root/." -fi -sed -ie 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config -chkconfig atd off -chkconfig cpuspeed off -chkconfig cups off -chkconfig ip6tables off -chkconfig iptables off -chkconfig kdump off -chkconfig lvm2-monitor off -chkconfig mdmonitor off -chkconfig ntpd on -chkconfig postfix off -chkconfig smartd off -chkconfig vcd51-install on -%end \ No newline at end of file diff --git a/Build/Automate/vCloud/vcd51-ks.cfg b/Build/Automate/vCloud/vcd51-ks.cfg deleted file mode 100644 index 2c01090..0000000 --- a/Build/Automate/vCloud/vcd51-ks.cfg +++ /dev/null @@ -1,82 +0,0 @@ -#version=DEVEL -install -text -cdrom -lang en_US.UTF-8 -keyboard us -skipx -reboot -network --onboot yes --device eth0 --bootproto static --ip 192.168.199.38 --netmask 255.255.255.0 --gateway 192.168.199.2 --noipv6 --nameserver 192.168.199.4 --hostname vcd.lab.local --activate -network --onboot yes --device eth1 --bootproto static --ip 192.168.199.39 --netmask 255.255.255.0 --gateway 192.168.199.2 --noipv6 --nameserver 192.168.199.4 --hostname vcd.lab.local --activate -rootpw --iscrypted $6$mhXX4f4VoZQd17Zi$92QTGG0zjyPpybH/AeSEKZKELgh5a/gvJZUZDa3kxmbij.QKLHHCWXdBJOur.qxeq0EfARQf7bewzujFYRhsp. -firewall --disabled -authconfig --enableshadow --passalgo=sha512 -selinux --disabled -timezone --utc America/Chicago -bootloader --location=mbr --driveorder=sda -zerombr -clearpart --all --initlabel --drives=sda -part /boot --fstype=ext4 --asprimary --size=200 -part / --fstype=ext4 --asprimary --size=10240 -part swap --asprimary --size=4608 - -%packages --firmware* --openfwwf* -nfs-utils -libICE -libSM -libXdmcp -libXt -libXtst -redhat-lsb -java-1.6.0-openjdk -%end - -%post --log=/root/anaconda_post.log -ifdown eth0 -ifup eth0 -ping -c 4 google.com > /dev/null 2>&1 -if [ $? -eq 0 ]; then - echo "External network connection is available!" >> /root/anaconda_post.log - yum -y update - wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub - wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub - rpm --import VMWARE-PACKAGING-GPG-DSA-KEY.pub - rpm --import VMWARE-PACKAGING-GPG-RSA-KEY.pub -else - echo "External network connection is not available. Skipping operating system updates & VMware RPM key download." >> /root/anaconda_post.log - -fi -sed -i "s/\b quiet\b//g" /boot/grub/grub.conf -sed -i "s/\b rhgb\b//g" /boot/grub/grub.conf -echo 'DOMAIN="lab.local"' >> /etc/sysconfig/network-scripts/ifcfg-eth0 -echo 'DOMAIN="lab.local"' >> /etc/sysconfig/network-scripts/ifcfg-eth1 -%end - -%post -service rpcbind start -mkdir /mnt/tmp -mount -t nfs 192.168.199.7:/mnt/LABVOL/Build /mnt/tmp -if [ $? -eq 0 ]; then - echo "Mounted AutoLab Build share to /mnt/tmp" >> /root/anaconda_post.log - cp /mnt/tmp/Automate/vCloud/vcd51-install /etc/init.d - chmod 755 /etc/init.d/vcd51-install - cp /mnt/tmp/vCD_51/vmware-vcloud-director-5.1*.bin /root/ - chmod +x /root/vmware-vcloud-director-5.1*.bin - echo "Copied vCloud 5.1 installation script and binary installer to /root/." -fi -sed -ie 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config -chkconfig atd off -chkconfig cpuspeed off -chkconfig cups off -chkconfig ip6tables off -chkconfig iptables off -chkconfig kdump off -chkconfig lvm2-monitor off -chkconfig mdmonitor off -chkconfig ntpd on -chkconfig postfix off -chkconfig smartd off -chkconfig vcd51-install on -%end \ No newline at end of file diff --git a/SRC/V1/autoUnattend.xml b/SRC/V1/autoUnattend.xml deleted file mode 100644 index 6724808..0000000 --- a/SRC/V1/autoUnattend.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - - - en-US - en-US - en-US - en-US - en-US - - - - - - 0 - 1 - - - - /IMAGE/INDEX - 1 - - - - - - true - Lab - Lab.local - - - - - - true - 1 - Primary - - - 0 - true - - - - - - - V1 - - - - - - false - 10 - false - - - 192.168.199.36/24 - - Local Area Connection - - - 0 - 10 - 192.168.199.2 - 0.0.0.0/0 - - - - - - - - - lab.local - VMware1! - Administrator - - lab.local - - - - - lab.local - - - - - 192.168.199.4 - - true - lab.local - true - Local Area Connection - - - - - true - - - true - - - false - false - false - - - false - - - http://v1 - true - true - true - false - - - false - false - - - - - - - VgBNAHcAYQByAGUAMQAhAFAAYQBzAHMAdwBvAHIAZAA= - false</PlainText> - </Password> - <Enabled>true</Enabled> - <LogonCount>99</LogonCount> - <Username>lab\svc_veeam</Username> - </AutoLogon> - <OOBE> - <HideEULAPage>true</HideEULAPage> - <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> - <NetworkLocation>Work</NetworkLocation> - </OOBE> - <UserAccounts> - <AdministratorPassword> - <Value>VgBNAHcAYQByAGUAMQAhAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value> - <PlainText>false</PlainText> - </AdministratorPassword> - </UserAccounts> - <FirstLogonCommands> - <SynchronousCommand wcm:action="add"> - <CommandLine>a:\Build.cmd</CommandLine> - <Description>Build</Description> - <Order>1</Order> - <RequiresUserInput>true</RequiresUserInput> - </SynchronousCommand> - </FirstLogonCommands> - </component> - </settings> - <cpi:offlineImage cpi:source="wim:d:/lab/win2k8r2sp1/sources/install.wim#Windows Server 2008 R2 SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> -</unattend> diff --git a/SRC/V1/build.cmd b/SRC/V1/build.cmd deleted file mode 100644 index db2bf0f..0000000 --- a/SRC/V1/build.cmd +++ /dev/null @@ -1 +0,0 @@ -\\192.168.199.7\Build\automate\%computername%\Build.cmd \ No newline at end of file diff --git a/SRC/VBR/autoUnattend.xml b/SRC/VBR/autoUnattend.xml deleted file mode 100644 index d580bf6..0000000 --- a/SRC/VBR/autoUnattend.xml +++ /dev/null @@ -1,158 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<unattend xmlns="urn:schemas-microsoft-com:unattend"> - <settings pass="windowsPE"> - <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"> - <InputLocale>en-US</InputLocale> - <SystemLocale>en-US</SystemLocale> - <UILanguage>en-US</UILanguage> - <UILanguageFallback>en-US</UILanguageFallback> - <UserLocale>en-US</UserLocale> - </component> - <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"> - <ImageInstall> - <OSImage> - <InstallTo> - <DiskID>0</DiskID> - <PartitionID>1</PartitionID> - </InstallTo> - <InstallFrom> - <MetaData wcm:action="add"> - <Key>/IMAGE/INDEX</Key> - <Value>1</Value> - </MetaData> - </InstallFrom> - </OSImage> - </ImageInstall> - <UserData> - <AcceptEula>true</AcceptEula> - <FullName>Lab</FullName> - <Organization>Lab.local</Organization> - </UserData> - <DiskConfiguration> - <Disk wcm:action="add"> - <CreatePartitions> - <CreatePartition wcm:action="add"> - <Extend>true</Extend> - <Order>1</Order> - <Type>Primary</Type> - </CreatePartition> - </CreatePartitions> - <DiskID>0</DiskID> - <WillWipeDisk>true</WillWipeDisk> - </Disk> - </DiskConfiguration> - </component> - </settings> - <settings pass="specialize"> - <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"> - <ComputerName>VBR</ComputerName> - </component> - <component name="Microsoft-Windows-TCPIP" 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"> - <Interfaces> - <Interface wcm:action="add"> - <Ipv4Settings> - <DhcpEnabled>false</DhcpEnabled> - <Metric>10</Metric> - <RouterDiscoveryEnabled>false</RouterDiscoveryEnabled> - </Ipv4Settings> - <UnicastIpAddresses> - <IpAddress wcm:action="add" wcm:keyValue="1">192.168.199.37/24</IpAddress> - </UnicastIpAddresses> - <Identifier>Local Area Connection</Identifier> - <Routes> - <Route wcm:action="add"> - <Identifier>0</Identifier> - <Metric>10</Metric> - <NextHopAddress>192.168.199.2</NextHopAddress> - <Prefix>0.0.0.0/0</Prefix> - </Route> - </Routes> - </Interface> - </Interfaces> - </component> - <component name="Microsoft-Windows-UnattendedJoin" 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"> - <Identification> - <Credentials> - <Domain>lab.local</Domain> - <Password>VMware1!</Password> - <Username>Administrator</Username> - </Credentials> - <JoinDomain>lab.local</JoinDomain> - </Identification> - </component> - <component name="Microsoft-Windows-DNS-Client" 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"> - <DNSSuffixSearchOrder> - <DomainName wcm:action="add" wcm:keyValue="1">lab.local</DomainName> - </DNSSuffixSearchOrder> - <Interfaces> - <Interface wcm:action="add"> - <DNSServerSearchOrder> - <IpAddress wcm:action="add" wcm:keyValue="1">192.168.199.4</IpAddress> - </DNSServerSearchOrder> - <DisableDynamicUpdate>true</DisableDynamicUpdate> - <DNSDomain>lab.local</DNSDomain> - <EnableAdapterDomainNameRegistration>true</EnableAdapterDomainNameRegistration> - <Identifier>Local Area Connection</Identifier> - </Interface> - </Interfaces> - </component> - <component name="Microsoft-Windows-ServerManager-SvrMgrNc" 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"> - <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon> - </component> - <component name="Microsoft-Windows-OutOfBoxExperience" 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"> - <DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon> - </component> - <component name="Networking-MPSSVC-Svc" 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"> - <DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall> - <PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall> - <PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall> - </component> - <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" 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"> - <fDenyTSConnections>false</fDenyTSConnections> - </component> - <component name="Microsoft-Windows-IE-InternetExplorer" 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"> - <TrustedSites>http://v1</TrustedSites> - <DisableAccelerators>true</DisableAccelerators> - <DisableOOBAccelerators>true</DisableOOBAccelerators> - <DisableFirstRunWizard>true</DisableFirstRunWizard> - <EnableLinksBar>false</EnableLinksBar> - </component> - <component name="Microsoft-Windows-IE-ESC" 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"> - <IEHardenUser>false</IEHardenUser> - <IEHardenAdmin>false</IEHardenAdmin> - </component> - </settings> - <settings pass="oobeSystem"> - <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"> - <AutoLogon> - <Password> - <Value>VgBNAHcAYQByAGUAMQAhAFAAYQBzAHMAdwBvAHIAZAA=</Value> - <PlainText>false</PlainText> - </Password> - <Enabled>true</Enabled> - <LogonCount>99</LogonCount> - <Username>lab\svc_veeam</Username> - </AutoLogon> - <OOBE> - <HideEULAPage>true</HideEULAPage> - <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> - <NetworkLocation>Work</NetworkLocation> - </OOBE> - <UserAccounts> - <AdministratorPassword> - <Value>VgBNAHcAYQByAGUAMQAhAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value> - <PlainText>false</PlainText> - </AdministratorPassword> - </UserAccounts> - <FirstLogonCommands> - <SynchronousCommand wcm:action="add"> - <CommandLine>a:\Build.cmd</CommandLine> - <Description>Build</Description> - <Order>1</Order> - <RequiresUserInput>true</RequiresUserInput> - </SynchronousCommand> - </FirstLogonCommands> - </component> - </settings> - <cpi:offlineImage cpi:source="wim:d:/lab/win2k8r2sp1/sources/install.wim#Windows Server 2008 R2 SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> -</unattend> diff --git a/SRC/VBR/build.cmd b/SRC/VBR/build.cmd deleted file mode 100644 index db2bf0f..0000000 --- a/SRC/VBR/build.cmd +++ /dev/null @@ -1 +0,0 @@ -\\192.168.199.7\Build\automate\%computername%\Build.cmd \ No newline at end of file