From owner-freebsd-questions@FreeBSD.ORG Sun Jan 6 18:39:05 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F235D37C for ; Sun, 6 Jan 2013 18:39:05 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 8C417123D for ; Sun, 6 Jan 2013 18:39:05 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Trv7s-0003on-Vp for freebsd-questions@freebsd.org; Sun, 06 Jan 2013 19:39:16 +0100 Received: from 79-139-19-75.prenet.pl ([79.139.19.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Jan 2013 19:39:16 +0100 Received: from jb.1234abcd by 79-139-19-75.prenet.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Jan 2013 19:39:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: jb Subject: Re: FB 9.1 boot loader problem in VirtualBox Date: Sun, 6 Jan 2013 18:38:45 +0000 (UTC) Lines: 39 Message-ID: References: <50E96474.4060609@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 79.139.19.75 (Mozilla/5.0 (X11; Linux i686; rv:10.0.11) Gecko/20121121 Firefox/10.0.11) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2013 18:39:06 -0000 Matthew Seaman FreeBSD.org> writes: > > On 06/01/2013 11:19, jb wrote: > > Next problem: > > I selected powerd service during install, but after boot, there was error > > msg: > > starting powerd > > powerd lookup freq: No such file or directory > > /etc/rc: WARNING failed to start powerd > > Again -- standard for VirtualBox hosts: powerd doesn't work -- the guest > OS can't control the frequency of the host CPU, which is what you'ld > expect thinking about it. > > Just disable powerd in /etc/rc.conf to get rid of the error message. > > Cheers, > > Matthew If so, then bsdinstall should stop offering powerd as a service during installation (regardless of whethter in real or virtual env). It can discover this condition with checking for lack of sysctl -a | grep dev.cpu.0.freq sysctl -a | grep dev.cpu.0.freq_levels in /usr/libexec/bsdinstall/services, exactly as it does with if (sysctlnametomib("dev.cpu.0.freq", freq_mib, &len)) err(1, "lookup freq"); ... if (sysctlnametomib("dev.cpu.0.freq_levels", levels_mib, &len)) err(1, "lookup freq_levels"); in /usr/sbin/powerd (via /etc/rc.d/powerd) - see powerd.c. jb