FreeBSD 6.0 on VMware Server Time and Clock Slow Down

FreeBSD 6.0, when running as guest operating system in VMware Server or VMware Workstation 5.0, the FreeBSD system encounters considerable clock ticking slowdown, up to as high as 60% of time loss compared to real time clock. Even right after you reset the clock and set the time properly, after a while, the gap between FreeBSD virtual machine time and actual time will be widen.

One possible solution or workaround to this problem is to disable the use of APIC (note: Not ACPI) by adding the following line in /boot/loader.conf:

hint.apic.0.disabled=1

By disabling APIC device, FreeBSD is forced to fall back on the IRQ timers to avoid the rate of the clock and timer on emulated FreeBSD machine on VMware slows down. The down side to this resolution is that FreeBSD cannot runs in as SMP kernel mode as a virtual SMP machine on the emulated machine.

Another alternative is to comment out the “device apic” line in the kernel config file and rebuild the kernel, but only if you are technically know what you’re doing.

For VMware host in Windows NT operating system, reboot and run the Windows OS in safe mode may solve the timing incorrect issue too, although it’s better to format and install the whole machine as FreeBSD rather than running it as Windows safe mode host.

Share and contribute or get technical support and help at My Digital Life Forums.



5 Responses to “FreeBSD 6.0 on VMware Server Time and Clock Slow Down”

  1. Rexiology... : Clock in a VMWare FreeBSD Guest Runs More Slowly or Quickly Than Real Time...
    January 7th, 2007 20:30
    1

    [...] , vmware, APIC   Share this post: email it! | bookmark it! | digg it! | live it! Published 07-01-2007 08:28 by Rex Filed under Useful Tools, Information Technology,Linux [...]

  2. Planeta FreeBSD » Clock in a VMWare FreeBSD Guest Runs More Slowly or Quickly Than Real Time…
    January 7th, 2007 21:08
    2

    [...] ;umm, seems that I am little bit enthusiastic about knowing all those unix-like system recently, since I didn’t pay ;much time to know ;them before. right now I’ve set up ;3 VMs with vmware‘>CentOS4.4 , Gentoo Linux 2006 ;(since it is able to run in Sun SPARC machine), FreeBSD 6.1 , and going to setup one more VM with Sun Solaris 10 x86 (11/2006 version) ;arch to get familiar with all those main stream unix-like OSes.while toying around with Gentoo and FreeBSD, I did found that Gentoo seems had no problems on the clock issue happened in my CentOS as well as FC6 as described in my previous post. but FreeBSD did encounter this problem again. the clock is much slower than real one on the host OS.by searching to Google, I found this post saying about FreeBSD clock is slowing when acting in VMWare as guest OS, and it was also the same reason in Linux that the OS is using APIC to get the clock for the time. the solution is to disable APIC on the boot time by editing /boot/loader.conf and put a line:hint.apic.0.disabled=1in the file and reboot FreeBSD, or to ;’to comment out the “device apic” line in the kernel config file and rebuild the kernel’. also by doing so will loose the ability for the guest OS to run in SMP mode. pretty same as what ;happened in Linux. After doing the loader.conf modification and reboot the FreeBSD VM, the clock is back to normal without problem. by installing VMWare-Tools into FreeBSD vm, verifying that vmware-guestd is running and also in the FreeBSD guest OS’s .vmx file, set toos.syncTime to TRUE, the time in my FreeBSD vm is back to normal and won’t need NTP to sync the real time, just like what I did in my CentOS in previous post. It’s pretty cool that I can run all those 3 VMs with different unix-like OSes simutaniously in my Windows 2003 R2 Server with 2GB RAM. I gave ;each guest OS 384mb RAM to run and thanks to VMWare Workstation’s dynamic memory allocation technology, while my testing of those 3 VMs I can still have more than 1 gb RAM for my host OS. I think it should be no problem for me to boot up one more Solaris 10 VM in the same time. The goal is to understanding all those system and networking administration tasks on those different main-stream unix-like OSes and further more to host web applications and database systems on them. maybe than trying to develop some Mono projects ;to run ASP.NET websites ;upon them. ;I’ve already found that it’s pretty different on the admin of ; Linux and BSD systems since it’s pretty different on the directory structures as well as those admin commands and locations of various config files. wondering if it’s also different ;in a Solaris OS… anyway, it’s always nice to learn new things, and I am enjoying it on my weekend… Technorati Tags: linux ;, ;freebsd, ;solaris, ;CentOS, ;ntp, ;clock, ;kernel , ;vmware, ;APIC ; [...]

  3. Planeta Gentoo » Comment on FreeBSD 6.0 on VMware Server Time and Clock Slow Down by Planeta FreeBSD » Clock in a VMWare FreeBSD Guest Runs More
    January 8th, 2007 00:20
    3

    [...] Original post by Comments for My Digital Life [...]

  4. Permasalahan Time di FreeBSD GuestOS pada VMware « Admin Juga Manusia 2.0 ™
    July 3rd, 2007 07:02
    4

    [...] 2. Tambahkan baris ‘hint.apic.0.disabled=1′ di /boot/loader.conf. Solusi ini saya dapat dari link ini. [...]

  5.   Virtualized LoadRunner? (Part 3 of 3) by LoadRunner TnT
    October 13th, 2007 14:41
    5

    [...] FreeBSD 6.0 on VMware Server Time and Clock Slow Down [from My Digital Life] [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

vmware time slow - vmware freebsd time - vmware server time problem - vmware freebsd clock - freebsd vmware time - vmware server time - Vmware server clock - freebsd vmware clock - vmware clock - vmware clock too slow - freebsd vmware server - freebsd vmware loader.conf - vmware server time delay - vmware server time sync - vmware linux time slow - VMware Server freebsd - vmware server time linux - freebsd time vmware - gentoo vmware time - linux slow time - vmware time delay - vmware on freebsd - vmware time to slow - vmware freebsd time - freebsd vmware clock slow - vmware server on freebsd - vmware server down - slow clock download - vmware system time delay - clock on mail server in vmware slows down - vmware freebsd slow clock - hint.apic freebsd boot - vmware-server under freebsd - vmware and time - vmware time freebsd - vmware ntp clock - centos 5 vmware time slow - guest os clock running too slow - linux clock slow under windows vmware server - vmware disable apic - vmware freebsd time synchronization - vmware freebsd clock slow - vmware time - centos vmware tools xp host vmware server - vmware tools timing problem - FreeBSD VMware - vmware server clock slow - freebsd system clock - vmware time slowdown - download vmware freebsd -