From 478b90e7200695db77bf3410321e91542cfe35d8 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Mon, 5 Mar 2012 17:59:23 +0100 Subject: [PATCH] dom0/qvm-sync-clock: ignore VMs not supporting remote exec (#467) Eg HVM --- dom0/qvm-tools/qvm-sync-clock | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dom0/qvm-tools/qvm-sync-clock b/dom0/qvm-tools/qvm-sync-clock index 911bf68a..30978af4 100755 --- a/dom0/qvm-tools/qvm-sync-clock +++ b/dom0/qvm-tools/qvm-sync-clock @@ -89,7 +89,10 @@ def main(): if vm.is_running() and vm.qid != 0 and vm.qid != clock_vm.qid: if verbose: print >> sys.stderr, '--> Syncing \'%s\' clock.' % vm.name - vm.run('root:date -u -s "%s"' % date_out, verbose=verbose) + try: + vm.run('root:date -u -s "%s"' % date_out, verbose=verbose) + except NotImplementedError: + pass main()