Creating custom esxi 4.0 installation cd
- 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!
Creating custom ESXi 3.5 installation cd
- Mount vmware esxi installation ISO
mount -o loop isofile mountpoint - Copy the content of the iso to a temp location /tmp/newiso
- Unpack the oem.tgz file to a temp location and add the content you want
- Repack oem.tgz ( the files in the archive must not start with a ./ )
tar -C /path/totemplocation -zcf – etc oem.txt usr - Put the new oem.tgz file back in the iso temp location /tmp/newiso
- Unpack the install.tgz file to another temp location
- Uncompress the installation payload
bunzip2 usr/lib/vmware/installer/VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd.bz2 - Seek the partition offset in the diskdump (you need the start of the partition 5 – 8224 )
fdisk -ul VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd - Mount the partition 5 of the diskdump with the offset 8224 we found earlyer
mount -o loop /path/todiskimage/VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd /mount/point -o offset=$((8224*512)) - 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 install.tgz archive
tar -zcf ../install.tgz sbin usr - Put the new install.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!
Make bootable iso for vmware esxi
mkisofs -o ../vmware-rebranded.iso -b isolinux.bin -c boot.catalog -no-emul-boot -boot-load-size 4 -boot-info-table ./
