From 2e1c6c55996ba7ac31f1f28cc0d10026a5d91336 Mon Sep 17 00:00:00 2001 From: vallard Date: Tue, 12 May 2009 20:30:41 +0000 Subject: [PATCH] setup ESX post install script git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3366 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/setupesx | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 xCAT/postscripts/setupesx diff --git a/xCAT/postscripts/setupesx b/xCAT/postscripts/setupesx new file mode 100644 index 000000000..138f77733 --- /dev/null +++ b/xCAT/postscripts/setupesx @@ -0,0 +1,40 @@ +# esx setup +# example on how to set up ESX. We setup ssh and also add a basic +# VLAN configuration + +# Enable SSH access to root +sed -e 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config > /etc/ssh/sshd_config.new +mv -f /etc/ssh/sshd_config.new /etc/ssh/sshd_config +/etc/init.d/sshd restart + +# create a script that will launch the first time ESX does and configure +# the network +cat >/tmp/esxcfg.sh <>/etc/rc.d/rc.local <