Windows 용 모듈을 Mac에 설치하는게 웃기기는 하지만 이게 업이라...

 

우선 Homebrew를 사용해서 Powershell 먼저 설치..

 

https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos?view=powershell-7.1 

 

Installing PowerShell on macOS - PowerShell

Information about installing PowerShell on macOS

learn.microsoft.com

 

이건 공식 문서가 너무 잘나와서 딱히 내가 보탤 말이 없다. 

 

그 다음에 VMware PowerCLI 설치인데 

 

https://github.com/vmware/PowerCLI-Example-Scripts

 

GitHub - vmware/PowerCLI-Example-Scripts

Contribute to vmware/PowerCLI-Example-Scripts development by creating an account on GitHub.

github.com

 

 

 

 

GitHub에서 VMware PowerCLI 모듈을 몽땅 다운 받은 후

 

Terminal 실행 - Powershell을 구동하기 위해 pwsh 입력

 

$env:PSModulePath 를 입력하면 모듈이 설치되는 위치가 나온다. 

 

다운로드한 파일 압축 풀어서 해당 경로에 mv로 넣으면 모듈 준비 완료.

 

Import-Module VMware.VimAutomation.Core

Import-Module VMware.VimAutomation.HorizonView

Import-Module VMware.Hv.Helper

 

등 모듈 Import 후 Connect-VIserver, Connect-HVServer 등의 명령어가 호출되면 정상 로딩 완료. 

 

 

반응형

+ Recent posts