aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/python/xen/xend/image.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py
index 772b8044cd..9c1eac878e 100644
--- a/tools/python/xen/xend/image.py
+++ b/tools/python/xen/xend/image.py
@@ -232,7 +232,11 @@ class ImageHandler:
# If we use a device model, the pipes for communication between
# blktapctrl and ioemu must be present before the devices are
# created (blktapctrl must access them for new block devices)
- os.makedirs('/var/run/tap', 0755)
+
+ try:
+ os.makedirs('/var/run/tap', 0755)
+ except:
+ pass
try:
os.mkfifo('/var/run/tap/qemu-read-%d' % domid, 0600)