From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 1 18:10:55 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 F40AC16A403 for ; Thu, 1 Mar 2007 18:10:54 +0000 (UTC) (envelope-from glarkin@sourcehosting.net) Received: from sourcehosting.net (sourcehosting.net [204.8.45.67]) by mx1.freebsd.org (Postfix) with ESMTP id 9C39513C4B5 for ; Thu, 1 Mar 2007 18:10:54 +0000 (UTC) (envelope-from glarkin@sourcehosting.net) Received: (qmail 30696 invoked by uid 0); 1 Mar 2007 18:10:53 -0000 Received: from glarkin@sourcehosting.net by patches by uid 2033 with qmail-scanner-1.20rc1 (0.80 Clear:RC:1:. Processed in 0.163413 secs); 01 Mar 2007 18:10:53 -0000 X-Qmail-Scanner-Mail-From: glarkin@sourcehosting.net via patches X-Qmail-Scanner: 1.20rc1 (Clear:RC:1:. Processed in 0.163413 secs) Received: from 68-189-244-97.dhcp.oxfr.ma.charter.com (HELO Gregory-Larkins-Computer.local) (68.189.244.97) by 192.168.1.4 with SMTP; 1 Mar 2007 18:10:53 -0000 Received: from TWEETY (tweety.entropy.prv [192.168.1.9]) by Gregory-Larkins-Computer.local (Postfix) with ESMTP id 0E4DBDA3557; Thu, 1 Mar 2007 13:10:26 -0500 (EST) From: "Greg Larkin" To: "'Eric Anderson'" Date: Thu, 1 Mar 2007 13:09:57 -0500 Organization: SourceHosting.net, LLC Message-ID: <006f01c75c2c$d65109a0$0901a8c0@TWEETY> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6822 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 In-Reply-To: <45E6CDCA.5070505@freebsd.org> Importance: Normal Thread-Index: AcdcAXt//nZZaF7/SkKg6mbbM3ccygAKneFw Cc: freebsd-hackers@freebsd.org 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 Reply-To: glarkin@sourcehosting.net 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 18:10:55 -0000 >=20 >=20 > On 02/24/07 05:44, ghozzy wrote: > > Hi, > >=20 > > 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=20 > 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=20 > a CentOS 4.4 > >> host OS, and the CPU architecture is a Via C3 Nehemiah. =20 > Technically, > >> the VMServer software is not supposed to work on the Via=20 > 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=20 > 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=20 > well as a > >> custom ISO with a recompiled kernel, but I get the same=20 > error either > >> way. I also tried disabling ACPI during boot with no success. > >> > >> My custom kernel config is included below. My first=20 > 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?=20 > Thank you > >> for any help! > >> > >> Regards, > >> Greg Larkin > >=20 > > I have experienced similar problem in VMware Workstation=20 > under Windows XP > > on Via C3 Nehemiah processor since FreeBSD 5.x. In my case=20 > privileged > > instruction fault shot somewhere in rc boot process.=20 > Tracing down the cause of > > fault i found out that it was xstore instruction, which=20 > VMware did not emulate. > > It turned out to be the merit of new random generator=20 > appeared somewhere in > > 5.x, which detected the Via processor and tried to use its=20 > hardware random > > number generator. My workaround was to patch kernel to=20 > disable using this Via > > processor feature completely. The result was successful=20 > booting and running > > FreeBSD 5.x and 6.x under VMware on this machine. > >=20 > > Attached is the patch i use for 6.x kernel. >=20 >=20 > Can you both send me the dmesg of these machines? >=20 >=20 > Eric >=20 >=20 Hi Eric, Here is the dmesg output of the FreeBSD 6.2 virtual machine that has ghozzy's probe.c patch in place. His patch prevents the kernel from using the XSTORE instruction that VMware Server doesn't support. Let me know if you need any other information. I don't remember if I cc'd the list or not a few days ago when I emailed ghozzy, but his patch fixed the installation problem I was having, and I no longer get the instruction fault panic when the root filesystem is built. I haven't put the new VM through any strenuous testing yet, but I will be over the next few weeks, and I'll update the list if the system crashes again. Thank you, Greg Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-RELEASE-VMWAREC3 #0: Mon Feb 26 22:10:58 UTC 2007 root@vmware-image.entropy.prv:/usr/obj/usr/src/sys/GENERIC ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: VIA C3 Nehemiah+RNG (1000.35-MHz 686-class CPU) Origin =3D "CentaurHauls" Id =3D 0x693 Stepping =3D 3 =20 Features=3D0x380b33d real memory =3D 268435456 (256 MB) avail memory =3D 253083648 (241 MB) MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe8000000-0xebffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1050-0x105f at device 7.1 on pci0 ata0: on atapci0 ata1: on atapci0 pci0: at device 7.3 (no driver attached) pci0: at device 15.0 (no driver attached) mpt0: port 0x1080-0x10ff mem 0xec800000-0xec800fff irq 17 at device 16.0 on pci0 mpt0: [GIANT-LOCKED] mpt0: MPI Version=3D1.2.0.0 lnc0: port 0x1400-0x147f irq 18 at device 17.0 on pci0 lnc0: Attaching PCNet/PCI Ethernet adapter lnc0: [GIANT-LOCKED] lnc0: Ethernet address: 00:50:56:84:73:01 lnc0: if_start running deferred for Giant lnc0: PCnet-PCI acpi_acad0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff,0xdc000-0xdffff,0xe0000-0xe3fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1000350707 Hz quality 800 Timecounters tick every 1.000 msec ad0: 4096MB at ata0-master UDMA33 acd0: CDROM at ata1-master UDMA33 Waiting 5 seconds for SCSI devices to settle Trying to mount root from ufs:/dev/ad0s1a WARNING: / was not properly dismounted WARNING: /tmp was not properly dismounted WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted