labbuildr icon indicating copy to clipboard operation
labbuildr copied to clipboard

ESXi Install on OS X

Open STetzel opened this issue 8 years ago • 2 comments

Hello Karsten,

on OS X the install of esxi failed.

  1. 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

  2. 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!

  3. 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

STetzel avatar Sep 21 '16 20:09 STetzel

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 !

bottkars avatar Sep 22 '16 21:09 bottkars

will ckeck if i can use hdiutil. so i will write a wrapper with common labbuildr switches, and load it with vmwaretoolkitinit.ps1

bottkars avatar Sep 22 '16 21:09 bottkars