To ensure the desktop display synchronization of the primary and secondary virtual machines in a dual machine fault-tolerant system,a VNC based input distribution method was proposed to ensure the consistency of the input data flow between the primary and secondary virtual machines,thereby ensuring the consistency of the interface between the two VMs.To address the issue of poor performance of COLO in QEMU/KVM under virtual machine synchronization in graphical operating systems,X11 response events were introduced to compare and check the graphical interfaces of the primary and secondary virtual machines,achieving desktop synchronization between the primary and secondary virtual machines and reducing synchronization time overhead.The feasibility and effectiveness of the presented method are demonstrated through experimental comparative analysis.