bottkars / labbuildr Goto Github PK
View Code? Open in Web Editor NEWlabbuildr is an fully automated tool to deploy windows vm´s and emc va´s and solutions using powershell on vmware workstation
labbuildr is an fully automated tool to deploy windows vm´s and emc va´s and solutions using powershell on vmware workstation
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
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
Hi,
ItemPoint/GLR is not installed during NMM installation.
When using Exchange 2016 ItemPoint is the only way to do a GLR.
Marcel
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
change password of root
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
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
the installation wizard will welcome you
Accept the license agreement
change your password (s)
upload your licensefile
view results
continue to with the wizard
add your dns servers
proceed to create pools
specify a name for the new pool to be created
assign available drives to their tiers
and then select a tier from the abvailable tiers
select the virtual disks to use
review your selection
wait for the pool wizard to finish creation
procced to next step
click the + sign to add iSCSI interfaces
fill in the information, this example is a labbuildr default setup:
finish the iSCSI Wizard
about:blank
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
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
Issue occurs on install-vipr.ps1 where 7zs is used, but not part of VMware 10
Support for autoreseed
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
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
Wait for GST Webserver to start before connecting to nmc
Hi Karsten,
...
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
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
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
Fixed in
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
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
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
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.
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
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 :
do not worry about it
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
~~~~~~~~~~~~~~~~~~~~~~~~~~
labbuildr defaul_guestuser shall be set with sudoeers, docker Group ... wheer applcable
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.