Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Mar 2007 13:09:57 -0500
From:      "Greg Larkin" <glarkin@sourcehosting.net>
To:        "'Eric Anderson'" <anderson@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   RE: Instruction fault panic while installing 6.2 on VMware Server
Message-ID:  <006f01c75c2c$d65109a0$0901a8c0@TWEETY>
In-Reply-To: <45E6CDCA.5070505@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>=20
>=20
> On 02/24/07 05:44, ghozzy wrote:
> > Hi,
> >=20
> > On 2/23/07, Greg Larkin <glarkin@sourcehosting.net> 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: <PTLTD  	 APIC  >
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<FPU,DE,PSE,TSC,MSR,CX8,APIC,MTRR,PGE,CMOV,MMX,FXSR,
SSE>
real memory  =3D 268435456 (256 MB)
avail memory =3D 253083648 (241 MB)
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413,
RF5413)
acpi0: <PTLTD   RSDT> 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: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem
0xe8000000-0xebffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1050-0x105f at device 7.1 on
pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <bridge> at device 7.3 (no driver attached)
pci0: <display, VGA> at device 15.0 (no driver attached)
mpt0: <LSILogic 1030 Ultra4 Adapter> 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: <PCNet/PCI Ethernet adapter> 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: <AC Adapter> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> 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: <floppy drive controller> 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: <ISA Option ROMs> at iomem
0xc0000-0xc7fff,0xc8000-0xc8fff,0xdc000-0xdffff,0xe0000-0xe3fff on
isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
Timecounter "TSC" frequency 1000350707 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 4096MB <VMware Virtual IDE Hard Drive 00000001> at ata0-master
UDMA33
acd0: CDROM <VMware Virtual IDE CDROM Drive/00000001> 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006f01c75c2c$d65109a0$0901a8c0>