tags 503007 +patch
thanks
On Tue, Oct 21, 2008 at 04:32:15PM -0200, Nahuel Greco wrote:
> OSError: [Errno 2] No such file or directory:
> '/var/lib/xen/virtinstmnt.mpUlvF'
> morron:~/virtual_machines#
> morron:~/virtual_machines# ls -d /var/lib/xen*
Here's a patch for 0.300.0 that should fix the problem. Can you try it?
Cheers,
-- Guido
diff --git a/virtinst/Guest.py b/virtinst/Guest.py
index c94c186..fc87b70 100644
--- a/virtinst/Guest.py
+++ b/virtinst/Guest.py
@@ -477,7 +477,8 @@ class Installer(object):
def get_scratchdir(self):
if self.type == "xen":
- return "/var/lib/xen"
+ if os.path.exists("/var/lib/xen"):
+ return "/var/lib/xen"
return "/var/tmp"
scratchdir = property(get_scratchdir)