ESXi and VMware Workstation: quick way of getting Console screenshots in PNG format; some URLs on your ESXi machine
Posted by jpluimers on 2013/08/23
Thanks DoubleCloud for the post on Really Easy Ways to Capture VM Screenshot.
It also works for VMware ESXi, and by default is enabled: browse to https://esxi-machine/screen?id=# to get a PNG screenshot of the VM with ID=#.
I’m not sure yet how to get the ID of a running VM, so usually this is a bit of trial and error on a busy system (:
Later: I found out you can get the ID through MOB; see a couple of these links.
- VMware Front Experience: How cool is that: VM console screenshots just by browser.
- Web-Based Datastore Browser in vSphere | DoubleCloud.org.
- A Little Known Secret of vSphere Managed Object Browser | DoubleCloud.org.
For my ESXi the URLs are these:
You can even add parameters to modify this PNG, as per [Archive.is] Capturing Virtual Machine Screenshots in vSphere – VMware vSphere Blog:
w
= the pixel width of the scaled imageh
= the pixel height of the scaled imagex0
= the left side of the bounding box to select the imagey0
= the top side of the bounding box to select the imagex1
= the right side of the bounding box to select the imagey1
= the bottom of the bounding box to select the image
Turn of screen blanking
- In Windows, look at the Power options, then turn off the screen saver.
- On Linux text consoles e.g. you can do this with the command “setterm -blank 0”.
VMware Workstation
There is no way to take screenshots using URLs in VMware Workstation. But as of VMware Workstation 6.5, you can use Ctrl+Alt+PrtSc both in Windows and Full Screen mode. Like the ESXi screenshots, captures only the screen itself (so not the borders/toolbar/tabs in Windowed mode).
Note that form the vSphere client, you can take a movie as well: Creating a Screen Shot or a Movie of a Virtual Machine.
URLs on your ESXi machine
The above leads us to a couple of URLs on your ESXi machine:
- Base index which you can remove:
https://esxi-machine
- Screen shots:
https://esxi-machine/screen?id=#
- Managed Object Browser:
https://esxi-machine/mob
- Data Store Access:
https://esxi-machine/folder
- Host File Access:
https://esxi-machine/host
- Update Package Access:
https://esxi-machine/tmp
- Log files and configuration:
https://esxi-machine/host
via:
Instead of removing the base index page, you can also turn it into virtuallyGhetto: Ghetto webAccess for ESXi as ESXi 5.0 cannot be used for Installing the VMware vSphere 5.1 Web Client | VMware Support Insider – VMware Blogs.
If you are on a Mac with OS X, you even can go further: Poor man’s VMware Infrastructure Client for OS X | Break & Enter.
For PC and iPad, VMware has software available, but not for Mac OS X:
- VMware vSphere Client for iPad for iPad on the iTunes App Store.
- VMware vSphere Client Download URL ~ What the…..?.
–jeroen
TUMBLEWEED: local console yast linedrawing characters garbage after first reboot « The Wiert Corner – irregular stream of stuff said
[…] This is how yast looks now (boy I’m glad with https://wiert.me/2013/08/23/esxi-quic…n-png-format): […]