The diffraction oscillator resonator is suggested to be excited by an electron beam with virtual cathode. The advantages and shortcomings are considered of the three versions when the virtual cathode is formed before beam entering to resonator, after its exit and directly in the oscillator resonator. Computer simulation of the first and third versions was performed.