隨著雲端基礎建設技術的蓬勃發展,自架虛擬機能充分利用硬體資源,減少機房維護成本。不過相較於實體機器,虛擬機器更容易發生故障。為了提高虛擬機的可用性,我們過去提出了虛擬機器容錯系統NCU MFTVM 4。該系統在虛擬機故障發生後,備援機器能夠從故障前的狀態恢復運行。然而,為了讓備援機器擁有最新的狀態,我們需短暫暫停虛擬機器,這會導致少量的時間飄移。當時間飄移累積到一定程度,就會影響虛擬機器內的應用程式正確性。經過我們的研究發現,傳統的時間同步並不適合我們所開發的虛擬機器容錯系統,故我們提出了在虛擬機器監控層(VMM)實現虛擬機器時間同步的方法。根據實驗發現這種方法對系統效能影響不大,同時不需要安裝任何套件及不需要擔心時間同步功能失效,從而實現更穩健的虛擬機器容錯系統。;With the booming development of cloud infrastructure technology, self-built virtual machines fully utilize hardware resources and reduce data center maintenance costs. However, virtual machines are more prone to failure than physical machines. In order to enhance the availability of virtual machines, we have previously proposed the NCU MFTVM 4 virtual machine fault tolerance system. This system allows backup machines to recover and resume operation from the pre-failure state of a virtual machine after a failure occurs. However, every time the virtual machine state is saved, the virtual machine must be briefly paused, which results in a small amount of time drift. When the time drift accumulates to a large amount, it affects the correctness of applications running inside the virtual machine. we found traditional time synchronization methods are not suitable for our developed virtual machine fault tolerance system. Therefore, we proposed a method to achieve virtual machine time synchronization at the virtual machine monitor (VMM) layer. According to experimental, this method has minimal impact on system performance, does not require the installation of any additional packages, and eliminates concerns about the failure of time synchronization functionality, thereby achieving a more robust virtual machine fault tolerance system.