mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xm: Improve xm error if booted native
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
This commit is contained in:
1 parent
2450e3575f
commit
b526733e2f
1 file changed
+5
-1
@@ -59,7 +59,11 @@ from xen.util.acmpolicy import ACM_LABEL_UNLABELED_DISPLAY
|
||||
import XenAPI
|
||||
|
||||
import xen.lowlevel.xc
|
||||
xc = xen.lowlevel.xc.xc()
|
||||
try:
|
||||
xc = xen.lowlevel.xc.xc()
|
||||
except Exception, ex:
|
||||
print >>sys.stderr, ("Is xen kernel running?")
|
||||
sys.exit(1)
|
||||
|
||||
import inspect
|
||||
from xen.xend import XendOptions
|
||||
|
||||