Ask OpBot – Part 2: Check the VM console screens remotely?
When trouble shooting virtual machines or most systems in general, you want to check what is visible on the console. Getting this information remotely is not just great, it can be essential to save time and recover a system as quick as possible.
That is the moment where OpBot comes in handy and you can access your VMware vSphere from anywhere you like using Slack chat (or Rocket.Chat, if you prefer on-premise). OpBot is up and running in minutes!
The VMware vSphere API offers the possibility of saving a console screenshot to a image file. OpBot uses that feature to create and upload the image to your chat window. Doesn´t matter if its your desktop, tablet or smartphone.
Just search for the VM you need more information from using the vm command and add screenshot to it:
vm <vm name> screenshot
OpBot responds in seconds and you know exactly if the system is still starting or hangs (Kernel panic, Bluescreen).
Just make sure to grant the OpBot user in VMware vSphere a little bit more permissions, to access the vm console and make a screenshot.
Worth mentioning: if you capture black screens most of the time, please disable display power saving settings are disabled!