This paper presents a method of designing and building a fire alarm and fighting system in virtual reality, aiming to reduce damage to people and property during the training process. The simulation system is designed to include a control panel, a teacher computer, and a space simulation computer. students will interact with hardware and software, which will help improve their professional level and professionalism in maritime security and safety. In addition, building a successful connection between HMI hardware devices and simulation software, lifeboats, and some equipment for rescue at sea, through which evaluation cadets and officers before a real-life situation occurs.