https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291452
Bug ID: 291452
Summary: 15.0-RELEASE install with zfs root fails during
pkgbase
Product: Base System
Version: 15.0-RELEASE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Fresh 15.0-RELEASE auto-install on small vm (cpu=1, memory=256M, disk=20G)
fails due to memory limitation during pkgbase.
Reproduce:
- vm create -t freebsd-zvol pkgbase-install
- insert memstick install (1) and start vm
- follow defaults (Boot Installer, vt100, Install, default keymap, hostname,
Packages, Network, Auto, Auto (ZFS), zroot, Install, stripe, vtbd0, Yes,
base+kernel-dbg+lib32
→ "Fetching packages failed, try again?"
Expected result:
Default auto-install to complete successfully on small hardware.
Diagnosis:
# /tmp/bsdinstall_log
DEBUG: Running installation step: pkgbase
Child process pid=2082 terminated abnormally: Killed
# /var/log/messages
Dec 7 08:30:37 kernel: pid 2134 (pkg), jid 0, uid 0, was killed: failed to
reclaim memory
Installing pkgbase manually (2) fails:
Dec 7 08:52:25 kernel: pid 2071 (pkg), jid 0, uid 0, was killed: failed to
reclaim memory
A scripted install scenario (3) yielded during pkgbase:
GEOM_ELI: Crypto request failed (ENOMEM). gpt/inner.eli[WRITE(offset=61366272,
length=950272)]
GEOM_ELI: Crypto request failed (ENOMEM). gpt/inner.eli[WRITE(offset=62316544,
length=1028096)]
…
Mitigation:
- Install succeeds with at least memory=1G.
- Distribution Sets (legacy/non-pkgbase) works fine.
(1)
disk0_type="ahci-hd"
disk0_name="../.img/FreeBSD-15.0-RELEASE-amd64-memstick.img"
disk1_type="virtio-blk"
disk1_name="disk0"
disk1_dev="sparse-zvol"
(2)
pkg --rootdir /mnt --repo-conf-dir /usr/share/bsdinstall -o
IGNORE_OSVERSION=yes -y FreeBSD-set-minimal FreeBSD-kernel-generic
(3)
https://github.com/emtiu/freebsd-outerbase/blob/d6d9a0fe27765f65b5496cc5cffd4d47d2e3f2c7/outerbase-install.sh
--
You are receiving this mail because:
You are the assignee for the bug.