From 60fcfb5c91063bb71252b7077a363092d8bebe2b Mon Sep 17 00:00:00 2001 From: Bob Ball Date: Mon, 23 Dec 2013 17:23:47 +0000 Subject: [PATCH] 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 --- tools/xen/prepare_guest_template.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/xen/prepare_guest_template.sh b/tools/xen/prepare_guest_template.sh index 6ea6f6321d..546ac99cd9 100755 --- a/tools/xen/prepare_guest_template.sh +++ b/tools/xen/prepare_guest_template.sh @@ -79,3 +79,7 @@ bash /opt/stack/prepare_guest.sh \\ "$GUEST_PASSWORD" "$XS_TOOLS_PATH" "$STACK_USER" \\ > /opt/stack/prepare_guest.log 2>&1 EOF + +# Need to set barrier=0 to avoid a Xen bug +# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/824089 +sed -i -e 's/errors=/barrier=0,errors=/' $STAGING_DIR/etc/fstab