
答案1
嗯,我自己已經想出來了。答案是debugvm statistics
。
它輸出 xml,但為了簡單起見,我將使用 grep:
MinGW$ VBoxManage debugvm $MY_VM statistics | grep name=\"/Devices.\*Bytes\"
<Counter c="1184613888" unit="bytes" vis="used" name="/Devices/AHCI0/Port0/ReadBytes"/>
<Counter c="331036672" unit="bytes" vis="used" name="/Devices/AHCI0/Port0/WrittenBytes"/>
<Counter c="184550400" unit="bytes" vis="used" name="/Devices/AHCI0/Port1/ReadBytes"/>
<Counter c="396939264" unit="bytes" vis="used" name="/Devices/AHCI0/Port1/WrittenBytes"/>
<Counter c="1079296" unit="bytes" vis="used" name="/Devices/AHCI0/Port2/ReadBytes"/>
<Counter c="331808713" unit="bytes" name="/Devices/E1k0/ReceiveBytes"/>
<Counter c="19335791" unit="bytes" name="/Devices/E1k0/TransmitBytes"/>
AHCI
名稱中帶有 SATA 磁碟的條目,E1k0
顯然是網路適配器