Gamma spectrometry is one of the main analysis methods used to obtain information about unknown radioactive materials. In gamma-ray energy spectrometry, even for the same gamma-ray spectrum, the analysis results may be slightly different depending on the skill of the analyst. Therefore, it is important to increase the proficiency of the analyst in order to derive accurate analysis results. This paper describes the development of the virtual spectrum simulator program for gamma spectrometry training. This simulator program consists of an instructor module and trainee module program based on an integrated server, in which the instructor transmits a virtual spectrum of arbitrarily specified measurement conditions to the students, allowing each student to submit analysis results. It can reproduce a virtual gamma-ray energy spectrum based on virtual reality and augmented reality technique and includes analysis function for the spectrum, allowing users to experience realistic measurement and analysis online. The virtual gamma-ray energy spectrum DB program manages a database including theoretical data obtained by Monte Carlo simulation and actual measured data, which are the basis for creating a virtual spectrum. The currently developed database contains data on HPGe laboratory measurement as well as in-situ measurements (ground surface, decommissioned facility wall, radiowaste drum) of portable HPGe detectors, LaBr3(Ce) detector and NaI detector. The analysis function can be applied not only to the virtual spectrum, but also to the input measured spectrum. The parameters of the peak analysis algorithm are customizable so that even low-resolution spectra can be properly analyzed. The validity of the database and analysis algorithm was verified by comparing with the results derived by the existing analysis programs. In the future, the application of various in-situ gamma spectrometers will be implemented to improve the profiling of the depth distribution of deposited nuclides through dose rate assessment, and the applicability of the completed simulator in actual in-situ gamma spectrometry will be verified.