diff --git a/qubes/storage/xen.py b/qubes/storage/xen.py index 271e000b..57c0ff66 100644 --- a/qubes/storage/xen.py +++ b/qubes/storage/xen.py @@ -72,7 +72,8 @@ class XenStorage(qubes.storage.Storage): @property def root_img(self): '''Path to the root image''' - return self.vm.template.storage.root_img if hasattr(self.vm, 'template') \ + return self.vm.template.storage.root_img \ + if hasattr(self.vm, 'template') and self.vm.template \ else self.abspath(qubes.config.vm_files['root_img'])