All of lore.kernel.org
 help / color / mirror / Atom feed
* xl with xenstore stubdom
@ 2013-04-22 12:05 steve_1991
  2013-04-22 12:09 ` Andrew Cooper
  0 siblings, 1 reply; 5+ messages in thread
From: steve_1991 @ 2013-04-22 12:05 UTC (permalink / raw)
  To: xen-devel

Hi,

I am running xenstore stubdom on my system. When I try to use xl, it gives me error that xenstore daemon is not running and couldn't stat /var/run/xenstored.pid. I want to ask does xl work with xenstore stubdom and if not then which toolstack to use for VM management?

S

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xl with xenstore stubdom
  2013-04-22 12:05 xl with xenstore stubdom steve_1991
@ 2013-04-22 12:09 ` Andrew Cooper
  2013-04-22 12:19   ` Ian Campbell
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cooper @ 2013-04-22 12:09 UTC (permalink / raw)
  To: steve_1991@hushmail.com; +Cc: xen-devel

On 22/04/13 13:05, steve_1991@hushmail.com wrote:
> Hi,
>
> I am running xenstore stubdom on my system. When I try to use xl, it gives me error that xenstore daemon is not running and couldn't stat /var/run/xenstored.pid. I want to ask does xl work with xenstore stubdom and if not then which toolstack to use for VM management?
>
> S

xl unconditionally looks for /var/run/xenstored.pid, even when it
doesn't need it.

Simply touching the file is enough to fool xl into working correctly for
actions not requiring xenstored, but I have no idea how well xl would
cope with xenstored in a different domain.

~Andrew

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xl with xenstore stubdom
  2013-04-22 12:09 ` Andrew Cooper
@ 2013-04-22 12:19   ` Ian Campbell
  2013-04-22 15:17     ` Daniel De Graaf
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Campbell @ 2013-04-22 12:19 UTC (permalink / raw)
  To: Andrew Cooper; +Cc: xen-devel, steve_1991@hushmail.com

On Mon, 2013-04-22 at 13:09 +0100, Andrew Cooper wrote:
> On 22/04/13 13:05, steve_1991@hushmail.com wrote:
> > Hi,
> >
> > I am running xenstore stubdom on my system. When I try to use xl, it gives me error that xenstore daemon is not running and couldn't stat /var/run/xenstored.pid. I want to ask does xl work with xenstore stubdom and if not then which toolstack to use for VM management?
> >
> > S
> 
> xl unconditionally looks for /var/run/xenstored.pid, even when it
> doesn't need it.

Wasn't there a patch at one point to make it look
for /tool/xenstored/domid as an alternative? Can't find it now though...

There was also talk of init-xenstore-domain daemonising and serving as a
log message pump to syslog for the stubdom, in which case its pid would
be somewhat appropriate to store. I think that was only talk though.

> Simply touching the file is enough to fool xl into working correctly for
> actions not requiring xenstored, but I have no idea how well xl would
> cope with xenstored in a different domain.

It should be OK, I'd be interested in hearing if it isn't once this
issue is fixed.

Ian.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xl with xenstore stubdom
  2013-04-22 12:19   ` Ian Campbell
@ 2013-04-22 15:17     ` Daniel De Graaf
  2013-04-22 15:26       ` Ian Campbell
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel De Graaf @ 2013-04-22 15:17 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Andrew Cooper, steve_1991@hushmail.com, xen-devel

On 04/22/2013 08:19 AM, Ian Campbell wrote:
> On Mon, 2013-04-22 at 13:09 +0100, Andrew Cooper wrote:
>> On 22/04/13 13:05, steve_1991@hushmail.com wrote:
>>> Hi,
>>>
>>> I am running xenstore stubdom on my system. When I try to use xl, it gives me error that xenstore daemon is not running and couldn't stat /var/run/xenstored.pid. I want to ask does xl work with xenstore stubdom and if not then which toolstack to use for VM management?
>>>
>>> S
>>
>> xl unconditionally looks for /var/run/xenstored.pid, even when it
>> doesn't need it.
>
> Wasn't there a patch at one point to make it look
> for /tool/xenstored/domid as an alternative? Can't find it now though...

The domain creation code looks there, but it's rather difficult to
look in xenstore for a path if xenstore isn't running, so that can't
be used to figure out the stubdom is being used.

> There was also talk of init-xenstore-domain daemonising and serving as a
> log message pump to syslog for the stubdom, in which case its pid would
> be somewhat appropriate to store. I think that was only talk though.

Right, init-xenstore-domain just boots the domain and exits. I guess
touching the /var/run/xenstored.pid file might be useful as an addition
to that tool.

>> Simply touching the file is enough to fool xl into working correctly for
>> actions not requiring xenstored, but I have no idea how well xl would
>> cope with xenstored in a different domain.
>
> It should be OK, I'd be interested in hearing if it isn't once this
> issue is fixed.
>
> Ian.

It seems to work with no issues on my test systems (whose startup scripts
include a "touch /var/run/xenstored.pid" to work around this).

-- 
Daniel De Graaf
National Security Agency

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xl with xenstore stubdom
  2013-04-22 15:17     ` Daniel De Graaf
@ 2013-04-22 15:26       ` Ian Campbell
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Campbell @ 2013-04-22 15:26 UTC (permalink / raw)
  To: Daniel De Graaf; +Cc: Andrew Cooper, steve_1991@hushmail.com, xen-devel

On Mon, 2013-04-22 at 16:17 +0100, Daniel De Graaf wrote:
> On 04/22/2013 08:19 AM, Ian Campbell wrote:
> > On Mon, 2013-04-22 at 13:09 +0100, Andrew Cooper wrote:
> >> On 22/04/13 13:05, steve_1991@hushmail.com wrote:
> >>> Hi,
> >>>
> >>> I am running xenstore stubdom on my system. When I try to use xl, it gives me error that xenstore daemon is not running and couldn't stat /var/run/xenstored.pid. I want to ask does xl work with xenstore stubdom and if not then which toolstack to use for VM management?
> >>>
> >>> S
> >>
> >> xl unconditionally looks for /var/run/xenstored.pid, even when it
> >> doesn't need it.
> >
> > Wasn't there a patch at one point to make it look
> > for /tool/xenstored/domid as an alternative? Can't find it now though...
> 
> The domain creation code looks there, but it's rather difficult to
> look in xenstore for a path if xenstore isn't running, so that can't
> be used to figure out the stubdom is being used.

Duh, right ;-)

> > There was also talk of init-xenstore-domain daemonising and serving as a
> > log message pump to syslog for the stubdom, in which case its pid would
> > be somewhat appropriate to store. I think that was only talk though.
> 
> Right, init-xenstore-domain just boots the domain and exits. I guess
> touching the /var/run/xenstored.pid file might be useful as an addition
> to that tool.

Yes, perhaps writing "domid:%d" ?

[...]
> It seems to work with no issues on my test systems (whose startup scripts
> include a "touch /var/run/xenstored.pid" to work around this).

I thought that if it worked for anyone it would be you, now I know
how :-)

Ian.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-22 15:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-22 12:05 xl with xenstore stubdom steve_1991
2013-04-22 12:09 ` Andrew Cooper
2013-04-22 12:19   ` Ian Campbell
2013-04-22 15:17     ` Daniel De Graaf
2013-04-22 15:26       ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.