From 156ba2def2b7734eaff34b84f5b4d3544ab13f89 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 9 Jun 2010 13:15:15 +0000 Subject: [PATCH] * Don't use the "kvm-clock" clock source because it's unreliable. When starting multiple VMs, some will have perfectly synchronised clocks, while others will have their clocks run much slower (say, a factor of 5). svn path=/nixos/branches/boot-order/; revision=22195 --- modules/virtualisation/qemu-vm.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/virtualisation/qemu-vm.nix b/modules/virtualisation/qemu-vm.nix index 2f554a591a8..6f8deebc69a 100644 --- a/modules/virtualisation/qemu-vm.nix +++ b/modules/virtualisation/qemu-vm.nix @@ -169,6 +169,9 @@ in boot.initrd.postDeviceCommands = '' + # Workaround for massive clock drift with the "kvm-clock" clock source. + echo hpet > /sys/devices/system/clocksource/clocksource0/current_clocksource + # Set up networking. Needed for CIFS mounting. ifconfig eth0 up 10.0.2.15