-   Solaris / OpenSolaris (
-   -   boot net: cannot open neither boot_archive nor miniroot (

AlucardZero 09-06-2012 05:21 PM

boot net: cannot open neither boot_archive nor miniroot
There are a million results for this error on Google, seemingly all from the same two discussion threads, and they don't help.

Sunfire V210
OpenBoot 4.30.4.a

Jumpstart w/ boot helper server
Main jumpstart server (sunjump) set up from Solaris 10u10 (08/11) DVD iso with:

./setup_install_server /OSImages/Solaris_10_0811
Boot helper server (sboot1) mounted sunjump:/OSImages/Solaris_10_0811 then cd'd to Tools then set up with:

./setup_install_server -b /netboot/Solaris_10
Client (sqa1) set up on sboot1 with:

/netboot/Solaris_10/Solaris_10/Tools/add_install_client  -s sunjump:/OSImages/Solaris_10_0811 -e 0:3:ba:c9:73:39 sqa1 sun4u
Booting net on sqa1 yields:

Rebooting with command: boot net
Boot device: /pci@1f,700000/network@2  File and args:
1000 Mbps FDX Link up
Timeout waiting for ARP/RARP packet
Timeout waiting for ARP/RARP packet
4000 1000 Mbps FDX Link up

Requesting Internet address for 0:3:ba:c9:73:39
cannot open neither boot_archive nor miniroot
Enter filename [boot_archive]:

Netbooting from Solaris 9 or 8 image via sboot1 and sunjump works. I've also netbooted Solaris 10 in the past successfully, probably with older Solaris 10 versions.

The NFS permissions for /netboot/Solaris_10/Solaris_10/Tools/Boot are ro,anon=0 (so wide open).

The Boot directory contains on sboot1:

$ ls /netboot/Solaris_10/Solaris_10/Tools/Boot
X.cpio.bz2                  lu.platforms                platform
X_small.cpio.bz2            netmask                      usr_sbin_install_d.cpio.bz2
lu.cpio.bz2                  pkg_db.cpio.bz2

Sure enough, no boot_archive nor miniroot file. Why?

AlucardZero 09-11-2012 10:54 AM

sparc.miniroot exists here:

$ ls /netboot/Solaris_10_0811/boot/             
hsfs.bootblock  sparc.miniroot

However that's outside of the directory structure that gets NFS exported.

boot_archive exists in the platform subdirs but is a symlink to outside the exported dir! setup_install_server only exports .../Solaris_10/Tools/Boot/ .

$ ls -l /netboot/Solaris_10_0811/Solaris_10/Tools/Boot/platform/sun4u/boot_archive
lrwxrwxrwx  1 root    root          34 Sep 10 09:48 /netboot/Solaris_10_0811/Solaris_10/Tools/Boot/platform/sun4u/boot_archive -> ../../../../../boot/sparc.miniroot


# cd Solaris_10/Tools/Boot/platform
# cp ../../../../boot/sparc.miniroot .
# for i in $(ls -d sun*); do cd $i; rm boot_archive; ln -s ../sparc.miniroot boot_archive; cd ..; done

This places sparc.miniroot in a location that IS exported and fixes the symlinks to point at it.

All times are GMT -5. The time now is 09:12 AM.