Browse code

XenAPI: Fix bug with Xen ext4-using guests

Ubuntu saucy is using ext4, which means it hits a barrier
bug with certain versions of Xen, leading to a read only
filesystem.

This is bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/824089

Change-Id: I9a72b203d473dc555324d44ad7c240c80dccda15

Bob Ball authored on 2013/12/24 02:23:47
Showing 1 changed files
... ...
@@ -79,3 +79,7 @@ bash /opt/stack/prepare_guest.sh \\
79 79
     "$GUEST_PASSWORD" "$XS_TOOLS_PATH" "$STACK_USER" \\
80 80
     > /opt/stack/prepare_guest.log 2>&1
81 81
 EOF
82
+
83
+# Need to set barrier=0 to avoid a Xen bug
84
+# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/824089
85
+sed -i -e 's/errors=/barrier=0,errors=/' $STAGING_DIR/etc/fstab