Re: I have found a way to get the vm's ip :)
i am a ramone wrote:
> ok, there is no way to get the ip of vm using COM interface directly,
> so I use another way...
> using "ping computerName" in the cmd.exe to get the vm's ip, hehe
> so at first u must know the vm's computerName
ComputerName is a property of the IVMGuestOS object in the virtual
machine object available via the COM interface.
Also you can read any registry key in the GuestOS under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters
If you configure your VMs put the data you want in this registry path
then you can retrieve them via the COM interface with
IVMGuestOS->GetParameter("keyname")
Yes this is specific to your VMs but it works.
|