Jump to content

[Virtual Server] Detecting the Host Machine name.


Fblade1987
 Share

Recommended Posts

Hey guys,

At working I have a Virtual Server image Mapped to a Portable HD which I take around diffrent machines and install a copy onto that host machine, however with doing this I alway have to start the Image up on each machine and configure the Ip and computer name of each one so I do not get any conflicts, which can be very impractical for me.

What I'm asking is, is there anyway of getting the virtual pc to easily and quickly find the machine name that it's hosted on? as then i could set up a script that will automatically assign the right IP and Computer Name.

I know I could achive this by using loopbacks but the setting up of a loopback, I mayt as well just configure the IP and Name Manually

thanks for the time

Matt

Link to comment
Share on other sites

  • 3 weeks later...

Only way I can think of doing that is getting the Virtual Machine and Host Machine to create a network between them so that they can talk, you can get the Host machines name from that.

The clean way would be if there was an API call that could be made, but I doubt that exists for a number of reasons and I'm not going to do that research.

Another way of doing would be if you set up a provisioning script that ran on the host machine which altered the FS of the virtual machine before it was switched on, writing the configuration into the system. Thats the only safe, clean and relatively simple way of doing it. I don't know whether any of the hypervisors support running a script on the host machine before turning the virtual one on or not.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...