[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Best way to get IP addresses from VMs without logging in to them?



On Wed, 2014-06-11 at 19:44 +0100, Andrew Cooper wrote:
> On 11/06/14 19:36, Russ Pavlicek wrote:
> >>> There isn't any way to execute a command over the Xen console
> >>> interface is there?
> >> No - Xen has no knowledge of networking.  I assume you actually mean dom0.
> > My error in not being specific.  I mean using a script over the "xl
> > console" interface, kind of like the ssh syntax:
> >
> > ssh user@vm "commands..."
> >
> > maybe:
> >
> > xl console domno "commands..."
> >
> > or an expect script which could feed the "xl console" interface.
> >
> > Russ
> 
> xl console <domain> connects your current tty up to the vm console.  It
> is entirely guest controlled, and likely requires a login and password
> as a first step.

It's entirely guest dependent whether there is anything at all running
on the associated tty. If you were using e.g. pvfb you may not end up
with such a thing (some installers key off of what they themselves run
on when deciding whether to create such things).

Also Windows doesn't listen to the serial at all, at least in normal
configurations. YMMV with other OSes too.

If you are doing an automated install then I suppose you could arrange
for some agent or daemon to run, or for the guest to publish its name+IP
somewhere.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.