Skip to contentSkip to conversation

xl with xenstore stubdom

DISCUSSION [email protected] 4 participants 5 messages Apr 22, 2013

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 5 lines · On 22/04/13 13:05, [email protected] 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

#2 lore raw
Quoted 9 lines · Andrew Cooper
Quoted 5 lines · On 22/04/13 13:05, [email protected] 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.

Quoted 3 lines

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.

#3 lore raw
Quoted 6 lines · Ian Campbell
Quoted 5 lines · Andrew Cooper
Quoted 4 lines · On 22/04/13 13:05, [email protected] 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?

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

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.

Quoted 3 lines

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.

Quoted 8 lines
Quoted 3 lines

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).

Signature · 2 lines
Daniel De Graaf
National Security Agency
#4 lore raw
Quoted 12 lines · Daniel De Graaf
Quoted 11 lines · Ian Campbell
Quoted 9 lines · Andrew Cooper
Quoted 5 lines · On 22/04/13 13:05, [email protected] 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.

Quoted 6 lines
Quoted 2 lines

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 ;-)

Quoted 7 lines
Quoted 3 lines

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" ?

[...]

Quoted 2 lines

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.