Afficher un message
Vieux 21/02/2008, 13h16   #3
Richard Cardona
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.
  Réponse avec citation
 
Page generated in 0,04481 seconds with 9 queries