diff --git a/Build/Automate/AddHosts.ps1 b/Build/Automate/AddHosts.ps1 index 3b2bf56..863d43d 100644 --- a/Build/Automate/AddHosts.ps1 +++ b/Build/Automate/AddHosts.ps1 @@ -339,6 +339,7 @@ If ($SRM -ne $True){ if ($CreateDS) { Write-BuildLog "Creating iSCSI datastores." $iSCSILUNs = get-scsilun -vmhost $VMHost -CanonicalName "t10.*" + if ($iSCSILUNs -eq $Null) {$iSCSILUNs = get-scsilun -vmhost $VMHost -CanonicalName "naa.*"} if ($vmhostobj.version.split(".")[0] -ne "4") { if (((Get-Datastore | where {$_.Name -eq "iSCSI1"}) -eq $null) ) { $null = New-Datastore -VMHost $VMHost -Name iSCSI1 -Path $iSCSILUNs[0].CanonicalName -Vmfs -FileSystemVersion 5 diff --git a/SRC/NAS/NASBuild.md b/SRC/NAS/NASBuild.md new file mode 100644 index 0000000..53bd71a --- /dev/null +++ b/SRC/NAS/NASBuild.md @@ -0,0 +1,117 @@ +# NAS VM Build for AutoLab # + +Using FreeNAS V 9.10 + +## VM Hardware Config ## +1 vCPU + +512MB RAM + +Boot Disk 8GB IDE + +NFS Disk 80GB SCSI + +iSCSI Disk 200GB SCSI + +1 NIC on VMNet3 + +## Disk Config ## +NFS disk mounts as /mnt/LABVOL + +iSCSI disk mounts as /mnt/iSCSI +## Services ## +Enabled Services + +- CIFS +- iSCSI +- NFS +- SSH + +## Network Config ## +**Interface Name:** Management + +**IP Address:** 192.168.199.7 + +**Netmask:** 255.255.255.0 + +**Alias IP Address:** 172.17.199.7 + +**Alias Netmask:** 255.255.255.0 + +**Default Route:** 192.168.199.2 + +**Name Server:** Leave Blank + +## SSH Config ## + +- Allow root login with password + +Open SSH connection as root + +Create folders: + +- /mnt/LABVOL/NFS01 +- /mnt/LABVOL/NFS02 +- /mnt/LABVOL/NFS03 +- /mnt/LABVOL/NFS04 +- /mnt/LABVOL/Build + +Change permissions on Build to allow everyone RW + +## NFS Config ## +**/mnt/LABVOL** + +- All Dircetories Shared +- No network restrictions + +**Sub Folders** + +- Build +- NFS01 +- NFS02 +- NFS03 +- NFS04 + +## CIFS Config ## +**/mnt/LABVOL/Build** + +- Exported +- Browseable +- Allow guest access + +## iSCSI Config ## + +**File Extents** + +**Name:** iSCSI1 + +- **Path:** /mnt/iSCSI/iSCSi1 +- **Size:** 60GB + +**Name:** iSCSI2 + +- **Path:** /mnt/iSCSI/iSCSi2 +- **Size:** 30GB + +**Name:** iSCSI3 + +- **Path:** /mnt/iSCSI/iSCSi3 +- **Size:** 30GB + +**Name:** iSCSI4 + +- **Path:** /mnt/iSCSI/iSCSi4 +- **Size:** 30GB + +**Targets** + +- One Target per extent +- Target Name matches Extent name + +**Portal** + +- **Name: ** IP Storage +- **IP Address:** 172.17.199.7 + + + \ No newline at end of file diff --git a/SRC/NAS/freenas-FreeNAS-9.10-STABLE-201606270534 (dd17351)-20160724115051.db b/SRC/NAS/freenas-FreeNAS-9.10-STABLE-201606270534 (dd17351)-20160724115051.db new file mode 100644 index 0000000..1b51735 Binary files /dev/null and b/SRC/NAS/freenas-FreeNAS-9.10-STABLE-201606270534 (dd17351)-20160724115051.db differ