From 7f4aae922d2e72d6b7dfd82ddef6cdcedeac470e Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Thu, 27 Aug 2026 23:45:09 -0400 Subject: [PATCH] Fixed the ZFS config on freebsd 15 --- FreeBSD/freebsd-15.pkr.hcl | 2 +- http/freebsd-15-installerconfig | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/FreeBSD/freebsd-15.pkr.hcl b/FreeBSD/freebsd-15.pkr.hcl index fc656cd..2507060 100644 --- a/FreeBSD/freebsd-15.pkr.hcl +++ b/FreeBSD/freebsd-15.pkr.hcl @@ -29,7 +29,7 @@ source "proxmox-iso" "freebsd-15" { "mdmfs -s 100m md /tmp", # mount a writable /tmp memory disk "mdmfs -s 100m md /var/db", # mount a writable /var memory disk "dhclient vtnet0", # bring up network - "fetch -o /tmp/instaproxmox_hostllerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/freebsd-15-installerconfig", # grab the installerconfig + "fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/freebsd-15-installerconfig", # grab the installerconfig "bsdinstall script /tmp/installerconfig" # execute bsdinstall with fetched config ] diff --git a/http/freebsd-15-installerconfig b/http/freebsd-15-installerconfig index 9f22fcb..5ed5874 100644 --- a/http/freebsd-15-installerconfig +++ b/http/freebsd-15-installerconfig @@ -7,10 +7,18 @@ KEYMAP="us.kbd" HOSTNAME="freebsd" DISTRIBUTIONS="kernel.txz base.txz" +# FreeBSD Distribution Mirror +export BSDINSTALL_DISTSITE="http://download.freebsd.org/ftp/releases/amd64/15.1-CURRENT" + # Guided ZFS Installation Parameters -ZFSBOOT_DISKS="da0" -ZFSBOOT_VDEV_TYPE="stripe" -ZFSBOOT_CONFIRM_POOL_CREATE="YES" +export nonInteractive="YES" +export ZFSBOOT_POOL_NAME="zroot" +export ZFSBOOT_DISKS="da0" +export ZFSBOOT_VDEV_TYPE="stripe" +export ZFSBOOT_BOOT_METHOD="UEFI" +export ZFSBOOT_PARTITION_SCHEME="GPT" +export ZFSBOOT_SWAP_SIZE="2g" +export ZFSBOOT_CONFIRM_POOL_CREATE="0" # Timezone Configuration (US/Eastern) TIMEZONE="America/New_York" @@ -28,6 +36,11 @@ bsdinstall_services="sshd local_unbound" # Network configuration for the installed system echo 'ifconfig_DEFAULT="DHCP"' >> /etc/rc.conf +cat > /etc/resolv.conf << 'DNS' +nameserver 1.1.1.1 +nameserver 1.0.0.1 +DNS + # Set Root Password ('packer') echo "packer" | pw usermod root -h 0