How to export VMware virtual machine from ESXi or VCSA using PowerCLI

To export a virtual machine from the VCSA you can use either VCSA client (HTML5 or Flex). Since neither of these methods is reliable enough, you can export it using PowerCLI and PowerShell interface on your PC or MAC. In this example I will use a virtual machine named v-srv01. Please note that export VM function is available only in commercial versions of ESXi server and any version of VCSA. Continue reading “How to export VMware virtual machine from ESXi or VCSA using PowerCLI”

How to cleanup disk previously used by vSAN 6.x

In the VCSA Web Client, there is a function called Erase partitions under Storage Devices, that allows you to erase and remove all partitions on the local hard disk(s). However, sometimes when you try to erase partitions, you are presented with the error “Cannot change the host configuration“, and the partitions are not removed. One of the options was to boot up the server using gParted utility and erase partitions. However, this can be done using partedUtil utility on the ESXi host. Continue reading “How to cleanup disk previously used by vSAN 6.x”