开发者

How can I tell what resolution a VM is running at with VirtualBox?

开发者 https://www.devze.com 2022-12-23 10:28 出处:网络
I have some VirtualBox VMs running. Is there any way to programatic开发者_运维百科ally get the resolution they are running at? The guest VMs are running Windows XP. Parse the output of vboxmanage show

I have some VirtualBox VMs running. Is there any way to programatic开发者_运维百科ally get the resolution they are running at? The guest VMs are running Windows XP.


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"


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消