VMware PowerCLI on Linux?
by rkelsen from LinuxQuestions.org on (#5KVJB)
I need to add a network driver to an ESXi ISO in order to get ESXi to install on my hardware.
This can be done with the VMware Image Builder which is included with PowerCLI.
PowerCLI requires Microsoft Powershell, which (surprisingly) is cross platform.
So, I installed Powershell as per Microsoft's instructions, and it seems to work.
Adding PowerCLI was then just a matter of running this command: Install-Module VMware.PowerCLI -Scope CurrentUser
PowerCLI seems to install OK... but trying to run any of the VMware Image Builder commands (say, for example, Get-EsxImageProfile) gives me this:
"Get-EsxImageProfile: The 'Get-EsxImageProfile' command was found in the module 'VMware.ImageBuilder', but the module could not be loaded. For more information, run 'Import-Module VMware.ImageBuilder'"
So then I run: Import-Module VMware.ImageBuilder, and I get this:
"Exception: The VMware.ImageBuilder module is not currently supported on the Core edition of PowerShell"
Has anyone come across this? If so, how do I fix it?
This can be done with the VMware Image Builder which is included with PowerCLI.
PowerCLI requires Microsoft Powershell, which (surprisingly) is cross platform.
So, I installed Powershell as per Microsoft's instructions, and it seems to work.
Adding PowerCLI was then just a matter of running this command: Install-Module VMware.PowerCLI -Scope CurrentUser
PowerCLI seems to install OK... but trying to run any of the VMware Image Builder commands (say, for example, Get-EsxImageProfile) gives me this:
"Get-EsxImageProfile: The 'Get-EsxImageProfile' command was found in the module 'VMware.ImageBuilder', but the module could not be loaded. For more information, run 'Import-Module VMware.ImageBuilder'"
So then I run: Import-Module VMware.ImageBuilder, and I get this:
"Exception: The VMware.ImageBuilder module is not currently supported on the Core edition of PowerShell"
Has anyone come across this? If so, how do I fix it?