O'Reilly logo

PowerCLI Cookbook by Philip Sellers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Locating and reloading inaccessible or invalid virtual machines

Since virtual machines are nothing more than a group of files that define a computer, sometimes an ESXi host or vCenter might lose communication with a filesystem or datastore where the virtual machine files are stored. In that event, the VM can be labeled as inaccessible or invalid inside vCenter. One way to solve this is to unregister and reregister the virtual machine's VMX file to vCenter or the ESXi host.

When you have many of these inaccessible or invalid VMs, like after a storage outage, it can become a tedious process to cleanup. PowerCLI can offer an easy and quick way to provide a remedy for this situation. In this recipe, we'll explore how to locate and identify inaccessible ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required