how can i get the ip address of a vm using virtual server com interface?, 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

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?
Virtual Server 2005 configuration with RRAS
"Virtual Server Administration Website" "Page Cannot be displayed"
Virtual Server on Vista - error 404.2
Different "Virtual Server encountered an unexpected error, 0x00000
Problem with network shares on host server
Administration Website Name
Go Back to go forward
Solaris 10?
Windows 2008 HyperV
Error: <name> could not initialize the emulated Ethernet controlle
VS 2005 R2 SP1 - Win2003 guest does not start with service
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 interface?

Source: microsoft.public.virtualserver
Sent: 01/30/2008
From: i am a ramone <(email address - cut out)>
Message:

hi all
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: