Can a guest find out its host operating system?

This is for discussing general topics about how to use VirtualBox.

Can a guest find out its host operating system?

Postby Emile » 13. Nov 2013, 19:29

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?
Emile
 
Posts: 12
Joined: 8. Nov 2013, 23:33

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

Postby socratis » 13. Nov 2013, 20:51

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.
socratis
Site Moderator
 
Posts: 27244
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

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

Postby noteirak » 13. Nov 2013, 23:05

AFAIK this is not possible, as socratis said, being the whole point of the abstraction.
Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5198
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

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

Postby Emile » 14. Nov 2013, 01:17

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.
Emile
 
Posts: 12
Joined: 8. Nov 2013, 23:33


Return to Using VirtualBox

Who is online

Users browsing this forum: Majestic-12 [Bot] and 10 guests