Using vim-cmd To Power On Virtual Machines

Table of Contents

Facebook
Twitter
LinkedIn
Pinterest

When you have a lab it is very wise to have a UPS that will protect you in case of a power shortage, this is because a power shortage can bring everything down. When everything is 100% virtualized, DHCP , DNS and active directory. Recovering this type of environment is a little hard from a complete outage. This is because after you have brought the network, storage and ESXi hosts online. Still the DHCP will not be on, from which you leverage to open the vSphere Client and connect to an ESXi host. What this means is that you bring up a few infrastructures VMs from the ESXi host TSM(Tech Support Mode ) console. This can be done using the vmware-cmd

On ESXi 5.0 update 1, vmware-cmd does not work. The command has been deprecated and replaced by /usr/bin/vim-cmd.

Before starting infrastructure VMs using vim-cmd, first find the corresponding Vmid using vim-cmd vmsyc/getallvms ( add more at the end to pause at each page of a long list of registered virtual machines ).

You can now power on using this command vim-cmd vmsvc/power.on 77 you have the DHCP and you can use the vSphere Client on my workstation to power up the remaining virtual machines. This can also be done using the vim-cmd. When you have done that you will see how much more can be done using the vim-cmd from the output you will see. Try this in your own lab. This can come in handy when tackling VCAP-DCA exams. This will also help you during a power outage.

More posts

Dedicated Servers Quick Guide

What is a Dedicated Servers? Why bother using a dedicated server over a VPS or Shared Hosting?A dedicated server is a server 100% dedicated to your website/project or business needs.

Veeam Launches Backup & Replication v7

When it comes to data protection, data replication and data recovery, these are very challenging tasks. Consolidation through virtualization has forced customers to retool automated protection and recovery methodologies in

Release: Veam Backup & Replication 6.5

For those not aware, there has been a new release of the Veam Backup & Replication 6.5. It’s very interesting, the first backup solution for vSphere 5.1 and windows Server

VMware releases vSphere powerCLI 5.5 R2

There was some new release of vSphere PowerCLI 5.5(Build 1649237) wich was shared by Alan Renouf on facebook . The new R2 has the following features per the release notes: