[vbox-dev] How-to get network statistics and guest IP addresses from python API ?

Klaus Espenlaub klaus.espenlaub at oracle.com
Thu May 19 18:25:11 GMT 2011


On 19.05.2011 12:26, Alexey Eromenko wrote:
> One more Q: How-to match between multiple vNICs and multiple IP addresses ?

By MAC address... we didn't put it there by accident.

Different guest OSes have different (and generally unspecified) 
strategies for enumerating network cards, so it's impossible to have the 
guest additions report the information in the order the host expects.

Klaus

>
> vNIC1:
> 10.0.1.1/24
>
> vNIC2:
> 20.0.1.1/24
> 20.0.2.1/24
> 20.0.3.1/24
>
> vNIC3:
> 30.0.1.1/24
> 30.0.2.1/24
>
> $ VBoxManage guestproperty enumerate "VM 01"
> shows them all... without matching to vNICs.
>
> I get:
> Name: /VirtualBox/GuestInfo/Net/1/V4/IP, value: 10.0.3.1, timestamp:
> 1305796398528785000, flags:
> ...Net/2/V4/IP
> ...Net/3/V4/IP
> ...
>
> How do I know which IP belongs to which vNIC ?
>
> Thanks in advance,






More information about the vbox-dev mailing list