This article presents the results of an experiment on creating an electronic textbook for universities and programs of additional professional education using virtual and augmented reality technologies and evaluating the results of testing the textbook on the basis of the State University of Management. The topic of the electronic textbook concerns the organization of the security service of accommodation facilities. The authors provide a description of the electronic textbook, its structure, main interactive elements, the progress of work, talk about the difficulties that they encountered. The working group on the creation of the textbook included methodologists, psychologists, specialists from the security services of Moscow hotels and specialists in information technology. Teams of key developers - the State University of Management, the Lotte group of companies, the LLC ITRON limited liability company, and the Rusays Publishing House - worked in partnership. Conclusions are made about the possibilities of using virtual and augmented reality technologies in educational activities. Augmented reality technology is used to create a mobile application that displays educational materials with reference to real-life objects according to special markers. This technology allows you to make the textbook unique for a specific object (office, building, structure, landscape). The results of the training using an electronic participant are presented. The peculiarities of the psychological perception of educational material and the effectiveness of the new format of presentation of the educational environment are noted.