I admit I'm doing something a little bit off the beaten path, but I'm hoping there is a quick solution to get me out of the hole I've dug.
I'm trying to automate the deployment of dozens of ESXi hosts. So far, I'm grabbing a block level image of the boot drive, and writing back out to the destination systems.
Unfortuantely, it appears that the MAC address for the kernel interface on the default vSwitch (and possibly others - this is the one biting me right now) is saved in /etc/vmware/esx.conf, and brought along during the process. Once the new machine comes up, I get 2 machines using the same MAC (more if I do a large scale duplication), and network problems ensue.
I've found that if I clear the MACs from the esx.conf file before taking the image, the destination machine creates a new one on the fly as it boots. However, its still not the MAC reported by the console interface (which shows the HW address), and not the HW address.
Is there any way to reset the various MACs to the HW value? Extra kudos if someone can point me at a mechanism to have it occur automatically on first boot.
-B