This circuit can provide 5,000 VDC from 26 VDC. This circuit has ripple of under 0.01% due to Voltage-doubling capacitors. As sinusoidal oscillator, a 2N217 transistor is used. The diode and the capacitors at the output stage should be of high voltage type.  Here is the schematic diagram of the  circuit:

5000 V D C from 26 V D C circuit schematic