From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 1 12:57:43 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 73C5B16A403 for ; Thu, 1 Mar 2007 12:57:43 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 33B6713C48E for ; Thu, 1 Mar 2007 12:57:43 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l21Cvgpv040957; Thu, 1 Mar 2007 06:57:42 -0600 (CST) (envelope-from anderson@freebsd.org) Message-ID: <45E6CDCA.5070505@freebsd.org> Date: Thu, 01 Mar 2007 06:57:46 -0600 From: Eric Anderson User-Agent: Thunderbird 1.5.0.9 (X11/20070204) MIME-Version: 1.0 To: ghozzy References: <005101c75778$50577770$0901a8c0@TWEETY> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2690/Thu Mar 1 05:11:27 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Cc: freebsd-hackers@freebsd.org, glarkin@sourcehosting.net Subject: Re: Instruction fault panic while installing 6.2 on VMware Server X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2007 12:57:43 -0000 On 02/24/07 05:44, ghozzy wrote: > Hi, > > On 2/23/07, Greg Larkin wrote: >> Hi everyone, >> >> I'm creating a standard FreeBSD 6.2 ISO image that I can use to >> perform unattended installations into VMware Server virtual machines. >> I'm using VMServer 1.0.1, and I've hit a roadblock when sysinstall >> attempts to create the root filesystem. >> >> The first thing to mention is that VMServer is running on a CentOS 4.4 >> host OS, and the CPU architecture is a Via C3 Nehemiah. Technically, >> the VMServer software is not supposed to work on the Via C3 line, but >> the Nehemiah apparently supports the CMOV instruction that VMServer >> requires. I've been able to install Fedora Core 6 successfully and >> run it with no problems, so I'm wondering if I just need to find the >> right options to configure FreeBSD 6.2 to get it to work. >> >> Anyway, the VM boots fine, loads the FreeBSD ISO, and launches >> sysinstall, but as soon as newfs is invoked to make the root >> filesystem, I get this: >> >> Making a new root filesystem on /dev/ad0s1a >> Panic: privileged instruction fault >> (auto reboot) >> >> I've tried installing from the standard 6.2 release ISO as well as a >> custom ISO with a recompiled kernel, but I get the same error either >> way. I also tried disabling ACPI during boot with no success. >> >> My custom kernel config is included below. My first thought was that >> if I explicitly set the CPU to I486, that might help avoid the >> instruction fault, but that doesn't work. I didn't see any other >> options that looked like they would fix the fault, but I'm not very >> experienced at kernel configuration either. >> >> Does anyone have an idea how to troubleshoot this problem? Thank you >> for any help! >> >> Regards, >> Greg Larkin > > I have experienced similar problem in VMware Workstation under Windows XP > on Via C3 Nehemiah processor since FreeBSD 5.x. In my case privileged > instruction fault shot somewhere in rc boot process. Tracing down the cause of > fault i found out that it was xstore instruction, which VMware did not emulate. > It turned out to be the merit of new random generator appeared somewhere in > 5.x, which detected the Via processor and tried to use its hardware random > number generator. My workaround was to patch kernel to disable using this Via > processor feature completely. The result was successful booting and running > FreeBSD 5.x and 6.x under VMware on this machine. > > Attached is the patch i use for 6.x kernel. Can you both send me the dmesg of these machines? Eric