- Mount vmware esxi installation ISO
mount -o loop isofile mountpoint
- Copy the content of the iso to a temp location /tmp/newiso
- Unpack the image.tgz file to another temp location
- Uncompress the installation payload
bunzip2 usr/lib/vmware/installer/VMware-VMvisor-big-171294-x86_64.dd.bz2
- Seek the partition offset in the diskdump (you need the start of the partition 5 – 8224 )
fdisk -ul VMware-VMvisor-big-171294-x86_64.dd
- Mount the partition 5 of the diskdump with the offset 8224 we found earlyer
mount -o loop /path/todiskimage/VMware-VMvisor-big-171294-x86_64.dd /mount/point -o offset=$((8224*512))
- Unpack the oem.tgz file to a temp location and add the content you want
The content is relative to root filesystem and set files/dir uid/dig to 201
- Repack oem.tgz ( the files in the archive must not start with a ./ )
tar -C /path/totemplocation -zcf – etc usr
- Copy your new oem.tgz file over the one in the diskdump
- Unmount the diskdump
umount /mount/point
- Compress the diskdump
bzip2 usr/lib/vmware/installer/VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd
- Create the new image.tgz archive
tar -zcf ../image sbin usr
- Put the new image.tgz file in the iso temp location /tmp/newiso
- Create the bootable iso file
cd /tmp/newiso && mkisofs -o ../vmware-rebranded.iso -b isolinux.bin -c boot.catalog -no-emul-boot -boot-load-size 4 -boot-info-table ./
- If you did it right your new CD should boot!