how can i get the ip address of a vm using virtual server com inte, in Virtual Server 2005
ASP Developer Network - Brought to you by Steve Radich and BitShop, Inc. - http://www.bitshop.com

Menu

ASPDeveloper.Net / VirtualServerFAQ.COM

Make sure you go to our home page for:

* Virtual Server 2005 FAQ
* ASP.Net 2.0 Information
* ASP.Net 2.0 Streaming Tutorials
* ASP.Net 2.0 HTML based Tutorials

Made possible by Business Internet Technology Shop (BitShop)



View :  Show duplicate posts
Virtual Server 2005

Recent Virtual Server 2005 posts

internal networking vs MS Loopback
I am new to the linux system
failed new connection to VMRC Server
Black screen when I try to connect using remote client locally / 2
Install Geust OS from ISO
Does Microsoft Virtual Server 2005 or newer support booting off iSCSI or SAN devices
RDP Failure until connect VIA VMRC
mouse is not working properly
VMRCPlus "Access is denied" Error
Virtual Server Com API & VB6
how can i get the ip address of a vm using virtual server com interface?
Virtual Server API: Remote View Thumbnails
How to enable oen virtual machine use two processors
Running Softgrid server components on Virtual Server
restart means reinstall
VMM 2007 NIC enumeration- where from?
Can"t connect to the virtual machine...
moving virtual machine between hosts
VMs crash + disconnect from network after restoring state
Expand a Virtual Disk after creation?
Add Solution

Latest Topics

Table Of Contents


Post Reply |  This is Spam! | Mark as Spam

how can i get the ip address of a vm using virtual server com inte

Source: microsoft.public.virtualserver
Sent: 02/03/2008
From: i wanna be a ramone
Message:

.... now I am at the server side, I try to control the vm using the
C#, I want to get the vm ip, I have already got the vm's name.
how can i get the ip address of a vm using virtual server com
interface?

i can only do this so far...
string name = CmdArgs[paramIndex];
VMVirtualMachine machine =
myVS.FindVirtualMachine(name);
IVMNetworkAdapterCollection adapters =
machine.NetworkAdapters;
foreach (IVMNetworkAdapter ada in adapters)
{
output("ada");
output(ada.EthernetAddress);
output(ada.VirtualMachine.Name);
output("net");
VMVirtualNetwork net = ada.virtualNetwork;
output(net.HostAdapter);
output(net.Name);
output("dhcp");
VMDHCPVirtualNetworkServer dhcp =
net.DHCPVirtualNetworkServer;
output(dhcp.DefaultGatewayAddress);
output(dhcp.DNSServers);


}



Post Reply |  This is Spam! | Mark as Spam

Related Messages


Post Reply |  This is Spam! | Mark as Spam


Table Of Contents



Other groups

 
Virtual PC (Mac)(3592) Virtual PC(12844) Virtual PC (French)(496)
Virtual Server 2005(6245)
Search
in:
Our Sponsors
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
rss Wiki rss Blogs rss Articles rss Image galleries rss File galleries rss Forums rss Maps rss Directories
ASP Developer Network (since 1996) - Brought to you by Steve Radich and BitShop, Inc. - http://www.bitshop.com
Copyright © 1997-2005 by BitShop, Inc. All Rights Reserved.
No content may be reproduced in any form without written permission from BitShop, Inc.
We will be honored to assist with reproduction rights on our material if you contact us.
We also can provide print articles for your magazine, private training seminars at your site, and conference presentations.

Thank you for visiting. Please bookmark our site if you found it useful!
If you wish to make a donation it will help further the development of these free resources: