Code:
mkdir /mnt/iso
mount -o loop -t iso9660 ./debian-507-i386-netinst.iso /mnt/iso
mkdir /tmpdeb
cd /tempdeb
cp -pr /mnt/iso/* ./
md5sum `find ! -name "md5sum.txt" ! -path "./isolinux/*" -follow -type f` > md5sum.txt
mkisofs -o /tmpdeb.iso -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat ./
Launch tempdeb.iso inside of a vmware machine.
It goes thru the first 3 options, then it starts looking at the cd and says:
Incorrect CD-ROM detected
The CD-ROM drive contains a CD which cannot be used for installation.
Please insert a suitable CD to continue with the installation.
I can boot and install the original ISO just fine.