From: Stefan de Konink Subject: XenAPI running 'local' commands on Dom0 Date: Sat, 17 Nov 2007 01:47:16 +0100 Message-ID: <473E3A14.6000801@xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello, Currently I'm implementing a wrapper around our Xen cluster and some problems we are facing is Live-migration. Our discs are currently provisioned by an OpenSolaris iscsi-target, and therefore should be initiated before a migration is started. I couldn't find a way in the 'standard' xen configuration to start a script before restore/create, thus I'm trying to create one. I would like to run a local command on the Dom0 host via the XenAPI, is there already such facilaty, and what is it named? My suggestion would be to put a "exectute_command" in the 'Host' class, and put the events: "before_create_execute, before_restore_execute, after_migrate_execute, after_shutdown_execute" in the configuration file. Yours Sincerely, Stefan de Konink -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHPjoTYH1+F2Rqwn0RCiJoAJ4iz6KqtbvLiIPLxZMDFHJWiWf6qACfXU4r D07aFofzU8Le/TzwiRB1x7E= =28dw -----END PGP SIGNATURE-----