Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2007 18:44:48 +0100 (CET)
From:      "Max Laier" <max.laier@tm.uka.de>
To:        "Mike Silbersack" <silby@silby.com>
Cc:        current@freebsd.org
Subject:   Re: [patch] Auto-setting hz to 100 inside QEMU/VMWare
Message-ID:  <55777.2001:6f8:12c8:1:21d:60ff:fe0c:1771.1198863888.squirrel@router.laiers.local>
In-Reply-To: <20071228015651.X1565@odysseus.silby.com>
References:  <20071228015651.X1565@odysseus.silby.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Am Fr, 28.12.2007, 09:03, schrieb Mike Silbersack:
>
> When running FreeBSD inside QEMU / VMWare, one of my pet peeves is that
> time is completely inaccurate.  This seems to be cured by setting
> kern.hz=100 (down from the default of 1000) in /boot/loader.conf, but I'm
> getting sick of doing that every time I set up a virtual box.
>
> So, here's a patch to have the kernel auto-detect that it's running inside
> one of those two environments and automatically make that adjustment.
>
> If you're running FreeBSD inside any other virtual environments
> (Parallels?  Microsoft Virtual PC?) and can detect them via data in kenv,
> I'll be happy to add them to the patch as well.
>
> I have only tested this patch in QEMU so far, I will test inside VMWare
> tomorrow.
>
> If anyone could review and/or test this, it would be appreciated.
>
> Thanks,

VirtualBox (QEMU based) has hint.acpi.0.oem="VBOX  ".

-- 
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55777.2001:6f8:12c8:1:21d:60ff:fe0c:1771.1198863888.squirrel>