Giter VIP home page Giter VIP logo

labbuildr's Introduction

logo
(http://labbuildr.readthedocs.io/en/master/)

=======

labbuildr is a Framework based upon vmxtoolkit (https://github.com/bottkars/vmxtoolkit). labbuildr allows on demand creation of lab environments on Vmware Workstation / Fusion
labbuildr deploys the folowing scenarios:

  • Exchange / Exchange DAG 2010,2013,2016
  • SQL / SQL Always on 2012,2014,2016
  • Hyper-V
  • Sharepoint
  • Standalone VM´s
  • Mastering ESXi Installs
  • Automating EMC ScaleIO Installs and any more.
    labbuildr can be updated automatically.
    labbuildr allows for fully customization of network environment vi a central configuration (labtools)

labbuildr is based upon prebuilt masters.
See http://labbuildr.readthedocs.io/en/master/Solutionpacks/Master for details

For the 2016 release, the following changes applied to previous Versions labbuildr:

  • seperation of scripts to labbuildr-scripts
  • this allows scripts to be used independant
  • new scenarios
  • new 2016 Support
  • Support for Syctr TP4 ( SCOM and SCVMM )
  • Support for Spaces Direct ( currently with Blank Nodes/Hyper-V Scenario )
  • Hyper-V
  • SCOM
  • SQL
  • Exchange 2016
  • Networker

Contributing

Please contribute in any way to the project. Specifically, normalizing differnet image sizes, locations, and intance types would be easy adds to enhance the usefulness of the project.

Licensing

Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Support

Please file bugs and issues at the Github issues page. The code and documentation are released with no warranties or SLAs and are intended to be supported through a community driven process.

labbuildr's People

Contributors

bottkars avatar davestemerdink avatar labbuildr avatar wikijm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

labbuildr's Issues

Exchange permissions are not set correctly

Hi,

when deploying an Exchange 2013 CU 13 DAG (2 nodes), the permissions for the NMMBackupUser are not set correctly. I don't know which permission is missing, but the NMM Exchange Admin Configuration Tool fixed it (I'm loving this tool :)).

Just run the tool on both nodes -> Configure Admin User -> Configure existing user -> enter nmmbackupuser and it will set all necessary permissions.

Unfortunately, it does not display which permission is missing when running the check.

Marcel

Little typo in post deployment message

Hi,

ECS Deployment took 00:11:49.5520948
Deployed VM´s in Scenario Hyper-V

This message comes after every deployment:

$StopWatch.Stop()
Write-host -ForegroundColor White "ECS Deployment took $($StopWatch.Elapsed.ToString())"
Write-Host -ForegroundColor White  "Deployed VM´s in Scenario $Scenarioname"
get-vmx | where scenario -match $Scenarioname | ft vmxname,state,activationpreference
return

What does ECS means? Elastic Cloud Storage? :)

Marcel

Everytime running build-lab.ps1 -Update it finds an vmxtoolkit update

Hi,

when I run build-lab.ps1 -Update in succession it finds every time an update for vmxtoolkit but does not install anything.

PS E:\labbuildr> .\build-lab.ps1 -Update
==>No update required for labbuildr on master, already newest version
==>No Deletions required
==>No update required for labbuildr-scripts on master, already newest version
==>No update required for labtools on master, already newest version
We found a newer Version for vmxtoolkit on Git Dated Tue, 05 Jul 2016 19:01:08 GMT
==>extracting E:\labbuildr\update\vmxtoolkit-master.zip\vmxtoolkit-master to E:\labbuildr\vmxtoolkit
==>No update required for SIOToolKit on master, already newest version

==>Update Done
==>press any key for reloading Modules

Building SQL Lab / labbuildr installs nw9004 and nmm9006

Hi,

I've two nw versions in my source directory:

nw9004 + nw9006

When running ".\build-lab.ps1 -SQL -SQLVER SQL2014 -NMM -nmm_ver nmm9006 -defaults" NW client 9004 is installed on the SQL host. NMM is installed in version 9006 like specified.

It should be a dependency to install the same version of the NW client when a nmm version is specified, even when the NW version is not provided to build-lab.ps1.

What do you think? Why is 9004 installed?

Regards
Marcel

Typo during Exchange 2013 deployment

Hi Karsten,

little typo:

PS E:\labbuildr> .\build-lab.ps1 -Exchange2013 -NMM -nmm_ver nmm9006 -NW -nw_ver nw9006 -defaults
...
==> Entering Download Section
Preparing Exchange 2014 cu12
...

Marcel

"Invalid configuration file" when creating linked clones

Hi,

getting this message every time labbuildr is creating a linked clone:

 ==> Creating Linked Clone E2013N1 from E:\labbuildr\2012R2FallUpdate\2012R2FallUpdate.vmx, VMsize is XL
VixDiskLib: Invalid configuration file parameter. Failed to read configuration file.
VixDiskLib: Invalid configuration file parameter. Failed to read configuration file.
VixDiskLib: Invalid configuration file parameter. Failed to read configuration file.

But everything works as it should.

Marcel

Typo during DDVE deployment

Hi Karsten,

  • ethV1 appears two times
  • netmask should be 255.255.255.0
  • ethV0 is configured first

...
Ethernet Port ethV1
Enter NO for Enable Ethernet ethV1
Ethernet Port ethV1
Enter Yes for Enable Ethernet Port ethV0
Enter NO for DHCP
Enter IP Address for ethV0:
192.168.2.21 as IP Address
enter the netmask for ethV0:
255.255.25.0

...

Editing LabDefaults functions

Hi Karsten,

would be nice to have an option to edit all LabDefaults with an Set-Lab* command.
For example, NMM_ver and NW_ver and others are missing.

Function        Set-LABBuilddomain                                 0.0        labtools
Function        Set-LABDefaultGateway                              0.0        labtools
Function        Set-LABDNS                                         0.0        labtools
Function        Set-LABDNS1                                        0.0        labtools
Function        Set-LABGateway                                     0.0        labtools
Function        Set-LABHostKey                                     0.0        labtools
Function        Set-LABMasterpath                                  0.0        labtools
Function        Set-LABnmm                                         0.0        labtools
Function        Set-LABNoDomainCheck                               0.0        labtools
Function        Set-LABpuppet                                      0.0        labtools
Function        Set-LABPuppetMaster                                0.0        labtools
Function        Set-LABSIOConfig                                   0.0        labtools
Function        Set-LABSources                                     0.0        labtools
Function        Set-LABsubnet                                      0.0        labtools
Function        Set-LABVlanID                                      0.0        labtools
Function        Set-LABvmnet                                       0.0        labtools
Function        Set-LABvmnet2hvswitch                              0.0        labtools

Marcel

Acrobat Reader

Hi,

why is Arcobat Reader installed on NWSERVER?

PS E:\labbuildr> .\build-lab.ps1 -NWServer -defaults -nw_ver nw8232
...
 ==>Destination : D:\Lab\Src\Acrobat
 ==>Trying to create D:\Lab\Src\Acrobat
VERBOSE: 230 Login successful.
 ==>Filesize: 63031808
 ==>Downloading ftp://ftp.adobe.com/pub/adobe/reader/win/AcrobatDC/1500720033/AcroRdrDC1500720033_en_US.msi via ftp
###################################################################################
VERBOSE: 230 Login successful.
 ==>Filesize: 69611520
 ==>Downloading ftp://ftp.adobe.com/pub/adobe/reader/win/AcrobatDC/1501620045/AcroRdrDCUpd1501620045.msp via ftp
############################################################################################
==> end download section
...
 ==> installing Acrobat Reader
E:\labbuildr\NWSERVER\NWSERVER.vmx install-acrobat.ps1           0 success
...

Running latest version.

Marcel

Exchange 2013 ECP/OWA not working after deployment

Hi,

when deploying Exchange 2013 CU 12 (tested with single node and DAG) and pointing the browser to https://localhost/ecp/?ExchClientVer=15 I only get a 404.

ModuleIIS Web Core 
Notification MapRequestHandler 
Handler StaticFile 
Error Code 0x80070002 
Requested URL https://localhost:443/ecp/?ExchClientVer=15 
Physical Path C:\inetpub\wwwroot\ecp\ 
Logon Method Anonymous 
Logon User Anonymous 

The physical path irritates me.
Still trying to figure out what is going wrong.

Any suggestions?

Kind regards
Marcel

NMMBackupUser mailbox is not activated

Hi,

to use GLR the mailbox of the user used for backup and restore (NMMBackupUser) has to be activated - received a mail or logged in via OWA. That not happens during deployment, so GLR operations will fail.

After logging in into OWA GLR works.

Marcel

Install NMM with GLR option enabled

Hi,

NMM GLR is not enabled when installing NMM during deployment.

setup.exe /s /v"/qn /l_v setup.log INSTALLLEVEL=200
REBOOTMACHINE=1 NW_GLR_FEATURE=1 WRITECACHEDIR "C:\Program
Files\EMC NetWorker\nsr\tmp\nwfs" MOUNTPOINTDIR "C:\Program Files
\EMC NetWorker\nsr\tmp\nwfs\NetWorker Virtual File System"
HYPERVMOUNTPOINTDIR "C:\Program Files\EMC NetWorker\nsr\tmp"
SETUPTYPE=Install"
Ensure that there is a space between:
l setup and /s
l /s and /v”/qn
l /v”/qn” and /l_v
l /l*v and setup.log
l setup.log and INSTALLLEVEL=200
l INSTALLLEVEL=200 and REBOOTMACHINE=1
l REBOOTMACHINE=1 and NW_GLR_FEATURE=1
l NW_GLR_FEATURE=1 and WRITECACHEDIR
l WRITECACHEDIR and "C:\Program Files\EMC
l NetWorker\nsr\tmp\nwfs"
l "C:\Program Files\EMC
l NetWorker\nsr\tmp\nwfs" and MOUNTPOINTDIR
l MOUNTPOINTDIR and "C:\Program Files\EMC
l NetWorker\nsr\tmp\nwfs\NetWorker Virtual File System"
l "C:\Program Files\EMC
l NetWorker\nsr\tmp\nwfs\NetWorker Virtual File System" and
HYPERVMOUNTPOINTDIR
l HYPERVMOUNTPOINTDIR and "C:\Program
l Files\EMC NetWorker\nsr\tmp"
l "C:\Program Files\EMC NetWorker\nsr\tmp" and SETUPTYPE=Install

Needed for Exchange/Sharepoint/Hyper-V

-Sourcedir should accept a path with more than 10 characters

PS E:\labbuildr> Set-LABSources -Sourcedir "D:\Lab\labbuildr_sources"
Set-LABSources : Cannot validate argument on parameter 'Sourcedir'. The character length of the 24 argument is too long.
the character length of the argument so it is fewer than or equal to "10" characters, and then try the command again.
At line:1 char:27

  • Set-LABSources -Sourcedir "D:\Lab\labbuildr_sources"
  •                       ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Set-LABSources], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationError,Set-LABSources

Script Failure - VPN issue

Hi,

I vaguely remember that I already had this problem in the past, but I don't remember the solution anymore.
Deploying Sharepoint:

18 .\build-lab.ps1 -defaults -Sharepoint -SQLVER "SQL2014" -NMM -nmm_ver nmm8232 -NW -nw_ver nw8232

I get this message when NW client should be installed:

WARNING: Script Failure for install-nwclient.ps1 with Guest program exited with non-zero exit code: 1

Scriptfailure for install-nwclient.ps1
May be VPN Issue, retry ?
[Y] Yes  [N] No  [A] Abort  [?] Help (default is "Y"): y

What is going wrong? Are there any logfiles?
Searched for "VPN" in some scripts but didn't find anything.

Marcel

Deploying more than 9 blank nodes throws an error

Hi Karsten,

Creating Blank Node Host GENNode10 with IP 192.168.2.190
 ==> Creating Linked Clone GENNode10 from E:\labbuildr\2012R2FallUpdate\2012R2FallUpdate.vmx, VMsize is M
Set-VMXActivationPreference : Cannot validate argument on parameter 'activationpreference'. The argument "10" does not belong to
the set "0;1;2;3;4;5;6;7;8;9" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the
command again.
At E:\labbuildr\clone-node.ps1:218 char:73
+ ... nce -config $Clone.config -activationpreference $ActivationPreference
+                                                     ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Set-VMXActivationPreference], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Set-VMXActivationPreference

Using this command: > .\build-lab.ps1 -Blanknode -BlankNodes 1 -defaults

I already asked you on twitter how to deploy only one node - is it a bug?

Kind regards
Marcel

Installing SSMS plugin during NMM installation

Hi,

what do you think about installing the SSMS plugin when installing NMM < 9.X on a SQL host?

The following parameter should do it: NW_SSMS_FEATURE=1

When installing 9.X you already activate it.

Kind regards
Marcel

unityvsa

the installation wizard will welcome you
image
Accept the license agreement
image
change your password (s)
image
upload your licensefile
image
view results
image
continue to with the wizard
image

add your dns servers
image
proceed to create pools
image

specify a name for the new pool to be created
image
assign available drives to their tiers
image
and then select a tier from the abvailable tiers
image
select the virtual disks to use
image
review your selection
image
wait for the pool wizard to finish creation
image
procced to next step
image
click the + sign to add iSCSI interfaces
image
fill in the information, this example is a labbuildr default setup:
image
finish the iSCSI Wizard
about:blank

image

Expand-LAB7ZIP does not return an error when a file is not found

Hi,

no error is returned when a file for extracting is not found.

PS E:\labbuildr> Expand-LAB7Zip -Archive D:\Lab\src\2012R2FallUpdateV1.7z
PS E:\labbuildr>

Function Expand-LAB7Zip in labtools.psm1 should look like that:

function Expand-LAB7Zip
{
 [CmdletBinding(DefaultParameterSetName='Parameter Set 1',
    HelpUri = "https://github.com/bottkars/LABbuildr/wiki/LABtools#Expand-LABZip")]
    param (
        [string]$Archive,
        [string]$destination=$vmxdir
        #[String]$Folder
        )
    $Origin = $MyInvocation.MyCommand
    if (test-path($Archive))
    {
 #   If ($Folder)
 #      {
 #     $zipfilename = Join-Path $zipfilename $Folder
 #    }
        $7za = "$vmwarepath\7za.exe"

        if (!(test-path $7za))
            {
            Write-Warning "7za not found in $vmwarepath"
            }   
        Write-Verbose "extracting $Archive to $destination"
        if (!(test-path  $destination))
            {
            New-Item -ItemType Directory -Force -Path $destination | Out-Null
            }
        $destination = "-o"+$destination
        .$7za x $destination $Archive
    } else {
        Write-Warning "$Archive not found"
    }
}

That's also an idea for all other functions looking for some files.

Kind regards
Marcel

NMM is not installed during Exchange 2013 deployment

Hi,

NMM is not installed when deploying Exchange 2013 CU12 stand-alone + DAG.

PS E:\labbuildr> .\build-lab.ps1 -defaults -Exchange2013 -NMM -nmm_ver nmm8232 -NW -nw_ver nw8232
...
 ==>Networker Modules nmm8232 will be intalled by User selection
 ==>Networker nw8232 found
 ==>Networker NMM nmm8232 found
 ==>Networker nw8232 Node will be installed
...
 ==> Install NWClient
E:\labbuildr\E2013N1\E2013N... install-nwclie...        0 success
 ==> Install NMM
E:\labbuildr\E2013N1\E2013N... install-nmm.ps1          0 success
PS C:\Users\NMMBackupUser> Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object {
$_.DisplayName -like "*net*"} | Select-Object DisplayName, DisplayVersion | Format-Table -AutoSize

DisplayName DisplayVersion
----------- --------------
NetWorker   8.2.3

LabDefaults are already set after installation

Hi,

you wrote the following on https://github.com/bottkars/labbuildr/wiki/1.0-Installation "6. verify defaults":

take a look at you lab defaults. they should be empty

get-labdefaults

That's not true:

PS E:\labbuildr> Get-LABDefaults
Master : 2012R2FallUpdate
ScaleIOVer : 2.0-5014.0
BuildDomain : labbuildr
MySubnet : 192.168.2.0
vmnet : vmnet2
vlanID :
DefaultGateway : 192.168.2.4
DNS1 : 192.168.2.4
DNS2 : 192.168.2.10
Gateway : False
AddressFamily : IPv4
IPV6Prefix : FD00::
IPv6PrefixLength : 8
Sourcedir : D:\sources
SQLVer : SQL2014
e15_cu : cu12
e16_cu : cu1
NMM_Ver : nmm9004
NW_Ver : nw9004
NMM : False
Masterpath :
NoDomainCheck :
Puppet :
PuppetMaster :
HostKey :

How is the system evaluated?

Hi,

not urgent, but how du you evaluate the systen?

Bad, Running build-lab on a ASUS All Series with Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz with 4 Cores and 4 Logicalk CPUs and 16
GB Memory

Have seen worser hardware :)

Marcel

Exchange 2013 - prepopulated mailboxes can't be used for GLR

Hi,

all prepopulated mailboxes are "HealthMailboxes" - I don't know exactly what this is to be honest :)

[PS] C:\Windows\system32>Get-MailboxStatistics -Database RDB

DisplayName               ItemCount    StorageLimitStatus                                                 LastLogonTime
-----------               ---------    ------------------                                                 -------------
SystemMailbox{034978e3... 2
Microsoft Exchange        7
Microsoft Exchange        2
HealthMailbox-E2013N1-... 41                                                                        10.07.2016 17:59:44
PFMailbox_labbuildr       0
In-Place Archive - Hea... 1
HealthMailbox-E2013N1-001 3                                                                         10.07.2016 17:32:55
HealthMailbox-E2013N1-002 2
HealthMailbox-E2013N1-003 2
HealthMailbox-E2013N1-004 2
HealthMailbox-E2013N1-005 2
HealthMailbox-E2013N1-006 2
HealthMailbox-E2013N1-007 2
HealthMailbox-E2013N1-008 2
HealthMailbox-E2013N1-009 2
HealthMailbox-E2013N1-010 2
In-Place Archive - Hea... 1                                                                         10.07.2016 17:21:21
NMMBackupUser             7                                                                         10.07.2016 17:59:29
test test.                2

HealthMailboxes are not browsable/recoverable. To test GLR we've to add new users.

Mailbox HealthMailbox-E2013N1-001 is a HealthMailbox and is not browsable nor can it be recovered.
Mailbox HealthMailbox-E2013N1-002 is a HealthMailbox and is not browsable nor can it be recovered.
Mailbox HealthMailbox-E2013N1-003 is a HealthMailbox and is not browsable nor can it be recovered.
Mailbox HealthMailbox-E2013N1-004 is a HealthMailbox and is not browsable nor can it be recovered.
Mailbox HealthMailbox-E2013N1-005 is a HealthMailbox and is not browsable nor can it be recovered.
Mailbox HealthMailbox-E2013N1-006 is a HealthMailbox and is not browsable nor can it be recovered.
Mailbox HealthMailbox-E2013N1-007 is a HealthMailbox and is not browsable nor can it be recovered.
Mailbox HealthMailbox-E2013N1-008 is a HealthMailbox and is not browsable nor can it be recovered.
Mailbox HealthMailbox-E2013N1-009 is a HealthMailbox and is not browsable nor can it be recovered.
Mailbox HealthMailbox-E2013N1-010 is a HealthMailbox and is not browsable nor can it be recovered.
Mailbox HealthMailbox-E2013N1-DB1_E2013N1 is a HealthMailbox and is not browsable nor can it be recovered.
Mailbox In-Place Archive - HealthMailbox-E2013N1-001 is an archive mailbox and cannot be recovered.
Mailbox In-Place Archive - HealthMailbox-E2013N1-DB1_E2013N1 is an archive mailbox and cannot be recovered.
Mailbox Microsoft Exchange is a ArbitrationMailbox and is not browsable nor can it be recovered.
Mailbox Microsoft Exchange is a ArbitrationMailbox and is not browsable nor can it be recovered.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.