Ubuntu-16.04-amd64 - booting via NFS using overlayroot fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-initramfs-tools |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I have a setup where I need to boot hundreds of diskless clients with Ubuntu 16.04 via one NFS-server with one NFS-share.
Therefore I need a readonly-NFS-share which will be mounted by the clients with the help of an overlay-fs in readwrite-mode.
This exact setup was already achieved by me with other distributions but not with Ubuntu-16.04-amd64.
My setup is following:
- dhcp-server
- tftp-server (bootloader, vmlinuz, initrd)
- nfs-server (root file system)
- diskless-client
I installed Ubuntu-16.04-amd64 onto the nfs-server with debootstrap under /srv/nfs/xenial. I chrooted into this directory and installed linux-image-generic and overlayroot. After installation I edited /etc/overlayroo
overlayroot
and created a new initrd. The kernel and new initrd went to the tftp-server-
After I started the diskless-client with the help of the bootloader:
KERNEL /xenial/
APPEND initrd=
Now vmlinuz and initrd are loaded and starting the boot-process. Below the important part of the kernel-messages.
.
.
.
Begin: Running /scripts/
Begin: Mounting root file system ... Begin: Running /scripts/nfs-top ... done.
Begin: Running /scripts/
[ 4.655524] FS-Cache: Loaded
[ 4.692919] RPC: Registered named UNIX socket transport module.
[ 4.698926] RPC: Registered udp transport module.
[ 4.703435] RPC: Registered tcp transport module.
[ 4.705922] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 4.752465] FS-Cache: Netfs 'nfs' registered for caching
IP-Config: ens3 hardware address 52:54:00:89:cd:39 mtu 1500 DHCP
IP-Config: no response after 2 secs - giving up
IP-Config: ens3 hardware address 52:54:00:89:cd:39 mtu 1500 DHCP
IP-Config: ens3 guessed broadcast address 172.17.255.255
IP-Config: ens3 complete (dhcp from 172.17.0.1):
address: 172.17.1.1 broadcast: 172.17.255.255 netmask: 255.255.0.0
gateway: 0.0.0.0 dns0 : 0.0.0.0 dns1 : 0.0.0.0
rootserver: 172.17.0.1 rootpath: /
filename : lpxelinux.0
NFS over TCP not available from 172.17.0.1
Begin: Retrying nfs mount ... NFS over TCP not available from 172.17.0.1
done.
Begin: Retrying nfs mount ... NFS over TCP not available from 172.17.0.1
done.
Begin: Retrying nfs mount ... NFS over TCP not available from 172.17.0.1
done.
Begin: Retrying nfs mount ... NFS over TCP not available from 172.17.0.1
done.
Begin: Retrying nfs mount ... done.
done.
Begin: Running /scripts/nfs-bottom ... done.
Begin: Running /scripts/
/scripts/
Failure: overlayroot: failed to modify /etc/fstab (step 1)
/scripts/
Failure: overlayroot: failed to modify /etc/fstab (step 2)
Success: overlayroot: configured root with 'tmpfs' using overlay per /dev/nfs/
done.
[ 21.340149] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[ 21.349077] systemd[1]: Detected virtualization qemu.
[ 21.354666] systemd[1]: Detected architecture x86-64.
Welcome to Ubuntu 16.04.5 LTS!
.
.
.
After kernel messages the login prompt appears, but when entering the username and password, no authentication can be done.
Ubuntu 16.04.5 LTS nfs-image ttyS0
nfs-image login: g
Passwort:
Login incorrect
I repeated this setup with a debootstrapped root-file-system as well as one created with ordinary installer. Both same results. Further I installed SSH-server to login remotly but neither this worked. I can't see inside the machien what is happening so it's unlikely to find a solution this way.
For completeness I attach the full kernel log:
Loading /xenial/ vmlinuz- 4.4.0-131- generic. .. ok initrd. img-4.4. 0-131-generic. ..ok lgw01-amd64- 015) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~ 16.04.10) ) #157-Ubuntu SMP Thu Jul 12 15:51:36 UTC 2018 (Ubuntu 4.4.0-131. 157-generic 4.4.134) /xenial/ vmlinuz- 4.4.0-131- generic initrd= /xenial/ initrd. img-4.4. 0-131-generic root=/dev/nfs nfsroot= 172.17. 0.1:/mnt ip=dhcp console=tty1 console= ttyS0,115200n8 000-0x000000000 009fbff] usable c00-0x000000000 009ffff] reserved 000-0x000000000 00fffff] reserved 000-0x000000003 ffdffff] usable 000-0x000000003 fffffff] reserved 000-0x00000000f effffff] reserved 000-0x00000000f fffffff] reserved 0x000f6a6f] mapped at [ffff8800000f6a60] 0x3feb9fff] 000-0x000000003 ffdffff] 0x3ffdffff] 000-0x00000. ..
Loading /xenial/
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.0-131-generic (buildd@
[ 0.000000] Command line: BOOT_IMAGE=
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Legacy x87 FPU detected.
[ 0.000000] x86/fpu: Using 'eager' FPU context switches.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000
[ 0.000000] BIOS-e820: [mem 0x000000000009f
[ 0.000000] BIOS-e820: [mem 0x00000000000f0
[ 0.000000] BIOS-e820: [mem 0x0000000000100
[ 0.000000] BIOS-e820: [mem 0x000000003ffe0
[ 0.000000] BIOS-e820: [mem 0x00000000feffc
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.8 present.
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] e820: last_pfn = 0x3ffe0 max_arch_pfn = 0x400000000
[ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WC UC- WT
[ 0.000000] found SMP MP-table at [mem 0x000f6a60-
[ 0.000000] Scanning 1 areas for low memory corruption
[ 0.000000] RAMDISK: [mem 0x3d8d4000-
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000000F6880 000014 (v00 BOCHS )
[ 0.000000] ACPI: RSDT 0x000000003FFE1551 00002C (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001)
[ 0.000000] ACPI: FACP 0x000000003FFE13E5 000074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001)
[ 0.000000] ACPI: DSDT 0x000000003FFE0040 0013A5 (v01 BOCHS BXPCDSDT 00000001 BXPC 00000001)
[ 0.000000] ACPI: FACS 0x000000003FFE0000 000040
[ 0.000000] ACPI: APIC 0x000000003FFE14D9 000078 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001)
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at [mem 0x0000000000000
[ 0.000000] NODE_DATA(0) allocated [mem 0x3ffdb000-
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 0:3ffd3001, primary cpu clock
[ 0.000000] kvm-clock: using sched offset of 696260153027 cycles
[ 0.000000] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000001