You will need to modify the engine.
Even though they are very similar at the foundation, diesel and gasoline engines have vastly different operating systems. Their differences are so stark that one fuel can’t power another. This has been the norm. The Russian YouTube channel Garage 54 shows the shop trying to defy automotive engineering laws and get a Toyota diesel motor to run on regular gasoline.
This is not an easy task. Garage 54 must modify the engine to make them work with diesel and gasoline fuels. The compression ratio in the combustion chamber is a problem. It is too high for a gasoline engine, making it difficult to use. First, disassemble the engine and clean the parts. Next, measure the combustion chamber. The crew reduced the compression ratio by slicing the pistons and making other modifications.
The compression ratio was only one obstacle to converting this engine to run on gasoline. Diesel engines do not have spark plugs. To make gasoline combust, the fuel injector holes were modified. The gear for the high-pressure diesel fuel pump was also repurposed to run the distributor. The fuel pump was once the distributor.
After modifications had been made to the engine and it was reassembled, it came time for the first test. The battery was attached, fuel was added, and the engine turned on. It started up immediately, although it wasn’t smooth at low revs. However, it revved up smoothly and it sounded as if it was working just fine. The effort should be considered a complete success, even though it required extensive modifications to make it work.