RSS Feed

Tags

Archives

Categories

Recent Posts

Links

Creating custom esxi 4.0 installation cd

March 4th, 2011 by D in howto, Tech, VmWare

  1. Mount vmware esxi installation ISO
    mount -o loop isofile mountpoint
  2. Copy the content of the iso to a temp location /tmp/newiso
  3. Unpack the image.tgz file to another temp location
  4. Uncompress the installation payload
    bunzip2 usr/lib/vmware/installer/VMware-VMvisor-big-171294-x86_64.dd.bz2
  5. 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
  6. 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))
  7. 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
  8. Repack oem.tgz ( the files in the archive must not start with a ./ )
    tar -C /path/totemplocation -zcf – etc usr
  9. Copy your new oem.tgz file over the one in the diskdump
  10. Unmount the diskdump
    umount /mount/point
  11. Compress the diskdump
    bzip2 usr/lib/vmware/installer/VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd
  12. Create the new image.tgz archive
    tar -zcf ../image sbin usr
  13. Put the new image.tgz file in the iso temp location /tmp/newiso
  14. 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 ./
  15. If you did it right your new CD should boot!

Creating custom ESXi 3.5 installation cd

March 4th, 2011 by D in howto, Tech, VmWare

  1. Mount vmware esxi installation ISO
    mount -o loop isofile mountpoint
  2. Copy the content of the iso to a temp location /tmp/newiso
  3. Unpack the oem.tgz file to a temp location and add the content you want
  4. Repack oem.tgz ( the files in the archive must not start with a ./ )
    tar -C /path/totemplocation -zcf – etc oem.txt usr
  5. Put the new oem.tgz file back in the iso temp location /tmp/newiso
  6. Unpack the install.tgz file to another temp location
  7. Uncompress the installation payload
    bunzip2 usr/lib/vmware/installer/VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd.bz2
  8. 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
  9. 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))
  10. Copy your new oem.tgz file over the one in the diskdump
  11. Unmount the diskdump
    umount /mount/point
  12. Compress the diskdump
    bzip2 usr/lib/vmware/installer/VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd
  13. Create the new install.tgz archive
    tar -zcf ../install.tgz sbin usr
  14. Put the new install.tgz file in the iso temp location /tmp/newiso
  15. 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 ./
  16. If you did it right your new CD should boot!

Make bootable iso for vmware esxi

March 4th, 2011 by D in howto, Tech, VmWare

mkisofs -o ../vmware-rebranded.iso -b isolinux.bin -c boot.catalog -no-emul-boot -boot-load-size 4 -boot-info-table ./