VM Metrics... does not work at all ???

Discussions related to using VirtualBox on Linux hosts.
Post Reply
mwp
Posts: 12
Joined: 10. Dec 2015, 04:57

VM Metrics... does not work at all ???

Post by mwp »

Hi all.

Host and client are both Linux Debian x64.
Client has extensions installed.
vbox version is 5.2.30

On the host:
vboxmanage metrics enable testvm Net/Rate/Tx
vboxmanage metrics setup --period 1 --samples 1 testvm Net/Rate/Tx
vboxmanage metrics query testvm Net/Rate/Tx

The reported values column is always completely blank??

Anyone know why?

Thanks in advance!
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VM Metrics... does not work at all ???

Post by mpack »

mwp wrote: Anyone know why?
How could we? You don't provide a log.

Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VM Metrics... does not work at all ???

Post by fth0 »

AFAICS, the VBoxManage metrics setup subcommand does not accept submetrics as parameters, so you have to use Net/Rate with setup. For the other subcommands you can then try out yourself what parameters do work. 8.33. VBoxManage metrics is not very clear about these subtleties; I had to read between the lines a bit to find out.

PS: Although generally requested, a VBox.log file probably won't help in this case. My own experiments were not reflected there.
mwp
Posts: 12
Joined: 10. Dec 2015, 04:57

Re: VM Metrics... does not work at all ???

Post by mwp »

mpack wrote: How could we?
Because it seems to be a very common problem.
There are lots of google matches of people asking the same question, but im yet to see an answer of how anyone resolved it.

Im also not 100% sure im using those commands correctly.
You don't provide a log.
Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here.
UI? :?
Console only here.

I removed old logs, started the vm, tried the above metric commands, stopped the vm, attached the log.
There doesn't seem to be anything odd in there?
Attachments
VBox.log
(111.64 KiB) Downloaded 5 times
mwp
Posts: 12
Joined: 10. Dec 2015, 04:57

Re: VM Metrics... does not work at all ???

Post by mwp »

fth0 wrote:AFAICS, the VBoxManage metrics setup subcommand does not accept submetrics as parameters, so you have to use Net/Rate with setup. For the other subcommands you can then try out yourself what parameters do work. 8.33. VBoxManage metrics is not very clear about these subtleties; I had to read between the lines a bit to find out.
That was it, thankyou!
I wonder why vboxmanage does not report an error if its not correct.
PS: Although generally requested, a VBox.log file probably won't help in this case. My own experiments were not reflected there.
It's a generic admin reply i guess :(
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VM Metrics... does not work at all ???

Post by fth0 »

mwp wrote:I wonder why vboxmanage does not report an error if its not correct.
Because nobody has implemented it. ;) Patches are welcome.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VM Metrics... does not work at all ???

Post by mpack »

I will also note that you have a version mismatch in the extension pack. This is not allowed.
VirtualBox VM 5.2.30 r130521 linux.amd64 (May 13 2019 13:52:16) release log
...
00:00:00.197002 Oracle VM VirtualBox Extension Pack (Version: 5.1.22 r115126; VRDE Module: VBoxVRDP)
And the Guest Additions are a different version as well (5.2.10). This is allowed, but it isn't necessarily a good idea.
Post Reply