using md-mounted ISO as NFS root for PXE booting and installing

Andrew N. Below defan at
Thu Jan 11 16:58:08 UTC 2007


I have 6.1-STABLE FreeBSD box I want to use as network
boot and install server for PXE clients.

At this moment I'm experimenting with 4.11-RELEASE-i386-disc1-gnome.iso
and 6.2-RC2-i386-disc1.iso images.

Related DHCP config section is:
  host netboot {
    hardware ethernet 00:04:**;   
    filename "boot/pxeboot";
    option root-path "";

Exports (/etc/exports):
/mnt/netboot -network 192.168.13 -mask 255.255.255.

TFTP is running under xinetd with "-l /mnt/netboot" options.

Then I mount ISO image to /mnt/netboot with mdconfig and mount_cd9660,
and boot PXE client.

All is fine if we are booting into 4.11 (root mounted from MFS,
sysintall runs and we able to install OS to local disks via NFS).

But in case of 6.2-RC2 root mounted from NFS, not MFS: on / (nfs)
devfs on /dev (devfs, local)
/dev/md1 on /var (ufs, local)
/dev/md2 on /tmp (ufs, local)

and I can see just another "Amnesiac" system w/o root password etc.

Where is my mistake?

I attached dmesg output for 6.2-RC2 boot to this letter.

Andrew N. Below
-------------- next part --------------
Copyright (c) 1992-2006 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-RC2 #0: Sun Dec 24 23:17:34 UTC 2006
    root at
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 3.00GHz (2992.51-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf43  Stepping = 3
  AMD Features=0x20100000<NX,LM>
  Logical CPUs per core: 2
real memory  = 2147352576 (2047 MB)
avail memory = 2092195840 (1995 MB)
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 24-47 on motherboard
ioapic2 <Version 2.0> irqs 48-71 on motherboard
kbd1 at kbdmux0
ath_hal: (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <A M I OEMRSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b 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
pci0: <unknown> at device 0.1 (no driver attached)
pci0: <base peripheral> at device 1.0 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 2.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 0.0 on pci1
pci2: <ACPI PCI bus> on pcib2
mpt0: <LSILogic 1030 Ultra4 Adapter> port 0xc800-0xc8ff mem 0xfced0000-0xfcedffff,0xfcec0000-0xfcecffff irq 26 at device 5.0 on pci2
mpt0: MPI Version=
mpt0: Capabilities: ( RAID-1E RAID-1 SAFTE )
mpt0: 0 Active Volumes (1 Max)
mpt0: 0 Hidden Drive Members (6 Max)
mpt1: <LSILogic 1030 Ultra4 Adapter> port 0xcc00-0xccff mem 0xfcef0000-0xfcefffff,0xfcee0000-0xfceeffff irq 25 at device 5.1 on pci2
mpt1: MPI Version=
mpt1: Capabilities: ( RAID-1E RAID-1 SAFTE )
mpt1: 0 Active Volumes (1 Max)
mpt1: 0 Hidden Drive Members (6 Max)
pcib3: <ACPI PCI-PCI bridge> at device 0.2 on pci1
pci3: <ACPI PCI bus> on pcib3
em0: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port 0xdc00-0xdc3f mem 0xfcfa0000-0xfcfbffff irq 54 at device 4.0 on pci3
em0: Ethernet address: 00:04:23:c9:ff:f6
em1: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port 0xdc80-0xdcbf mem 0xfcfe0000-0xfcffffff irq 55 at device 4.1 on pci3
em1: Ethernet address: 00:04:23:c9:ff:f7
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci4: <ACPI PCI bus> on pcib4
pci4: <display, VGA> at device 12.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH5 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_button0: <Power Button> 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]
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
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xca7ff,0xca800-0xce7ff,0xce800-0xcf7ff,0xcf800-0xd07ff,0xdd800-0xe17ff on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2992511483 Hz quality 800
Timecounters tick every 1.000 msec
Waiting 5 seconds for SCSI devices to settle
md0: Preloaded image </boot/mfsroot> 4423680 bytes at 0xc0af64c0
ses0 at mpt0 bus 0 target 6 lun 0
ses0: <ESG-SHV SCA HSBP M30 1.08> Fixed Processor SCSI-2 device 
ses0: 3.300MB/s transfers
ses0: SAF-TE Compliant Device
da0 at mpt0 bus 0 target 0 lun 0
da0: <SEAGATE ST318404LC 0006> Fixed Direct Access SCSI-3 device 
da0: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
Trying to mount root from nfs:

More information about the freebsd-stable mailing list