Who's my host?
-
mastercho
- Posts: 4
- Joined: 30. Jul 2010, 20:57
- Primary OS: Mac OS X Leopard
- VBox Version: OSE other
- Guest OSses: CentOS
Who's my host?
I'm using VBox 3.2.6 on an OSX host with CentOS guests.
I want to make an appliance to install on developers' workstations and I want it to register with DDNS differently for each developer.
The hosts and guests all use DHCP to acquire their addresses.
I presumed I would use the developer's workstation hostname to construct the appropriate hostname to update in DDNS for the guest.
Can a Linux guest find the hostname of its host?
Is there some other solution I should consider?
Thank you
I want to make an appliance to install on developers' workstations and I want it to register with DDNS differently for each developer.
The hosts and guests all use DHCP to acquire their addresses.
I presumed I would use the developer's workstation hostname to construct the appropriate hostname to update in DDNS for the guest.
Can a Linux guest find the hostname of its host?
Is there some other solution I should consider?
Thank you
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Who's my host?
As long as hostnames are registered with the DNS server, then it should be discoverable by the Linux Guest systems.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
mastercho
- Posts: 4
- Joined: 30. Jul 2010, 20:57
- Primary OS: Mac OS X Leopard
- VBox Version: OSE other
- Guest OSses: CentOS
Re: Who's my host?
I don't understand.
Here's the scenario:
I have two hosts - HostA, HostB
I deploy the same appliance to each of them, and they have other guests.
I end up with - HostA (ApplA, ...), HostB (ApplA, ...)
Is there a way the appliance can detect its host's hostname at import, or run, time?
Here's the scenario:
I have two hosts - HostA, HostB
I deploy the same appliance to each of them, and they have other guests.
I end up with - HostA (ApplA, ...), HostB (ApplA, ...)
Is there a way the appliance can detect its host's hostname at import, or run, time?
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Who's my host?
Sorry, I don't understand you this time. Are you saying that you want to deploy the same VM to multiple systems and when the deployment is done, the OS inside the VM will change it's hostname to a unique one? If so, that's up to the OS itself to do, VB only provides a way to run these things. It can't alter files or settings inside the OS itself.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
mastercho
- Posts: 4
- Joined: 30. Jul 2010, 20:57
- Primary OS: Mac OS X Leopard
- VBox Version: OSE other
- Guest OSses: CentOS
Re: Who's my host?
I'm not asking VB to do the name setting/changing. You're right, I'll have the OS do that.
I just want to know if I can get the hostname of my host from within the guest.
I just want to know if I can get the hostname of my host from within the guest.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Who's my host?
No idea, maybe you can if you use NAT and query a whoareyou at 10.0.2.2.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
mastercho
- Posts: 4
- Joined: 30. Jul 2010, 20:57
- Primary OS: Mac OS X Leopard
- VBox Version: OSE other
- Guest OSses: CentOS
Re: Who's my host?
Thank you for responding.
-
maxsmith
- Posts: 1
- Joined: 6. Aug 2010, 08:15
- Primary OS: MS Windows XP
- VBox Version: OSE Debian
- Guest OSses: xp
Re: Who's my host?
I know the IP of my shared host, and I'm wondering who my neighbours might be so that I can see what risks I'm taking being on a shared host. Any easy way to find out my neighbours from the IP?
__________________________________________________________________________________________________________
Want to get-on Google's first page and loads of traffic to your website? Hire a SEO Specialist from Ocean Groups seo pecialist
__________________________________________________________________________________________________________
Want to get-on Google's first page and loads of traffic to your website? Hire a SEO Specialist from Ocean Groups seo pecialist
-
TerryE
- Volunteer
- Posts: 3572
- Joined: 28. May 2008, 08:40
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
- Contact:
Re: Who's my host?
If you want to define host-specific properties for a guest then there is this wonderful standard feature called guestproperty which allows you to do this.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.
-
jsilence
- Posts: 2
- Joined: 21. Jun 2010, 11:09
- Primary OS: Debian Lenny
- VBox Version: OSE Debian
- Guest OSses: Debian Lenny / Ubuntu / WindowsXP
Re: Who's my host?
You can define a shared folder for the VM and place a simple text file there that is different on both hosts. Then use that textfile to detect which host you are on fom within the guest.
-jsl
-jsl
-
TerryE
- Volunteer
- Posts: 3572
- Joined: 28. May 2008, 08:40
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
- Contact:
Re: Who's my host?
If you have access to shared folders then you have guest additions loaded, and if you have guest additions loaded then you can always do on the hostjsilence wrote:You can define a shared folder for the VM and place a simple text file there that is different on both hosts. Then use that textfile to detect which host you are on from within the guest.
- VBoxManage guestproperty set <vmname> /VirtualBox/HostInfo/Hostname <whateverthe name is>
- hostname=$(sudo VBoxControl -nologo guestproperty get /VirtualBox/HostInfo/Hostname | cut -b 8- )
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.