Only works from a gasoline engine, diesels to not make vacuum.
That's why diesels have vacuum booster pumps running off the engine, or at least my 83 Chevy dually did.