NetBSD Problem Report #50333

From www@NetBSD.org  Mon Oct 12 22:56:45 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E3666A5B2E
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 12 Oct 2015 22:56:45 +0000 (UTC)
Message-Id: <20151012225644.89D87A6552@mollari.NetBSD.org>
Date: Mon, 12 Oct 2015 22:56:44 +0000 (UTC)
From: aaron@zadzmo.org
Reply-To: aaron@zadzmo.org
To: gnats-bugs@NetBSD.org
Subject: Netboot fails when mounting root filesystem on IPv6 enabled network
X-Send-Pr-Version: www-1.0

>Number:         50333
>Category:       misc
>Synopsis:       Netboot fails when mounting root filesystem on IPv6 enabled network
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 12 23:00:00 +0000 2015
>Originator:     Aaron B
>Release:        6.1.5
>Organization:
>Environment:
NetBSD xd-build 7.0 NetBSD 7.0 (XEN3_DOMU.201509250726Z) amd64

NetBSD xd-syndev 6.1.5 NetBSD 6.1.5 (XEN3_DOMU) amd64

NetBSD focus 6.1.5 NetBSD 6.1.5 (NETRAT1) #0: Wed Dec 24 19:14:16 EST 2014  root@focus:/usr/src/sys/arch/sparc64/compile/NETRAT1 sparc64

>Description:
I originally found this on NetBSD 6.1. I've confirmed it still exists on 7.0 as well; also it happens on sparc, sparc64, and amd64. The remote file server is Solaris 10/sparc. The entire network is dual stack IPv4/IPv6.

Example contents of /etc/fstab:

endure:/netfs/xd-build  /       nfs     rw,intr,tcp,nfsv3       0       0



During the boot process, the system hangs forever at /etc/rc.d/root with the following output:

root on endure:/netfs/xd-build
root file system type: nfs
warning: no /dev/console
Mon Oct 12 18:38:49 EDT 2015
Not checking /: fs_passno = 0 in /etc/fstab
mount_nfs: rpcbind to nfs on server: RPC: Port mapper failure - RPC: Unable to send



CTL-C allows it to continue normally. I believe the kernel is finding the IPv6 address via DNS and attempting to use that, but IPv6 has not yet been configured at this point in the boot process.

>How-To-Repeat:
Attempt to netboot NetBSD 6.1 or 7.0 on a dual stack IPv4/IPv6 network.
>Fix:
Commenting out the 'umount' and 'mount' lines in /etc/rc.d/root allows the system to boot normally, and in 7.0 at least / gets remounted in /etc/rc.d/mountall.

Adding the file server's IPv4 address in /etc/hosts allows the system to boot normally, but disables IPv6 communication with the file server after booting.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.