VMs are shown with absolute path to vmx file in vCenter

VMs are shown with absolute path to vmx file in vCenter

These days I had to troubleshoot a problem in a vCenter environment. A few VMs shown with absolute path to vmx file in vCenter inventory. Normally this occurs when a ESXi boots with no connection to its previous mounted storage volumes. VMs located on these volumes are shown like this in inventory. But this wasn’t the case here: VMs were running and no host was […]

Read Me Leave comment

Cold boot VM by guest OS reboot

Cold boot VM by guest OS reboot

When a VM is rebooted in OS, it keeps powered on at ESXi host during the whole boot process. Sometime it would be very useful when a OS reboot triggers a cold boot. In this post I show how to cold boot VM by guest reboot. Cold boot is like to power cycle a computer. A VM needs to get through a power off state […]

Read Me Leave comment

PowerShell error when accessing PowerShell gallery

PowerShell error when accessing PowerShell gallery

Most often installing PowerCLI is no problem. Sometimes there is a PowerShell error when accessing PowerShell gallery. Like now: Just wanted to install PowerCLI onto a new Windows 10. When running the command find-module vmware* I get this error(s): Fortunately I found a solution quickly here. Problem is related to security protocols used in PowerShell. Check current protocols by running: My Windows 10 showed this […]

Read Me Leave comment

Intel CIM error after update/upgrade ESXi host

Intel CIM error after update/upgrade ESXi host

It is not uncommon to get errors after a host update/upgrade you didn’t see before on the host. The following error could be seen as an example of errors with the same cause. The error I did an upgrade of a 6.5 host (installed with HPE ESXi image almost 2 years ago) to the latest HPE ESXi image of 6.7 U3. After final boot the […]

Read Me Leave comment

vCenter Tag based VM placement

vCenter Tag based VM placement

Introduction The idea behind tag based placement is quite simple. It assists administrators to keep VMs respectively VMDKs on desired datastores, based on tags. For example, a VM is defined to be located in datacenter 1 (DC1). With tag based placement you assign tag “Storage DC1” to all datastores in DC1 and configure a policy that is assigned to VMs in DC1. All wizards in […]

Read Me Leave comment

PSP rule for active/standby controller arrays (like Nimble Storage)

PSP rule for active/standby controller arrays (like Nimble Storage)

First, what does active/standby mean. For this blog post, it means the array hast at least 2 controllers, one presents ALL LUNs to the hosts, the second controller presents NO active LUNs path to the hosts. Just in case of a manual or automatic failover, the second controller takes-over ALL LUN-presentations – and active paths. Examples of such arrays are: [very old one] HP MSA 1000 HPE Nimble […]

Read Me 2 Comments

Error when running Import-Module

Error when running Import-Module

I am quite sure, everyone who already installed PowerShell modules knows this error running Import-Module: Import-Module : File C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Sdk\11.3.0.13964823\VMware.VimAutomation.Sdk.psm1 cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy. At line:1 char:1 + import-module vmware.powercli + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : SecurityError: (:) [Import-Module], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.PowerShell.Commands.ImportModuleCommand Normally this is caused by – […]

Read Me Leave comment

Using PowerCLI to set mail recipient for a bulk of alarms

Using PowerCLI to set mail recipient for a bulk of alarms

In this post I will describe how to use PowerCLI to add a trigger and a mail recipient to selected vSphere alarms. This is an excellent example of how PowerCLI can easily be used to do a task in a few moments while needing maybe hours when doing in GUI. A use-case for assigning a trigger and recipient to many alerts can be the implementation […]

Read Me 2 Comments

PowerShell error when updating PowerCLI to latest version

PowerShell error when updating PowerCLI to latest version

These days I wanted to update a PowerCLI installation to current version. Normally this no big deal. But this time I got a PowerShell error when updating PowerCLI. I was using this command: and got the following error: PackageManagement\Install-Package : Unable to find repository ‘https://www.powershellgallery.com/api/v2/’. Use Get-PSRepository to see all available repositories. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.0.1\PSModule.psm1:13000 char:20 + … $sid = PackageManagement\Install-Package @PSBoundParameters + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + […]

Read Me Leave comment

[VMUG Austria] PowerCLI 101

[VMUG Austria] PowerCLI 101

This is the second part of the guide line of my VMUG session of PowerCLI 101. In first part I focused on PowerShell basics. PowerCLI Installation Since version 6.5.1.5 of PowerCLI it is just available on Microsoft PowerShell Gallery. Until than it was a separate download on VMware pages. The advantage of PowerShell Gallery is that modules can be installed by using PowerShell command: To […]

Read Me Leave comment
Social Share Buttons and Icons powered by Ultimatelysocial