Archive for the ‘VMWARE’ Category

Automatic Upgrade of VMware Tools

Posted: February 28, 2017 in VMWARE

Have you ever tried to upgrade the VMware Tools on a VM and shown:

automaticupgradevmtools

  • Interactive Tools Upgrade
  • Automatic Tools Upgrade

I have stumbled upon this screen many times and most of the time chose the “Interactive Tools Upgrade” option where you login to the VM and install manually. After some research I found the commands on the VMware web page Enjoy!

Ever since System Center 2012 R2 Data Protection Manager started to support VMWare I’ve been trying to get it to work, I would end up getting stuck on the Certificate issue. A couple of days ago I saw this post:

implementingmicrosoftdpmhostlevelprotectionvmwarevms

To my benefit they solved the certificate issue, and I was able to implement the solution perfectly. A very special thanks  J.C. Hornbeck [MSFT] to for this Post.

Ever since System Center 2012 R2 Data Protection Manager started to support VMWare I’ve been trying to get it to work, I would end up getting stuck on the Certificate issue. A couple of days ago I saw this post:

implementingmicrosoftdpmhostlevelprotectionvmwarevms

To my benefit they solved the certificate issue, and I was able to implement the solution perfectly. A very special thanks  J.C. Hornbeck [MSFT] to for this Post.

Power on/off VMware VM’s via CLI

Posted: September 22, 2015 in VMWARE

Turn on VMware VM (Virtual Machine) via CLI [Command Language Interpreter (CLI)]

I’m on a client site, we had issues with a VMWare host, we turned on the Host and after a couple of minutes it’s up and running, we wait a couple of minutes more and we can’t connect to the Virtual Machines. My first guess all the VM’s are powered off, I try to connect using VMware vSphere Client, but:

  1.  the Host has a different version.
  2. I need to download the correct client.
  3. No Internet on Site

I head to the VMware Host:

  1. Login to the VMWare
  2. Enable ESXi Shell and SSH
VMware-ESXi-55
    3. Connect to VMWare Host using Putty
PuttySSHVMLogin
PuttySSHVM
    4. Get VMID for all VM’s on the host (VIM-CMD VMSVC/GETALLVMS)
VMWare-VMID-ALLVM
    5. Write down VMID
VMWARE-VMID
    6. Get state of the VM using the VMID (VIM-CMD VMSVC/POWER.GETSTATE %vmid%)
VMWARE-GETSTATE
VMWARE-GETSTATE-INFO
    7. Turn on the VM (VIM-CMD VMSVC/POWER.ON %vmid%)
vmware-poweronVM
With the VMID’s you will be able to power on all your VM”s, comes in pretty handy when you run into a similar situation or you just wan to show off.
In case you want to power off you VM’s  run command VIM-CMD VMSVC/POWER.OFF %vmid%
vmware-powerOffVM
ENJOY!!!