Could showvminfo "Memory size" line should use ":" field separator?

Here you can provide suggestions on how to improve the product, website, etc.
Post Reply
steverpalmer
Posts: 1
Joined: 19. Feb 2019, 13:23

Could showvminfo "Memory size" line should use ":" field separator?

Post by steverpalmer »

The VBoxManage showvminfo (v.6.0.2r127994) output gives lots of useful information expressed mostly as:

<field> ":" <value> "\n"

... except for the "Memory size" field which omits the ":"

Memory size 1024MB

I am trying to parse this output, and it would make life easier for the "Memory size" field follow the same structure as all the others lines.

PS. the manual example for VBoxManage showvminfo does show a colon, but the real program doesn't. From the manual ...

Code: Select all

Name:            Windows XP
Guest OS:        Other/Unknown
UUID:            1bf3464d-57c6-4d49-92a9-a5cc3816b7e7
Config file:     /home/username/.config/VirtualBox/Machines/Windows XP/Windows XP.xml
Memory size:     512MB
VRAM size:       12MB
Number of CPUs:  2
Boot menu mode:  message and menu
Boot Device (1): DVD
Boot Device (2): HardDisk
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          on
...
Thank you,
Steve
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Could showvminfo "Memory size" line should use ":" field separator?

Post by socratis »

That's clearly a "bug" and needs to be addressed.

However, since you're doing some parsing of the output, may I suggest the following command? It's geared towards machine parsing:
  • VBoxManage showvminfo "<VMname>" --machinereadable
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply