Can a guest find out its host operating system?

This is for discussing general topics about how to use VirtualBox.
Post Reply
Emile
Posts: 12
Joined: 8. Nov 2013, 23:33

Can a guest find out its host operating system?

Post by Emile »

Is there a way for the guest operating system to find out what operating system is running on the VM host?

Nmap os fingerprinting perhaps? Or is there something less fancy?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Can a guest find out its host operating system?

Post by socratis »

Emile wrote:Is there a way for the guest operating system to find out what operating system is running on the VM host?
Hmmm... Quite an interesting question. My 0.02€ says that it should not, otherwise what would be the role of the abstraction layer? You can definitely identify if you are within a VM, just not sure if (let's say, in my case) you're running under OSX 10.6.8 or 10.7.5. Or is this too much info and simply a Win32 vs Win64 would do? If I may ask so, why???
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can a guest find out its host operating system?

Post by noteirak »

AFAIK this is not possible, as socratis said, being the whole point of the abstraction.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Emile
Posts: 12
Joined: 8. Nov 2013, 23:33

Re: Can a guest find out its host operating system?

Post by Emile »

socratis wrote:You can definitely identify if you are within a VM,
Yes, for example with virt-what.
socratis wrote:Or is this too much info and simply a Win32 vs Win64 would do?
A simple Windows or Mac or Linux etc. would do.
socratis wrote:If I may ask so, why???
For the software project we're working on (Whonix), we believe some host operating systems aren't the right tool for several reasons. Detecting that inside the VM and information about that would be a nice improvement.
noteirak wrote:AFAIK this is not possible, as socratis said, being the whole point of the abstraction.
I was afraid there is no such way. Thank you for confirmation.
Post Reply