blob: 2afbe2cdf3535fe3fbbce5ab5bb3e5e26e86df48 [file] [log] [blame]
Bob Ball5b9adb62015-02-10 08:09:08 +00001#!/bin/bash
2set -eux
3
4# Need to set barrier=0 to avoid a Xen bug
5# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/824089
6sed -i -e 's/errors=/barrier=0,errors=/' /etc/fstab
7
8# Allow root to login with a password
9sed -i -e 's/.*PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
10
11# Install the XenServer tools so IP addresses are reported
12wget --no-proxy @XS_TOOLS_URL@ -O /root/tools.deb
13dpkg -i /root/tools.deb
14rm /root/tools.deb