Re: WMI and Virtual PC

From: [MS] Scott McNairy (scotmc_at_online.microsoft.com)
Date: 03/04/04


Date: Thu, 4 Mar 2004 10:41:03 -0800

Since WMI came before Virtual PC, WMI team didn't have any support for
Virtual PC hosts. Also, since WMI is a machine centric technology, the
Virtual PC is just another computer on the network and the host PC is
unaware of it for the most part at this point in time at least.

If a provider was to be written that supported these cases, it would almost
certainly be the responsibility of the Virtual PC team. You might ask those
folks what they support for discovery of Virtual PC Hosts.

-- 
[MS] Scott McNairy
WMI Test Engineer
This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Jack Pea***" <pea***@simconv.com> wrote in message
news:O80gIFZAEHA.2480@TK2MSFTNGP12.phx.gbl...
> I tried some WMI queries on a virtual XP machine running the latest
version
> of MS Virtual PC.  It works, but gives some surprising results.  The
> motherboard shows it is a MS Virtual Machine, so it's easy to find out if
> the target is a VM (virtual machine).  FYI for anyone who might want to
> account for a VM: Disk and CD show as virtual devices, the display shows
the
> actual hardware but the virtual resolution (as expected).  Memory slots
show
> as four banks, DIMM0 and three DIMM1, each 16MB in size, even though the
VM
> is allocated 192MB of RAM.  The total memory shows correctly, but there is
> no information on cache size.  Network hardware queries show actual
hardware
> and real gateway, IP address, etc., even routing tables (the VM is running
> XP SP1).
>
> I'm not sure how one could determine the host machine from a WMI query,
what
> class to use.  Does anyone know if MS has added some WMI support to
Virtual
> PC itself as yet?  If not it would be nice if there was a class on the
host
> to show VMs, and maybe something on the VM to link back to the host,
either
> a name or IP address.
>
> I haven't tried network sharing on the VM yet so not sure how it will
affect
> Network WMI classes.
>    Jack Pea***
>
>