Difference between revisions of "Installation (ESX)"

Jump to navigation Jump to search
1,365 bytes added ,  13:16, 13 October 2009
m
Added "Banners"
(Added "Build Notes")
m (Added "Banners")
Line 46: Line 46:
  ...
  ...


==== Logging ====
It is recommended to compress and increase the maximum log file size by modifying the configuration files in the <code>/etc/logrotate.d</code> directory and the <code>/etc/logrotate.conf</code> file.
For example, changing vmkwarning to be 2096k in size, and compressed...
[root@dtcp-esxsvce01b root]# more /etc/logrotate.d/vmkwarning
/var/log/vmkwarning{
    create 0600 root root
    missingok
    compress
    sharedscripts
    postrotate
    size 2096k
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
}
...and changing relevent part of <code>/etc/logrotate.conf</code> to allow compression...
...
# uncomment this if you want your log files compressed
compress
...
Finally, its worth redirecting sudo log activity to <code>/var/log/sudolog</code>, see above section on sudo.
==== Banners ====
There are three modes of direct management access to an ESX, web, ssh, and direct (local) console.
===== Web Access =====
Edit the html page <code>/usr/lib/vmware/hostd/docroot/index.html</code>
===== SSH =====
Edit the <code>/etc/ssh/sshd_config</code> file so that it knows to display a defined banner file during login...
Banner /etc/banner
Create the banner file with the appropriate contents.
===== Console =====
Prepend your banner to the <code>/etc/issue</code> file


= Procedures =
= Procedures =

Navigation menu