Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Correcting vnc support and other issues with ESXi template #525

merged 2 commits into from Feb 18, 2013
Jump to file or symbol
Failed to load files and symbols.
+7 −5
@@ -48,7 +48,7 @@ done
# 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"
@@ -14,7 +14,7 @@ echo "
<service id='0033'>
<rule id='0000'>
- <direction>outbound</direction>
+ <direction>inbound</direction>
@@ -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