The application provides a log implementation method in a
Hypervisor /
virtualization environment, and relates to the technical field of
operating system virtualization, and comprises the following steps: outputting a log by operating physical debugging hardware in a starting stage by the
Hypervisor, and closing a driver before starting an SOS, and temporarily storing the log in a kernel buffer area of the driver; after transferring all the ownership of the hardware to the SOS, reading and outputting the temporarily-stored log of the
Hypervisor by the kernel of the SOS through
shared memory; in an early console stage of a UOS, intercepting and converting a hardware access operation of the UOS by the Hypervisor through
full virtualization technology, and storing the log in a buffer area; after the early console stage of the UOS, switching to a semi-
virtualization channel, and sending the log to a
user space back-end process of the SOS. The application solves the problems of log output interruption in a starting process of a virtualization
system, early log loss and difficulty in unified collection of multi-source logs, and realizes reliable, real-time and
centralized management of the log.