Re: [patch] Auto-setting hz to 100 inside QEMU/VMWare




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@xxxxxxxxxxx
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier@EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • [patch] Auto-setting hz to 100 inside QEMU/VMWare
    ... When running FreeBSD inside QEMU / VMWare, one of my pet peeves is that time is completely inaccurate. ... 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. ...
    (freebsd-current)
  • Re: Is it possible to install minix 3 on VirtualBox?
    ... is said that it runs fine on virtual machine such as VMware and Xen, ... We've been hearing some reports that networking in VirtualBox is giving ... I prefer QEmu by the way, ...
    (comp.os.minix)
  • Re: Heisenbergsche Segfaults
    ... Ja selbstverständlich emuliert QEmu eine andere Hardware als in Deinem ... das ist bei VMware und VirtualBox ...
    (de.comp.os.unix.linux.misc)
  • Re: Is it possible to install minix 3 on VirtualBox?
    ... is said that it runs fine on virtual machine such as VMware and Xen, ... then does it also run fine on VirtualBox? ... I'd try qemu as well. ...
    (comp.os.minix)
  • Re: Installing SCO 5.0.7 on HP DL380 G5
    ... OpenServer 5.0.7 with IDE configured virtual drives. ... I've tried SCO OS 5.0.7 under Qemu but even with the help of a SCO guru but it ... had troubles recognizing the IDE disk :-( ... I'll try in the near future with VirtualBox and I'll keep ...
    (comp.unix.sco.misc)