I have some VirtualBox VMs running. Is there any way to programatically get the resolution they are running at? The guest VMs are running Windows XP.
A:
Simplest solution : Write a program to get the screen resolution and store it to a shared location or send it via network to the host machine. Put this program in the startup of each VM.
rep_movsd
2010-03-21 17:26:18
+2
A:
Parse the output of vboxmanage showvminfo <name>|<uuid>
. For example:
C:\> vboxmanage showvminfo "Dev Server"
...
Video mode: 1360x768x32
...
You can also add the --machinereadable
flag to make parsing easier. It outputs the information as key-value pairs:
VideoMode="1360,768,32"
David Brown
2010-03-21 17:36:19
perfect, thanks!
Claudiu
2010-03-21 21:44:11