0

I have a Virtualbox image which I will run on several different machines. The guest OS, when booting, would need to know on which machine it is running (e.g., by retrieving the public IP or the hostname of the host machine). Sadly, Virtualbox's networking doesn't expose this information.

Is there a simple way to pass information from the Virtualbox host to the Virtualbox guest system? (Here, I want to pass the host IP address or hostname.) I could imagine configuring a dedicated service, e.g., an HTTP server (either on the guest or on the host), but this seems overkill; or I could imagine workarounds like exposing a fake USB device, etc., but is there a more convenient way?

1 Answer 1

0

The right way to do this, assuming the guest OS has Virtualbox guest additions, is to use "guest properties": see here and here in the Virtualbox manual, and this question for an example.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .