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

[Xen-devel] run a script before creating domain

  • To: <Xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
  • Date: Fri, 13 Jan 2006 11:57:48 +1100
  • Delivery-date: Fri, 13 Jan 2006 01:04:29 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcYX3F9gohKwLpViSx+5hnSdm+unLQ==
  • Thread-topic: run a script before creating domain

I seem to be living in constant fear of starting the same domain on more
than one machine at once. As a way of preventing this, I'd like to be
able to have a script execute as part of an 'xm create' that runs before
doing any of the actual domain creation.

At the moment, all I'd do is do a 'ping' to see if the domain is up and
running. Not foolproof but would save me >99% of the time. In a cluster
environment there should be a way to determine remotely if a domain is

Ideally, there would be a 'dom_check_exists' script automatically run
(if it exists) which could be implemented in a cluster environment, but
for now, where is a good place to hook into this?



Xen-devel mailing list



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