diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index 4a9d9fc740..ee57bba5da 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -311,7 +311,8 @@ class VmxImageHandler(ImageHandler): "-m", "%s" % (self.vm.getMemoryTarget() / 1024)]) args = args + self.dmargs env = dict(os.environ) - env['DISPLAY'] = self.display + if self.display: + env['DISPLAY'] = self.display log.info("spawning device models: %s %s", self.device_model, args) self.pid = os.spawnve(os.P_NOWAIT, self.device_model, args, env) log.info("device model pid: %d", self.pid)