Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Virtual PC

Vista - Can I get info on real, physical hardware ?

Reply
 
Old 12-03-2008   #1 (permalink)
Hotmail_H_


 
 

Can I get info on real, physical hardware ?

Hi,

I wonder if a program installed in an OS running under VPC can obtain
information on the "parent" hardware - that is, the real, physically
existing hardware on which the VPC runs, not the hardware emulated by the
VPC?

Thanks.



My System SpecsSystem Spec
Old 12-03-2008   #2 (permalink)
Robert Comer


 
 

Re: Can I get info on real, physical hardware ?

Other than a VM can tell it's running as a VM, no, it can't see the
real hardware.

--
Bob Comer


On Wed, 3 Dec 2008 23:36:08 +0200, "Hotmail_H_" <harpo_@xxxxxx>
wrote:
Quote:

>Hi,
>
>I wonder if a program installed in an OS running under VPC can obtain
>information on the "parent" hardware - that is, the real, physically
>existing hardware on which the VPC runs, not the hardware emulated by the
>VPC?
>
>Thanks.
>
My System SpecsSystem Spec
Old 12-03-2008   #3 (permalink)
Hotmail_H_


 
 

Re: Can I get info on real, physical hardware ?

Thanks.
But isn't there some hardware component that VM's use directly?
If there is such, maybe some info on it can be obtained?


"Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
news:hbvdj413e3l3eir9pfjfs25kjv0g4amnbl@xxxxxx
Quote:

> Other than a VM can tell it's running as a VM, no, it can't see the
> real hardware.
>
> --
> Bob Comer
>
>
> On Wed, 3 Dec 2008 23:36:08 +0200, "Hotmail_H_" <harpo_@xxxxxx>
> wrote:
>
Quote:

>>Hi,
>>
>>I wonder if a program installed in an OS running under VPC can obtain
>>information on the "parent" hardware - that is, the real, physically
>>existing hardware on which the VPC runs, not the hardware emulated by the
>>VPC?
>>
>>Thanks.
>>

My System SpecsSystem Spec
Old 12-03-2008   #4 (permalink)
Robert Comer


 
 

Re: Can I get info on real, physical hardware ?

>But isn't there some hardware component that VM's use directly?

Just the processor and only part of that. Everything else is
emulated. (processor is just virtualized and things like multi cores
are not accessible.)

--
Bob Comer



On Wed, 3 Dec 2008 23:53:39 +0200, "Hotmail_H_" <harpo_@xxxxxx>
wrote:
Quote:

>Thanks.
>But isn't there some hardware component that VM's use directly?
>If there is such, maybe some info on it can be obtained?
>
>
>"Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
>news:hbvdj413e3l3eir9pfjfs25kjv0g4amnbl@xxxxxx
Quote:

>> Other than a VM can tell it's running as a VM, no, it can't see the
>> real hardware.
>>
>> --
>> Bob Comer
>>
>>
>> On Wed, 3 Dec 2008 23:36:08 +0200, "Hotmail_H_" <harpo_@xxxxxx>
>> wrote:
>>
Quote:

>>>Hi,
>>>
>>>I wonder if a program installed in an OS running under VPC can obtain
>>>information on the "parent" hardware - that is, the real, physically
>>>existing hardware on which the VPC runs, not the hardware emulated by the
>>>VPC?
>>>
>>>Thanks.
>>>
>
My System SpecsSystem Spec
Old 12-03-2008   #5 (permalink)
Mark Rae [MVP]


 
 

Re: Can I get info on real, physical hardware ?

"Hotmail_H_" <harpo_@xxxxxx> wrote in message
news:eQInNIZVJHA.5452@xxxxxx
Quote:
Quote:
Quote:

>>> I wonder if a program installed in an OS running under VPC can obtain
>>> information on the "parent" hardware - that is, the real, physically
>>> existing hardware on which the VPC runs, not the hardware emulated by
>>> the
>>> VPC?
>>
>> Other than a VM can tell it's running as a VM, no, it can't see the
>> real hardware.
>
> But isn't there some hardware component that VM's use directly?
> If there is such, maybe some info on it can be obtained?
As Bob said, virtual machines themselves know that they're virtual machines,
but (generally speaking) the software that you install on them doesn't,
because it has not the slightest need to know this...

Virtual machines are completely separate machines as far as the software
running on them (both OS and apps) is concerned, and just as "real" as
physical machines.

There is no exposed API in Virtual PC per se which can be used in the way
that you seek.

That said, writing such a component would not be a massively difficult task,
providing both host and guest are running Windows - I've already done
something similar...

Do you actually have a business need for this, or were you asking simply out
of interest?

If the former, then please feel free to contact me off-list and "we'll
talk", as the saying goes...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

My System SpecsSystem Spec
Old 12-04-2008   #6 (permalink)
Hotmail_H_


 
 

Re: Can I get info on real, physical hardware ?

Can I assume then that some basic CPU features, like family/model/stepping,
if read from the virtualized OS, will be valid for the real physical CPU as
well?
And I'll get the same values if I read the settings from the parent OS (both
Windows)?
Then I'll read different values if I move the virtual disk to another
physical machine?

Acc. to some tests I did it is so, but can't be sure it'll be so in all the
cases.

Thanks


"Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
news:jr0ej4h0mc2k75io721o0dvcbbqohnovd2@xxxxxx
Quote:
Quote:

> >But isn't there some hardware component that VM's use directly?
>
> Just the processor and only part of that. Everything else is
> emulated. (processor is just virtualized and things like multi cores
> are not accessible.)
>
> --
> Bob Comer
>
>
>
> On Wed, 3 Dec 2008 23:53:39 +0200, "Hotmail_H_" <harpo_@xxxxxx>
> wrote:
>
Quote:

>>Thanks.
>>But isn't there some hardware component that VM's use directly?
>>If there is such, maybe some info on it can be obtained?
>>
>>
>>"Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
>>news:hbvdj413e3l3eir9pfjfs25kjv0g4amnbl@xxxxxx
Quote:

>>> Other than a VM can tell it's running as a VM, no, it can't see the
>>> real hardware.
>>>
>>> --
>>> Bob Comer
>>>
>>>
>>> On Wed, 3 Dec 2008 23:36:08 +0200, "Hotmail_H_" <harpo_@xxxxxx>
>>> wrote:
>>>
>>>>Hi,
>>>>
>>>>I wonder if a program installed in an OS running under VPC can obtain
>>>>information on the "parent" hardware - that is, the real, physically
>>>>existing hardware on which the VPC runs, not the hardware emulated by
>>>>the
>>>>VPC?
>>>>
>>>>Thanks.
>>>>
>>

My System SpecsSystem Spec
Old 12-04-2008   #7 (permalink)
Robert Comer


 
 

Re: Can I get info on real, physical hardware ?

>Can I assume then that some basic CPU features, like family/model/stepping,
Quote:

>if read from the virtualized OS, will be valid for the real physical CPU as
>well?
>And I'll get the same values if I read the settings from the parent OS (both
>Windows)?
>Then I'll read different values if I move the virtual disk to another
>physical machine?
That's beyond what I know, I don't know how to read those values, so I
don't know if it would work.
Quote:

>Acc. to some tests I did it is so, but can't be sure it'll be so in all the
>cases.
Cool, I think it will since it did in your test.

It is possible to hit the same type of CPU in another PC...

--
Bob Comer


On Fri, 5 Dec 2008 01:28:49 +0200, "Hotmail_H_" <harpo_@xxxxxx>
wrote:
Quote:

>Can I assume then that some basic CPU features, like family/model/stepping,
>if read from the virtualized OS, will be valid for the real physical CPU as
>well?
>And I'll get the same values if I read the settings from the parent OS (both
>Windows)?
>Then I'll read different values if I move the virtual disk to another
>physical machine?
>
>Acc. to some tests I did it is so, but can't be sure it'll be so in all the
>cases.
>
>Thanks
>
>
>"Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
>news:jr0ej4h0mc2k75io721o0dvcbbqohnovd2@xxxxxx
Quote:
Quote:

>> >But isn't there some hardware component that VM's use directly?
>>
>> Just the processor and only part of that. Everything else is
>> emulated. (processor is just virtualized and things like multi cores
>> are not accessible.)
>>
>> --
>> Bob Comer
>>
>>
>>
>> On Wed, 3 Dec 2008 23:53:39 +0200, "Hotmail_H_" <harpo_@xxxxxx>
>> wrote:
>>
Quote:

>>>Thanks.
>>>But isn't there some hardware component that VM's use directly?
>>>If there is such, maybe some info on it can be obtained?
>>>
>>>
>>>"Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
>>>news:hbvdj413e3l3eir9pfjfs25kjv0g4amnbl@xxxxxx
>>>> Other than a VM can tell it's running as a VM, no, it can't see the
>>>> real hardware.
>>>>
>>>> --
>>>> Bob Comer
>>>>
>>>>
>>>> On Wed, 3 Dec 2008 23:36:08 +0200, "Hotmail_H_" <harpo_@xxxxxx>
>>>> wrote:
>>>>
>>>>>Hi,
>>>>>
>>>>>I wonder if a program installed in an OS running under VPC can obtain
>>>>>information on the "parent" hardware - that is, the real, physically
>>>>>existing hardware on which the VPC runs, not the hardware emulated by
>>>>>the
>>>>>VPC?
>>>>>
>>>>>Thanks.
>>>>>
>>>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Program to get hardware info? VB Script
installed physical memory vs total physical memory General Discussion
Vista 64 Installed Physical Memory vs Total Physical Memory Vista General
Installed Physical Memory/Total Physical Memory Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46