[TriLUG] Xen: Identifying Host from Guest

Andrew Ball anball at gmail.com
Wed May 9 01:18:21 EDT 2007


I don't understand.  Are you talking about something other than the default
Xen networking,
which uses bridging?

Peace.
Andrew


On 5/8/07, Marty Ferguson <martyferg at nc.rr.com> wrote:
>
> sounds like rsh's (ssh) and bla bla bla "cut"
>
> OH, now I getit.
> Ken, (you brutalized me over this shjt, you know)
> Have the guest do an ifconfig () locally, and ed (1) just
> the IP address. Since it's a virtual, it will have a :nnn suffix
> on the IP.  Strip off the :nnn to get the root IP of the host OS.
> If you actually need the (v)host's hostname, then issue
> an nslookup (8) and ed (1) it from there.
>
> There are probably other ways to pull this off, but this is
> the one that popped ito my head  I used to run VMware on
> a dual-celery tiger board, and I learned a buttttload about cajoling
> these things.  Unfortunately, I shook the thing to nano-bits in a
> UHAUL comming back to the triangle from Sacramento.
> .
> Of course, your mileage may vary.   Am I making this to simplistic?
>
> M
>
>
> Marc wrote:
>
> > I can't find anything either.  I wonder if anyone has a script that
> > could go
> > on the guest that would traverse the network and gather uname-a and
> > related
> > information?   I  could write something extremely simple, but I am not
> > sure
> > how to  make it  gather data from other hosts.
> >
> >
> >
> > Marc
> >
> >
> >
> > On 5/2/07, Ken Mink <ken.mink at gmail.com> wrote:
> >
> >>
> >> Hi Folks,
> >>
> >>   We've got a number of machines using Xen to host other 'machines'.
> >> The guests sometimes get moved from one host to another. Is there a
> >> way to identify the host from inside one of the guests? I've poked
> >> around in proc and can't seem to find anything.
> >>
> >> TIA,
> >> Ken
> >>
> >> --
> >> ---------------------------------------------
> >> "They that can give up essential liberty to obtain a little temporary
> >> safety deserve neither liberty nor safety."--Benjamin Franklin
> >> " 'Necessity' is the plea for every infringement of human liberty; it
> >> is the argument of tyrants; it is the creed of slaves."--William Pitt
> >> --
> >> TriLUG mailing list        :
> >> http://www.trilug.org/mailman/listinfo/trilug
> >> TriLUG Organizational FAQ  : http://trilug.org/faq/
> >> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> >>
>
> --
>        The global oil production peak
>        is not a cult theory, it's a fact.
>        The earth does not have a creamy
>        nougat center of petroleum.  -- James Howard Kunstler
>
> Triangle EV of Chapel Hill
> An Exclusive Hybrid Electric Bike Dealer,
> Representing Currie Technologies IZIP LEV's
> (Light-Electric Vehicles)
>
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>



-- 
=======================
Andrew D. Ball
勃安足


More information about the TriLUG mailing list