labbuildr
labbuildr copied to clipboard
ESXi Install on OS X
Hello Karsten,
on OS X the install of esxi failed.
-
install-esxi uses the wrong path for the kickstart files.for example:
#;f;a;ste,20160922;wrong path
#$Content = Get-Content .\Scripts\ESX\KS.CFG
$Content = Get-Content .\labbuildr-scripts\ESX\KS.CFG
#;f;e;ste,20160922;wrong path
-
OS X is a case sensitiv operating system. some of your path definitions are upper case but next line lower case
#if (Test-Path .\iso\ks) { Remove-Item -Path .\iso\ks -Recurse }
if (Test-Path .\iso\KS) { Remove-Item -Path .\iso\KS -Recurse }
$KSDirectory = New-Item -ItemType Directory .\iso\KS
also your file definitions!
-
creation of the ks.iso failed
==>Creating Kickstart CD
. : The module '/Applications/VMware Fusion.app' could not be loaded. For more
information, run 'Import-Module /Applications/VMware Fusion.app'.
At /Users/ste/labbuildr/install-esxi.ps1:340 char:4
+ .$VMWAREpath\mkisofs.exe -o "$($NodeClone.path)\ks.iso" "$Bu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (/Applications/V...app\mkisofs.e
xe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId :
CouldNotAutoLoadModule` I search a possibility to check what kind of OS to change the mkiso path and binary.
kind regard Sascha
yepp, however, not finished validation, i fixed the parh issus, but mkisofs needs to be tested during modules load. wich version do you use for it ? need also check you osx commands, as they will greatly improve the expeience checking for installed versions !
will ckeck if i can use hdiutil. so i will write a wrapper with common labbuildr switches, and load it with vmwaretoolkitinit.ps1