os-xenapi/tools/install/scripts/ubuntu_latecommand.sh
naichuans 85a588e382 os-xenapi: remove install dependence with devstack 2:
Part two: configure ubuntu DomU VM and introduce
install-devstack-xen.sh
Move tools/xen from devstack to os-xenapi which will be the center
place to hold some XenServer/XenAPI specify source code.

This part is used to configure a DomU VM and  install devstack on
domu VM

Change-Id: I20f4663d987266d6ff6d57c5eb3c4447d51f9162
2017-06-19 08:15:54 +00:00

15 lines
448 B
Bash
Executable File

#!/bin/bash
set -eux
# 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=/' /etc/fstab
# Allow root to login with a password
sed -i -e 's/.*PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
# Install the XenServer tools so IP addresses are reported
wget --no-proxy @XS_TOOLS_URL@ -O /root/tools.deb
dpkg -i /root/tools.deb
rm /root/tools.deb