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.
Related Articles
- Free VMWare Server Serial Numbers or License Keys
- Download Free VMWare Server Virtualization Software
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4
- Checking Free Disk Space on FreeBSD Server
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3
- Enable Logging of Slow Queries (Slow Query Log) in MySQL Database
- Seeing Double Wall Clock
- Download Free VMware Workstation 6 Beta for Windows Vista
- Try Out and Install Windows Vista in Virtual Machine with Virtual PC 2007 and VMWare Server
- Change or Set MySQL Long Query Time Value for log-slow-queries

































January 7th, 2007 20:30
[...] , 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 [...]
January 7th, 2007 21:08
[...] ;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 ; [...]
January 8th, 2007 00:20
[...] Original post by Comments for My Digital Life [...]
July 3rd, 2007 07:02
[...] 2. Tambahkan baris ‘hint.apic.0.disabled=1′ di /boot/loader.conf. Solusi ini saya dapat dari link ini. [...]
October 13th, 2007 14:41
[...] FreeBSD 6.0 on VMware Server Time and Clock Slow Down [from My Digital Life] [...]