Browse files

Merge pull request #525 from jasonberanek/esxi-templates

Correcting vnc support and other issues with ESXi template
  • Loading branch information...
2 parents 8591004 + 0baa20b commit c619441ed35cb101dd7a3f880abcee2a41fb9bf0 @jedi4ever committed Feb 18, 2013
Showing with 7 additions and 5 deletions.
  1. +1 −1 templates/VMware-ESXi-5.1-x86_64/ks.cfg
  2. +6 −4 templates/VMware-ESXi-5.1-x86_64/vnc_enable.sh
View
2 templates/VMware-ESXi-5.1-x86_64/ks.cfg
@@ -48,7 +48,7 @@ done
/sbin/auto-backup.sh
# enter maintenance mode
-esxcli system maintenanceMode set -e true
+#esxcli system maintenanceMode set -e true
# copy %first boot script logs to persisted datastore
cp /var/log/hostd.log "/vmfs/volumes/datastore1/firstboot-hostd.log"
View
10 templates/VMware-ESXi-5.1-x86_64/vnc_enable.sh
@@ -14,7 +14,7 @@ echo "
<service id='0033'>
<id>vnc</id>
<rule id='0000'>
- <direction>outbound</direction>
+ <direction>inbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>
@@ -32,8 +32,10 @@ echo "
cp /store/firewall/service.xml /etc/vmware/firewall/service.xml
esxcli network firewall refresh
-# Add steps to profile.local to repeat these steps on reboot
+sed -i "s/exit 0//" /etc/rc.local.d/local.sh
+
+# Add steps to /etc/rc.local/local.sh to repeat these steps on reboot
echo "
cp /store/firewall/service.xml /etc/vmware/firewall/service.xml
-esxcli network firewall refresh" >> /etc/profile.local
-
+esxcli network firewall refresh
+exit 0" >> /etc/rc.local.d/local.sh

0 comments on commit c619441

Please sign in to comment.