Tom's FreeBSD blog I'd rather be doing something than writing about it.

February 17, 2009

Some VMware ESXi post install notes

Filed under: Virtualization — tmclaugh @ 12:02 am

I ended up reinstalling ESXi 3.5u3 recently since there were no running needed VMs on the box and I wanted to play with a few changes I made to the installer image.


  1. For ESXi 4.0, the dhcp client changed – so for Step 2, use the below instead:

    2) Create /tmp/oem/etc/rc.local.d/send-hostname:
    if [ -r /var/run/ ]; then
    kill $(cat /var/run/
    /sbin/dhclient-uw -pf /var/run/ -rt 90 -lf /var/lib/dhcp/dhclient-vmk0.leases -cf /etc/dhclient-vmk0.conf -4 -nw -d vmk0 -hn $(hostname)

    Comment by matt — October 27, 2009 @ 10:12 am

  2. Re: Send hostname by DHCP client

    This is great! I asked Google how to do that, and had NO IDEA what doors this answer would open.

    My host is totally simple, and I was able to tidy up this fix with this ‘Step 2′ :
    2) Add /etc/dhclient-vmk0.conf to oem.tgz
    $ mkdir /tmp/oem/etc
    $ echo “interface \”vmk0\” { send host-name \”$(hostname -s)\”; }” > /tmp/oem/etc/dhclient-vmk0.conf

    (The interface “vmk0″ and conf file “-cf ” are described in ‘ps -c | grep dhc’ output)

    Comment by Roger — June 14, 2010 @ 9:29 am

  3. Recommended Websites…

    […]below you’ll find the link to some sites that we think you should visit[…]…

    Trackback by Buy Guaranteed Facebook Fans — December 1, 2011 @ 5:03 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress