LES BSD Thread!

1235713

Comments

  • Not_OlesNot_Oles Provider
    edited September 2024

    @cmeerw said: At least for me, everything seems to be working as expected.

    It did set up the network correctly (both IPv4 and IPv6) and also added the SSH key to the root user.

    Same here! Thanks @cmeerw! Thanks @linveo!

    linveo# dmesg
    [     1.000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
    [     1.000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
    [     1.000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
    [     1.000000]     2024
    [     1.000000]     The NetBSD Foundation, Inc.  All rights reserved.
    [     1.000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
    [     1.000000]     The Regents of the University of California.  All rights reserved.
    
    [     1.000000] NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024
    [     1.000000]         [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
    [     1.000000] total memory = 4095 MB
    [     1.000000] avail memory = 3935 MB
    [     1.000000] timecounter: Timecounters tick every 10.000 msec
    [     1.000000] Kernelized RAIDframe activated
    [     1.000000] timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
    [     1.000004] mainbus0 (root)
    [     1.000004] ACPI: RSDP 0x00000000000F5C40 000014 (v00 BOCHS )
    [     1.000004] ACPI: RSDT 0x00000000BFFE2581 000034 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
    [     1.000004] ACPI: FACP 0x00000000BFFE203D 000074 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
    [     1.000004] ACPI: DSDT 0x00000000BFFDDCC0 00437D (v01 BOCHS  BXPC     00000001 BXPC 00000001)
    [     1.000004] ACPI: FACS 0x00000000BFFDDC80 000040
    [     1.000004] ACPI: APIC 0x00000000BFFE20B1 000470 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
    [     1.000004] ACPI: HPET 0x00000000BFFE2521 000038 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
    [     1.000004] ACPI: WAET 0x00000000BFFE2559 000028 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
    [     1.000004] ACPI: 1 ACPI AML tables successfully acquired and loaded
    [     1.000004] ioapic0 at mainbus0 apid 0: pa 0xfec00000, version 0x11, 24 pins
    [     1.000004] cpu0 at mainbus0 apid 0
    [     1.000004] cpu0: Use mfence to serialize rdtsc
    [     1.000004] cpu0: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
    [     1.000004] cpu0: node 0, package 0, core 0, smt 0
    [     1.000004] cpu1 at mainbus0 apid 1
    [     1.000004] cpu1: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
    [     1.000004] cpu1: node 0, package 1, core 0, smt 0
    [     1.000004] acpi0 at mainbus0: Intel ACPICA 20221020
    [     1.000004] acpi0: X/RSDT: OemId <BOCHS ,BXPC    ,00000001>, AslId <BXPC,00000001>
    [     1.000004] LNKS: ACPI: Found matching pin for 0.1.INTA at func 3: 9
    [     1.000004] LNKD: ACPI: Found matching pin for 0.1.INTD at func 2: 11
    [     1.000004] LNKC: ACPI: Found matching pin for 0.3.INTA at func 0: 11
    [     1.000004] LNKD: ACPI: Found matching pin for 0.4.INTA at func 0: 11
    [     1.000004] LNKA: ACPI: Found matching pin for 0.5.INTA at func 0: 10
    [     1.000004] LNKB: ACPI: Found matching pin for 0.6.INTA at func 0: 10
    [     1.000004] LNKC: ACPI: Found matching pin for 0.7.INTA at func 0: 11
    [     1.000004] LNKD: ACPI: Found matching pin for 0.8.INTA at func 0: 11
    [     1.000004] LNKA: ACPI: Found matching pin for 0.9.INTA at func 0: 0
    [     1.000004] LNKB: ACPI: Found matching pin for 0.10.INTA at func 0: 0
    [     1.000004] LNKC: ACPI: Found matching pin for 0.11.INTA at func 0: 0
    [     1.000004] acpi0: SCI interrupting at int 9
    [     1.000004] acpi0: fixed power button present
    [     1.000004] timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
    [     1.004644] hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
    [     1.004644] timecounter: Timecounter "hpet0" frequency 100000000 Hz quality 2000
    [     1.005528] qemufwcfg0 at acpi0 (FWCF, QEMU0002): io 0x510-0x51b
    [     1.005528] qemufwcfg0: <QEMU>
    [     1.005528] com0 at acpi0 (COM1, PNP0501-1): io 0x3f8-0x3ff irq 4
    [     1.005528] com0: ns16550a, 16-byte FIFO
    [     1.005528] pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
    [     1.005528] pckbc2 at acpi0 (MOU, PNP0F13) (aux port): irq 12
    [     1.005528] fdc0 at acpi0 (FDC0, PNP0700): io 0x3f2-0x3f5,0x3f7 irq 6 drq 2
    [     1.005528] ACPI: Enabled 2 GPEs in block 00 to 0F
    [     1.005528] pckbd0 at pckbc1 (kbd slot)
    [     1.005528] pckbc1: using irq 1 for kbd slot
    [     1.005528] wskbd0 at pckbd0: console keyboard
    [     1.005528] pms0 at pckbc1 (aux slot)
    [     1.005528] pckbc1: using irq 12 for aux slot
    [     1.005528] wsmouse0 at pms0 mux 0
    [     1.005528] pci0 at mainbus0 bus 0: configuration mode 1
    [     1.005528] pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
    [     1.005528] pchb0 at pci0 dev 0 function 0: Intel 82441FX (PMC) PCI and Memory Controller (rev. 0x02)
    [     1.005528] pcib0 at pci0 dev 1 function 0: Intel 82371SB (PIIX3) PCI-ISA Bridge (rev. 0x00)
    [     1.005528] piixide0 at pci0 dev 1 function 1: Intel 82371SB IDE Interface (PIIX3) (rev. 0x00)
    [     1.005528] piixide0: bus-master DMA support present
    [     1.005528] piixide0: primary channel wired to compatibility mode
    [     1.005528] piixide0: primary channel interrupting at ioapic0 pin 14
    [     1.005528] atabus0 at piixide0 channel 0
    [     1.005528] piixide0: secondary channel wired to compatibility mode
    [     1.005528] piixide0: secondary channel interrupting at ioapic0 pin 15
    [     1.005528] atabus1 at piixide0 channel 1
    [     1.005528] uhci0 at pci0 dev 1 function 2: Intel 82371SB (PIIX3) USB Host Controller (rev. 0x01)
    [     1.005528] uhci0: interrupting at ioapic0 pin 11
    [     1.005528] usb0 at uhci0: USB revision 1.0
    [     1.005528] piixpm0 at pci0 dev 1 function 3: Intel 82371AB (PIIX4) Power Management Controller (rev. 0x03)
    [     1.005528] timecounter: Timecounter "piixpm0" frequency 3579545 Hz quality 1000
    [     1.005528] piixpm0: 24-bit timer
    [     1.005528] piixpm0: interrupting at ioapic0 pin 9
    [     1.005528] iic0 at piixpm0 port 0: I2C bus
    [     1.005528] vga0 at pci0 dev 2 function 0: vendor 1234 product 1111 (rev. 0x02)
    [     1.005528] wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
    [     1.005528] wsmux1: connecting to wsdisplay0
    [     1.005528] drm at vga0 not configured
    [     1.005528] virtio0 at pci0 dev 3 function 0
    [     1.005528] virtio0: network device (id 1, rev. 0x00)
    [     1.005528] vioif0 at virtio0: features: 0x31870020<EVENT_IDX,INDIRECT_DESC,NOTIFY_ON_EMPTY,CTRL_MAC,CTRL_RX,CTRL_VQ,STATUS,MAC>
    [     1.005528] vioif0: Ethernet address 00:56:e3:cf:73:01
    [     1.005528] virtio0: allocated 20480 byte for virtqueue 0 for rx0, size 256
    [     1.005528] virtio0: using 8192 byte (512 entries) indirect descriptors
    [     1.005528] virtio0: allocated 20480 byte for virtqueue 1 for tx0, size 256
    [     1.005528] virtio0: using 8192 byte (512 entries) indirect descriptors
    [     1.005528] virtio0: allocated 8192 byte for virtqueue 2 for control, size 64
    [     1.005528] virtio0: config interrupting at msix0 vec 0
    [     1.005528] virtio0: queues interrupting at msix0 vec 1
    [     1.005528] virtio1 at pci0 dev 4 function 0
    [     1.005528] virtio1: SCSI device (id 8, rev. 0x00)
    [     1.005528] vioscsi0 at virtio1: features: 0x10000000<INDIRECT_DESC>
    [     1.005528] virtio1: allocated 86016 byte for virtqueue 0 for control, size 256
    [     1.005528] virtio1: using 73728 byte (4608 entries) indirect descriptors
    [     1.005528] virtio1: allocated 86016 byte for virtqueue 1 for event, size 256
    [     1.005528] virtio1: using 73728 byte (4608 entries) indirect descriptors
    [     1.005528] virtio1: allocated 86016 byte for virtqueue 2 for request, size 256
    [     1.005528] virtio1: using 73728 byte (4608 entries) indirect descriptors
    [     1.005528] vioscsi0: cmd_per_lun 128 qsize 256 seg_max 254 max_target 255 max_lun 16383
    [     1.005528] virtio1: config interrupting at msix1 vec 0
    [     1.005528] virtio1: queues interrupting at msix1 vec 1
    [     1.005528] scsibus0 at vioscsi0: 256 targets, 16384 luns per target
    [     1.005528] ahcisata0 at pci0 dev 5 function 0: Intel 82801I AHCI SATA Controller w/ 6 ports (rev. 0x02)
    [     1.005528] ahcisata0: 64-bit DMA
    [     1.005528] ahcisata0: AHCI revision 1.0, 6 ports, 32 slots, CAP 0xc0141f05<SAM,ISS=0x1=Gen1,SNCQ,S64A>
    [     1.005528] ahcisata0: interrupting at msi2 vec 0
    [     1.005528] atabus2 at ahcisata0 channel 0
    [     1.005528] atabus3 at ahcisata0 channel 1
    [     1.005528] atabus4 at ahcisata0 channel 2
    [     1.005528] atabus5 at ahcisata0 channel 3
    [     1.005528] atabus6 at ahcisata0 channel 4
    [     1.005528] atabus7 at ahcisata0 channel 5
    [     1.005528] virtio2 at pci0 dev 6 function 0
    [     1.005528] virtio2: console device (id 3, rev. 0x00)
    [     1.005528] virtio2: autoconfiguration error: no matching child driver; not configured
    [     1.005528] virtio3 at pci0 dev 7 function 0
    [     1.005528] virtio3: block device (id 2, rev. 0x00)
    [     1.005528] ld0 at virtio3: features: 0x10000a54<INDIRECT_DESC,CONFIG_WCE,FLUSH,BLK_SIZE,GEOMETRY,SEG_MAX>
    [     1.005528] virtio3: allocated 1060864 byte for virtqueue 0 for I/O request, size 256
    [     1.005528] virtio3: using 1048576 byte (65536 entries) indirect descriptors
    [     1.005528] virtio3: config interrupting at msix3 vec 0
    [     1.005528] virtio3: queues interrupting at msix3 vec 1
    [     1.005528] ld0: 25600 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 52428800 sectors
    [     1.005528] virtio4 at pci0 dev 8 function 0
    [     1.005528] virtio4: memory balloon device (id 5, rev. 0x00)
    [     1.005528] viomb0 at virtio4: features: 0x10000000<INDIRECT_DESC>
    [     1.005528] virtio4: allocated 8192 byte for virtqueue 0 for inflate, size 128
    [     1.005528] virtio4: allocated 8192 byte for virtqueue 1 for deflate, size 128
    [     1.005528] virtio4: interrupting at ioapic0 pin 11
    [     1.005528] virtio5 at pci0 dev 9 function 0
    [     1.005528] virtio5: SCSI device (id 8, rev. 0x00)
    [     1.005528] virtio5: autoconfiguration error: can't map i/o space
    [     1.005528] virtio5: autoconfiguration error: cannot attach (5)
    [     1.005528] virtio6 at pci0 dev 10 function 0
    [     1.005528] virtio6: SCSI device (id 8, rev. 0x00)
    [     1.005528] virtio6: autoconfiguration error: can't map i/o space
    [     1.005528] virtio6: autoconfiguration error: cannot attach (5)
    [     1.005528] virtio7 at pci0 dev 11 function 0
    [     1.005528] virtio7: SCSI device (id 8, rev. 0x00)
    [     1.005528] virtio7: autoconfiguration error: can't map i/o space
    [     1.005528] virtio7: autoconfiguration error: cannot attach (5)
    [     1.005528] isa0 at pcib0
    [     1.005528] attimer0 at isa0 port 0x40-0x43
    [     1.005528] pcppi0 at isa0 port 0x61
    [     1.005528] spkr0 at pcppi0: PC Speaker
    [     1.005528] wsbell at spkr0 not configured
    [     1.005528] midi0 at pcppi0: PC speaker
    [     1.005528] sysbeep0 at pcppi0
    [     1.005528] attimer0: attached to pcppi0
    [     1.005528] acpicpu0 at cpu0: ACPI CPU
    [     1.005528] acpicpu0: C1: HLT, lat   0 us, pow     0 mW
    [     1.005528] vmt0 at cpu0
    [     1.005528] vmt0: UUID: f376ab45-696e-42c4-a751-e3191151611e
    [     1.005528] vmware: open failed, eax=0xffffffff, ecx=0x1e, edx=0x5658
    [     1.005528] vmt0: autoconfiguration error: failed to open backdoor RPC channel (TCLO protocol)
    [     1.005528] acpicpu1 at cpu1: ACPI CPU
    [     1.005528] timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
    [     1.155014] IPsec: Initialized Security Association Processing.
    [     1.165010] ld0: GPT GUID: ac26fc1e-7fec-44ea-b1cb-5364f733b493
    [     1.165010] dk0 at ld0: "EFI system", 8192 blocks at 128, type: msdos
    [     1.165010] dk1 at ld0: "netbsd-swap", 1048576 blocks at 8320, type: swap
    [     1.165010] dk2 at ld0: "netbsd-root", 1302400 blocks at 1056896, type: ffs
    [     1.175007] uhub0 at usb0: NetBSD (0x0000) UHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
    [     1.175007] uhub0: 2 ports with 2 removable, self powered
    [     1.245014] ahcisata0 port 0: device present, speed: 1.5Gb/s
    [     2.754964] atapibus0 at atabus2: 1 targets
    [     2.764951] cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00005, 2.5+> cdrom removable
    [     2.764951] cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100), NCQ (32 tags)
    [     2.764951] cd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) (using DMA), NCQ (31 tags)
    [     2.874953] uhidev0 at uhub0 port 1 configuration 1 interface 0
    [     2.874953] uhidev0: QEMU (0x0627) QEMU USB Tablet (0x0001), rev 2.00/0.00, addr 2, iclass 3/0
    [     2.874953] ums0 at uhidev0: 3 buttons and Z dir
    [     2.874953] wsmouse1 at ums0 mux 0
    [     2.884958] swwdog0: software watchdog initialized
    [     2.884958] WARNING: 8 errors while detecting hardware; check system log.    # What's with this?
    [     2.884958] boot device: ld0
    [     2.884958] root on dk2 dumps on dk1
    [     2.894947] root file system type: ffs
    [     2.905333] kern.module.path=/stand/amd64/10.0/modules
    [     3.684917] dk1 at ld0 (netbsd-swap) deleted
    [     3.684917] dk0 at ld0 (EFI system) deleted
    [     3.684917] ld0: GPT GUID: ac26fc1e-7fec-44ea-b1cb-5364f733b493
    [     3.684917] dk0 at ld0: "EFI system", 8192 blocks at 128, type: msdos
    [     3.684917] dk1 at ld0: "netbsd-swap", 1048576 blocks at 8320, type: swap
    [     3.684917] dk2 at ld0: "netbsd-root", 51371776 blocks at 1056896, type: ffs
    [    30.963838] rebooting...                                                           # Why the reboot?
    [     1.000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
    [     1.000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
    [     1.000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
    [     1.000000]     2024
    [     1.000000]     The NetBSD Foundation, Inc.  All rights reserved.
    [     1.000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
    [     1.000000]     The Regents of the University of California.  All rights reserved.
    
    [     1.000000] NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024
    [     1.000000]         [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
    [     1.000000] total memory = 4095 MB
    [     1.000000] avail memory = 3935 MB
    [     1.000000] timecounter: Timecounters tick every 10.000 msec
    [     1.000000] Kernelized RAIDframe activated
    [     1.000000] timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
    [     1.000004] mainbus0 (root)
    [     1.000004] ACPI: RSDP 0x00000000000F5C40 000014 (v00 BOCHS )
    [     1.000004] ACPI: RSDT 0x00000000BFFE2581 000034 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
    [     1.000004] ACPI: FACP 0x00000000BFFE203D 000074 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
    [     1.000004] ACPI: DSDT 0x00000000BFFDDCC0 00437D (v01 BOCHS  BXPC     00000001 BXPC 00000001)
    [     1.000004] ACPI: FACS 0x00000000BFFDDC80 000040
    [     1.000004] ACPI: APIC 0x00000000BFFE20B1 000470 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
    [     1.000004] ACPI: HPET 0x00000000BFFE2521 000038 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
    [     1.000004] ACPI: WAET 0x00000000BFFE2559 000028 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
    [     1.000004] ACPI: 1 ACPI AML tables successfully acquired and loaded
    [     1.000004] ioapic0 at mainbus0 apid 0: pa 0xfec00000, version 0x11, 24 pins
    [     1.000004] cpu0 at mainbus0 apid 0
    [     1.000004] cpu0: Use mfence to serialize rdtsc
    [     1.000004] cpu0: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
    [     1.000004] cpu0: node 0, package 0, core 0, smt 0
    [     1.000004] cpu1 at mainbus0 apid 1
    [     1.000004] cpu1: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
    [     1.000004] cpu1: node 0, package 1, core 0, smt 0
    [     1.000004] acpi0 at mainbus0: Intel ACPICA 20221020
    [     1.000004] acpi0: X/RSDT: OemId <BOCHS ,BXPC    ,00000001>, AslId <BXPC,00000001>
    [     1.000004] LNKS: ACPI: Found matching pin for 0.1.INTA at func 3: 9
    [     1.000004] LNKD: ACPI: Found matching pin for 0.1.INTD at func 2: 11
    [     1.000004] LNKC: ACPI: Found matching pin for 0.3.INTA at func 0: 11
    [     1.000004] LNKD: ACPI: Found matching pin for 0.4.INTA at func 0: 11
    [     1.000004] LNKA: ACPI: Found matching pin for 0.5.INTA at func 0: 10
    [     1.000004] LNKB: ACPI: Found matching pin for 0.6.INTA at func 0: 10
    [     1.000004] LNKC: ACPI: Found matching pin for 0.7.INTA at func 0: 11
    [     1.000004] LNKD: ACPI: Found matching pin for 0.8.INTA at func 0: 11
    [     1.000004] LNKA: ACPI: Found matching pin for 0.9.INTA at func 0: 10
    [     1.000004] LNKB: ACPI: Found matching pin for 0.10.INTA at func 0: 10
    [     1.000004] LNKC: ACPI: Found matching pin for 0.11.INTA at func 0: 11
    [     1.000004] acpi0: SCI interrupting at int 9
    [     1.000004] acpi0: fixed power button present
    [     1.000004] timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
    [     1.006842] hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
    [     1.006842] timecounter: Timecounter "hpet0" frequency 100000000 Hz quality 2000
    [     1.007721] qemufwcfg0 at acpi0 (FWCF, QEMU0002): io 0x510-0x51b
    [     1.007721] qemufwcfg0: <QEMU>
    [     1.007721] com0 at acpi0 (COM1, PNP0501-1): io 0x3f8-0x3ff irq 4
    [     1.007721] com0: ns16550a, 16-byte FIFO
    [     1.007721] pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
    [     1.007721] pckbc2 at acpi0 (MOU, PNP0F13) (aux port): irq 12
    [     1.007721] fdc0 at acpi0 (FDC0, PNP0700): io 0x3f2-0x3f5,0x3f7 irq 6 drq 2
    [     1.007721] ACPI: Enabled 2 GPEs in block 00 to 0F
    [     1.007721] pckbd0 at pckbc1 (kbd slot)
    [     1.007721] pckbc1: using irq 1 for kbd slot
    [     1.007721] wskbd0 at pckbd0: console keyboard
    [     1.007721] pms0 at pckbc1 (aux slot)
    [     1.007721] pckbc1: using irq 12 for aux slot
    [     1.007721] wsmouse0 at pms0 mux 0
    [     1.007721] pci0 at mainbus0 bus 0: configuration mode 1
    [     1.007721] pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
    [     1.007721] pchb0 at pci0 dev 0 function 0: Intel 82441FX (PMC) PCI and Memory Controller (rev. 0x02)
    [     1.007721] pcib0 at pci0 dev 1 function 0: Intel 82371SB (PIIX3) PCI-ISA Bridge (rev. 0x00)
    [     1.007721] piixide0 at pci0 dev 1 function 1: Intel 82371SB IDE Interface (PIIX3) (rev. 0x00)
    [     1.007721] piixide0: bus-master DMA support present
    [     1.007721] piixide0: primary channel wired to compatibility mode
    [     1.007721] piixide0: primary channel interrupting at ioapic0 pin 14
    [     1.007721] atabus0 at piixide0 channel 0
    [     1.007721] piixide0: secondary channel wired to compatibility mode
    [     1.007721] piixide0: secondary channel interrupting at ioapic0 pin 15
    [     1.007721] atabus1 at piixide0 channel 1
    [     1.007721] uhci0 at pci0 dev 1 function 2: Intel 82371SB (PIIX3) USB Host Controller (rev. 0x01)
    [     1.007721] uhci0: interrupting at ioapic0 pin 11
    [     1.007721] usb0 at uhci0: USB revision 1.0
    [     1.007721] piixpm0 at pci0 dev 1 function 3: Intel 82371AB (PIIX4) Power Management Controller (rev. 0x03)
    [     1.007721] timecounter: Timecounter "piixpm0" frequency 3579545 Hz quality 1000
    [     1.007721] piixpm0: 24-bit timer
    [     1.007721] piixpm0: interrupting at ioapic0 pin 9
    [     1.007721] iic0 at piixpm0 port 0: I2C bus
    [     1.007721] vga0 at pci0 dev 2 function 0: vendor 1234 product 1111 (rev. 0x02)
    [     1.007721] wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
    [     1.007721] wsmux1: connecting to wsdisplay0
    [     1.007721] drm at vga0 not configured
    [     1.007721] virtio0 at pci0 dev 3 function 0
    [     1.007721] virtio0: network device (id 1, rev. 0x00)
    [     1.007721] vioif0 at virtio0: features: 0x31870020<EVENT_IDX,INDIRECT_DESC,NOTIFY_ON_EMPTY,CTRL_MAC,CTRL_RX,CTRL_VQ,STATUS,MAC>
    [     1.007721] vioif0: Ethernet address 00:56:e3:cf:73:01
    [     1.007721] virtio0: allocated 20480 byte for virtqueue 0 for rx0, size 256
    [     1.007721] virtio0: using 8192 byte (512 entries) indirect descriptors
    [     1.007721] virtio0: allocated 20480 byte for virtqueue 1 for tx0, size 256
    [     1.007721] virtio0: using 8192 byte (512 entries) indirect descriptors
    [     1.007721] virtio0: allocated 8192 byte for virtqueue 2 for control, size 64
    [     1.007721] virtio0: config interrupting at msix0 vec 0
    [     1.007721] virtio0: queues interrupting at msix0 vec 1
    [     1.007721] virtio1 at pci0 dev 4 function 0
    [     1.007721] virtio1: SCSI device (id 8, rev. 0x00)
    [     1.007721] vioscsi0 at virtio1: features: 0x10000000<INDIRECT_DESC>
    [     1.007721] virtio1: allocated 86016 byte for virtqueue 0 for control, size 256
    [     1.007721] virtio1: using 73728 byte (4608 entries) indirect descriptors
    [     1.007721] virtio1: allocated 86016 byte for virtqueue 1 for event, size 256
    [     1.007721] virtio1: using 73728 byte (4608 entries) indirect descriptors
    [     1.007721] virtio1: allocated 86016 byte for virtqueue 2 for request, size 256
    [     1.007721] virtio1: using 73728 byte (4608 entries) indirect descriptors
    [     1.007721] vioscsi0: cmd_per_lun 128 qsize 256 seg_max 254 max_target 255 max_lun 16383
    [     1.007721] virtio1: config interrupting at msix1 vec 0
    [     1.007721] virtio1: queues interrupting at msix1 vec 1
    [     1.007721] scsibus0 at vioscsi0: 256 targets, 16384 luns per target
    [     1.007721] ahcisata0 at pci0 dev 5 function 0: Intel 82801I AHCI SATA Controller w/ 6 ports (rev. 0x02)
    [     1.007721] ahcisata0: 64-bit DMA
    [     1.007721] ahcisata0: AHCI revision 1.0, 6 ports, 32 slots, CAP 0xc0141f05<SAM,ISS=0x1=Gen1,SNCQ,S64A>
    [     1.007721] ahcisata0: interrupting at msi2 vec 0
    [     1.007721] atabus2 at ahcisata0 channel 0
    [     1.007721] atabus3 at ahcisata0 channel 1
    [     1.007721] atabus4 at ahcisata0 channel 2
    [     1.007721] atabus5 at ahcisata0 channel 3
    [     1.007721] atabus6 at ahcisata0 channel 4
    [     1.007721] atabus7 at ahcisata0 channel 5
    [     1.007721] virtio2 at pci0 dev 6 function 0
    [     1.007721] virtio2: console device (id 3, rev. 0x00)
    [     1.007721] virtio2: autoconfiguration error: no matching child driver; not configured
    [     1.007721] virtio3 at pci0 dev 7 function 0
    [     1.007721] virtio3: block device (id 2, rev. 0x00)
    [     1.007721] ld0 at virtio3: features: 0x10000a54<INDIRECT_DESC,CONFIG_WCE,FLUSH,BLK_SIZE,GEOMETRY,SEG_MAX>
    [     1.007721] virtio3: allocated 1060864 byte for virtqueue 0 for I/O request, size 256
    [     1.007721] virtio3: using 1048576 byte (65536 entries) indirect descriptors
    [     1.007721] virtio3: config interrupting at msix3 vec 0
    [     1.007721] virtio3: queues interrupting at msix3 vec 1
    [     1.007721] ld0: 25600 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 52428800 sectors
    [     1.007721] virtio4 at pci0 dev 8 function 0
    [     1.007721] virtio4: memory balloon device (id 5, rev. 0x00)
    [     1.007721] viomb0 at virtio4: features: 0x10000000<INDIRECT_DESC>
    [     1.007721] virtio4: allocated 8192 byte for virtqueue 0 for inflate, size 128
    [     1.007721] virtio4: allocated 8192 byte for virtqueue 1 for deflate, size 128
    [     1.007721] virtio4: interrupting at ioapic0 pin 11
    [     1.007721] virtio5 at pci0 dev 9 function 0
    [     1.007721] virtio5: SCSI device (id 8, rev. 0x00)
    [     1.007721] vioscsi1 at virtio5: features: 0x10000000<INDIRECT_DESC>
    [     1.007721] virtio5: allocated 86016 byte for virtqueue 0 for control, size 256
    [     1.007721] virtio5: using 73728 byte (4608 entries) indirect descriptors
    [     1.007721] virtio5: allocated 86016 byte for virtqueue 1 for event, size 256
    [     1.007721] virtio5: using 73728 byte (4608 entries) indirect descriptors
    [     1.007721] virtio5: allocated 86016 byte for virtqueue 2 for request, size 256
    [     1.007721] virtio5: using 73728 byte (4608 entries) indirect descriptors
    [     1.007721] vioscsi1: cmd_per_lun 128 qsize 256 seg_max 254 max_target 255 max_lun 16383
    [     1.007721] virtio5: config interrupting at msix4 vec 0
    [     1.007721] virtio5: queues interrupting at msix4 vec 1
    [     1.007721] scsibus1 at vioscsi1: 256 targets, 16384 luns per target
    [     1.007721] virtio6 at pci0 dev 10 function 0
    [     1.007721] virtio6: SCSI device (id 8, rev. 0x00)
    [     1.007721] vioscsi2 at virtio6: features: 0x10000000<INDIRECT_DESC>
    [     1.007721] virtio6: allocated 86016 byte for virtqueue 0 for control, size 256
    [     1.007721] virtio6: using 73728 byte (4608 entries) indirect descriptors
    [     1.007721] virtio6: allocated 86016 byte for virtqueue 1 for event, size 256
    [     1.007721] virtio6: using 73728 byte (4608 entries) indirect descriptors
    [     1.007721] virtio6: allocated 86016 byte for virtqueue 2 for request, size 256
    [     1.007721] virtio6: using 73728 byte (4608 entries) indirect descriptors
    [     1.007721] vioscsi2: cmd_per_lun 128 qsize 256 seg_max 254 max_target 255 max_lun 16383
    [     1.007721] virtio6: config interrupting at msix5 vec 0
    [     1.007721] virtio6: queues interrupting at msix5 vec 1
    [     1.007721] scsibus2 at vioscsi2: 256 targets, 16384 luns per target
    [     1.007721] virtio7 at pci0 dev 11 function 0
    [     1.007721] virtio7: SCSI device (id 8, rev. 0x00)
    [     1.007721] vioscsi3 at virtio7: features: 0x10000000<INDIRECT_DESC>
    [     1.007721] virtio7: allocated 86016 byte for virtqueue 0 for control, size 256
    [     1.007721] virtio7: using 73728 byte (4608 entries) indirect descriptors
    [     1.007721] virtio7: allocated 86016 byte for virtqueue 1 for event, size 256
    [     1.007721] virtio7: using 73728 byte (4608 entries) indirect descriptors
    [     1.007721] virtio7: allocated 86016 byte for virtqueue 2 for request, size 256
    [     1.007721] virtio7: using 73728 byte (4608 entries) indirect descriptors
    [     1.007721] vioscsi3: cmd_per_lun 128 qsize 256 seg_max 254 max_target 255 max_lun 16383
    [     1.007721] virtio7: config interrupting at msix6 vec 0
    [     1.007721] virtio7: queues interrupting at msix6 vec 1
    [     1.007721] scsibus3 at vioscsi3: 256 targets, 16384 luns per target
    [     1.007721] isa0 at pcib0
    [     1.007721] attimer0 at isa0 port 0x40-0x43
    [     1.007721] pcppi0 at isa0 port 0x61
    [     1.007721] spkr0 at pcppi0: PC Speaker
    [     1.007721] wsbell at spkr0 not configured
    [     1.007721] midi0 at pcppi0: PC speaker
    [     1.007721] sysbeep0 at pcppi0
    [     1.007721] attimer0: attached to pcppi0
    [     1.007721] acpicpu0 at cpu0: ACPI CPU
    [     1.007721] acpicpu0: C1: HLT, lat   0 us, pow     0 mW
    [     1.007721] vmt0 at cpu0
    [     1.007721] vmt0: UUID: f376ab45-696e-42c4-a751-e3191151611e
    [     1.007721] vmware: open failed, eax=0xffffffff, ecx=0x1e, edx=0x5658
    [     1.007721] vmt0: autoconfiguration error: failed to open backdoor RPC channel (TCLO protocol)
    [     1.007721] acpicpu1 at cpu1: ACPI CPU
    [     1.007721] timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
    [     1.222833] IPsec: Initialized Security Association Processing.
    [     1.232835] ld0: GPT GUID: ac26fc1e-7fec-44ea-b1cb-5364f733b493
    [     1.232835] dk0 at ld0: "EFI system", 8192 blocks at 128, type: msdos
    [     1.232835] dk1 at ld0: "netbsd-swap", 1048576 blocks at 8320, type: swap
    [     1.232835] dk2 at ld0: "netbsd-root", 51371776 blocks at 1056896, type: ffs
    [     1.232835] uhub0 at usb0: NetBSD (0x0000) UHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
    [     1.242833] uhub0: 2 ports with 2 removable, self powered
    [     1.302842] ahcisata0 port 0: device present, speed: 1.5Gb/s
    [     1.492882] sd0 at scsibus3 target 0 lun 2: <QEMU, QEMU HARDDISK, 2.5+> disk fixed
    [     1.502892] sd0: 368 KB, 2 cyl, 16 head, 23 sec, 512 bytes/sect x 736 sectors
    [     1.502892] sd0: async, 8-bit transfers, tagged queueing
    [     2.813229] atapibus0 at atabus2: 1 targets
    [     2.823191] cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00005, 2.5+> cdrom removable
    [     2.823191] cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100), NCQ (32 tags)
    [     2.823191] cd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) (using DMA), NCQ (31 tags)
    [     2.933232] uhidev0 at uhub0 port 1 configuration 1 interface 0
    [     2.933232] uhidev0: QEMU (0x0627) QEMU USB Tablet (0x0001), rev 2.00/0.00, addr 2, iclass 3/0
    [     2.943214] ums0 at uhidev0: 3 buttons and Z dir
    [     2.943214] wsmouse1 at ums0 mux 0
    [     2.943214] swwdog0: software watchdog initialized
    [     2.983220] WARNING: 2 errors while detecting hardware; check system log.  # Only 2 errors now?
    [     2.983220] boot device: ld0
    [     2.983220] root on dk2 dumps on dk1
    [     2.993224] root file system type: ffs
    [     2.993224] kern.module.path=/stand/amd64/10.0/modules
    [    13.055448] wsdisplay0: screen 1 added (80x25, vt100 emulation)
    [    13.055448] wsdisplay0: screen 2 added (80x25, vt100 emulation)
    [    13.055448] wsdisplay0: screen 3 added (80x25, vt100 emulation)
    [    13.055448] wsdisplay0: screen 4 added (80x25, vt100 emulation)
    linveo# 
    
  • @linveo said:
    Do you want switched over to an AMD Ryzen node?

    Thank you for the offer! Since it sounds like everybody else has already gone to AMD, I think it is better for me to stay on Intel for now so we can test both of the platforms out and make sure we have a solid solution going forward.

  • @Not_Oles said:

    [     2.884958] WARNING: 8 errors while detecting hardware; check system log.    # What's with this?
    [     2.884958] boot device: ld0
    [     2.884958] root on dk2 dumps on dk1
    [     2.894947] root file system type: ffs
    [     2.905333] kern.module.path=/stand/amd64/10.0/modules
    [     3.684917] dk1 at ld0 (netbsd-swap) deleted
    [     3.684917] dk0 at ld0 (EFI system) deleted
    [     3.684917] ld0: GPT GUID: ac26fc1e-7fec-44ea-b1cb-5364f733b493
    [     3.684917] dk0 at ld0: "EFI system", 8192 blocks at 128, type: msdos
    [     3.684917] dk1 at ld0: "netbsd-swap", 1048576 blocks at 8320, type: swap
    [     3.684917] dk2 at ld0: "netbsd-root", 51371776 blocks at 1056896, type: ffs
    [    30.963838] rebooting...                                                           # Why the reboot?
    

    It's resizing on the first boot and then rebooting?

  • @Not_Oles said:
    [ 2.884958] WARNING: 8 errors while detecting hardware; check system log. # What's with this?

    Not sure, but it might be just scanning all the possible hardware upon the initial boot. Since you only see two errors in the next boot, it might have marked most of them 'not found' or something like that so it wouldn't keep trying.

    @Not_Oles said:
    [ 30.963838] rebooting... # Why the reboot?

    I am guessing that it is resizing the filesystem and rebooting to make sure the changes are applied before doing anything else.

    Also those two errors for the hardware detection look like they are related to VMware which is obviously not present here.

  • @Not_Oles said: [ 2.884958] WARNING: 8 errors while detecting hardware; check system log. # What's with this?

    Not sure, I guess it's just the kernel probing what devices are available. I haven't really figured out what it is complaining about, the only thing I have found was the vmware and vmt0 errors.

    @Not_Oles said: [ 30.963838] rebooting... # Why the reboot?

    On the first boot it resizes the partition and the root filesystem and then reboots - that's standard practice with NetBSD images at least.

  • linveolinveo ProviderOG

    @Crab said:

    @linveo said:
    Do you want switched over to an AMD Ryzen node?

    Thank you for the offer! Since it sounds like everybody else has already gone to AMD, I think it is better for me to stay on Intel for now so we can test both of the platforms out and make sure we have a solid solution going forward.

    Sounds good, let me know if you ever want to switch over.

    linveo.com | Shared Hosting | KVM VPS | Dedicated Servers

  • @Crab said:

    @linveo said:
    Do you want switched over to an AMD Ryzen node?

    Thank you for the offer! Since it sounds like everybody else has already gone to AMD, I think it is better for me to stay on Intel for now so we can test both of the platforms out and make sure we have a solid solution going forward.

    @Crab Thanks for dedication to the Community and to versatile and dependable solutions!

  • Reference: https://pkgsrc.org/

    What I think I want to do is to install pkgsrc.

    I first thought to try installing pkgsrc with pkgin or maybe install CVS with pkgin and then install pkgsrc via CVS. But, from the errors below, it seems like pkgin needs SSL certificates before it will work?

    Since pkgin didn't seem to work, I tried grabbing the current pkgsrc tar archive from ftp.netbsd.org/pub/pkgsrc, which seemed to work okay.

    Next up is to try bootstrapping pkgsrc. I will post about whether I get pkgsrc bootstrap to work.

    What's the best procedure for going from the minimal install to a happy, functioning pkgsrc?

    Thanks!

    Tom

    linveo# date
    Sat Sep 28 21:20:00 UTC 2024
    linveo# which pkgin
    linveo# which pkg_add
    /usr/sbin/pkg_add
    linveo# which cvs
    linveo# uname -p
    x86_64
    linveo# uname -r
    10.0
    linveo# PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r|cut -f '1 2' -d.)/All/"
    linveo# export PKG_PATH
    linveo# echo $PKG_PATH
    http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/x86_64/10.0/All/
    linveo# pkg_add pkgin
    pkgin-23.8.1nb4: copying /usr/pkg/share/examples/pkgin/repositories.conf.example to /usr/pkg/etc/pkgin/repositories.conf
    linveo# echo $?
    0
    linveo# which pkgin
    /usr/pkg/bin/pkgin
    linveo# which ed
    /bin/ed
    linveo# pkgin search cvs
    processing remote summary (https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/10.0/All)...
    00B8DAF521780000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:/usr/src/crypto/external/bsd/openssl/dist/ssl/statem/statem_clnt.c:1889:
    00B8DAF521780000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:/usr/src/crypto/external/bsd/openssl/dist/ssl/statem/statem_clnt.c:1889:
    00B8DAF521780000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:/usr/src/crypto/external/bsd/openssl/dist/ssl/statem/statem_clnt.c:1889:
    pkgin: Could not fetch https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/10.0/All/pkg_summary.gz: Authentication error
    linveo# pkgin install pkgsrc
    00A81C7068740000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:/usr/src/crypto/external/bsd/openssl/dist/ssl/statem/statem_clnt.c:1889:
    00A81C7068740000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:/usr/src/crypto/external/bsd/openssl/dist/ssl/statem/statem_clnt.c:1889:
    00A81C7068740000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:/usr/src/crypto/external/bsd/openssl/dist/ssl/statem/statem_clnt.c:1889:
    pkgin: Could not fetch https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/10.0/All/pkg_summary.gz: Authentication error
    linveo# 
    
    linveo# cd /usr
    linveo# ftp ftp.netbsd.org
    Trying [2001:470:a085:999::21]:21 ...
    Connected to ftp.netbsd.org.
    220 ftp.NetBSD.org FTP server (NetBSD-ftpd 20230930) ready.
    Name (ftp.netbsd.org:root): ftp
    331 Guest login ok, type your name as password.
    Password: 
    230-
            The NetBSD Project FTP Server located in San Jose, CA, USA
            1 Gbps connectivity
                                                        WELCOME!    /(        )`
                                                                    \ \___   / |
              +--- Currently Supported Platforms ----+              /- _  `-/  '
              | acorn32, algor, alpha, amd64, amiga, |             (/\/ \ \   /\
              | amigappc, arc, atari, bebox, cats,   |             / /   | `    \
              |  cesfic, cobalt, dreamcast, emips,   |             O O   ) /    |
              | epoc32, evbarm{,64}, evbmips, evbppc,|             `-^--'`<     '
              |     evbsh3, ews4800mips, hp300,      |            (_.)  _  )   /
              |hpc{arm,mips,sh}, hppa, i386, ibmnws, |              .___/`    /
              |iyonix, landisk, luna68k,mac{68k,ppc},|               `-----' /
              | mipsco, mmeye, mvme68k, mvmeppc,     |  <----.     __ / __   \
              |netwinder, news68k, newsmips, next68k,|  <----|====O)))==) \) /====
              |ofppc, pmax, prep, rs6000, sandpoint, |  <----'    `--' `.__,' \
              |sgimips, shark, sparc{,64}, sun{2,3}, |               |        |
              |      vax, x68k, xen, zaurus          |                \       /
              +--------------------------------------+           ______( (_  / \_____
              See our website at http://www.NetBSD.org/        ,'  ,-----'   |       \
               We log all FTP transfers and commands.          `--{__________)  (FL) \/
    
    230-
        EXPORT NOTICE
    
        Please note that portions of this FTP site contain cryptographic
        software controlled under the Export Administration Regulations (EAR)
        of the United States of America.
    
        None of this software may be downloaded or otherwise exported or
        re-exported into (or to a national or resident of) any country
        to which the U.S. has embargoed goods. Also, people personally
        on the block lists of the United States Department of Treasury
        or the United States Department of Commerce are prohibited.
    
        By downloading or using said software, you are agreeing to the
        foregoing and you are representing and warranting that you are not
        located in, under the control of, or a national or resident of any
        such country or on any such list.
    230 Guest login ok, access restrictions apply.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> cd pub/pkgsrc/current
    250 CWD command successful.
    ftp> get pkgsrc.tar.gz.SHA1
    local: pkgsrc.tar.gz.SHA1 remote: pkgsrc.tar.gz.SHA1
    229 Entering Extended Passive Mode (|||54086|)
    150 Opening BINARY mode data connection for 'pkgsrc.tar.gz.SHA1' (64 bytes).
    100% |*****************************************************|    64        6.68 KiB/s    00:00 ETA
    226 Transfer complete.
    64 bytes received in 00:00 (0.54 KiB/s)
    ftp> get pkgsrc.tar.gz
    local: pkgsrc.tar.gz remote: pkgsrc.tar.gz
    229 Entering Extended Passive Mode (|||54087|)
    150 Opening BINARY mode data connection for 'pkgsrc.tar.gz' (84995861 bytes).
    100% |*****************************************************| 83003 KiB    1.35 MiB/s    00:00 ETA
    226 Transfer complete.
    84995861 bytes received in 00:59 (1.35 MiB/s)
    ftp> bye
    221-
        Data traffic for this session was 84995925 bytes in 2 files.
        Total traffic for this session was 84999287 bytes in 2 transfers.
    221 Thank you for using the FTP service on ftp.NetBSD.org.
    linveo# ls -l pkgsrc*
    -rw-r--r--  1 root  wheel  84995861 Sep 28 01:15 pkgsrc.tar.gz
    -rw-r--r--  1 root  wheel        64 Sep 28 01:15 pkgsrc.tar.gz.SHA1
    linveo# 
    
  • linveo# tar xvzf pkgsrc.tar.gz 
    linveo# echo $?
    0
    linveo# linveo# ls -lR pkgsrc | wc -l
      441701
    linveo# linveo# cd bootstrap/
    linveo# ls
    CVS                README.FreeBSD     README.Interix     README.NetBSD      README.UnixWare
    README             README.GNUkFreeBSD README.Linux       README.OSF1        README.macOS
    README.AIX         README.HPUX        README.MidnightBSD README.OpenBSD     bootstrap
    README.Cygwin      README.Haiku       README.Minix3      README.OpenServer5 cleanup
    README.DragonFly   README.IRIX        README.MirBSD      README.Solaris     testbootstrap
    linveo# linveo# date
    Sun Sep 29 02:46:19 UTC 2024
    linveo# pwd
    /usr/pkgsrc/bootstrap
    linveo# ./bootstrap | tee bootstrap-out
    ERROR: Please unset PKG_PATH before running bootstrap.
    linveo# export PKG_PATH=""
    linveo# ./bootstrap | tee bootstrap-out
    ===> bootstrap command: ./bootstrap 
    ===> bootstrap started: Sun Sep 29 02:48:43 UTC 2024
    Working directory is: /usr/pkgsrc/bootstrap/work
    ===> running: /usr/bin/sed -e 's|@DEFAULT_INSTALL_MODE@|'0755'|' /usr/pkgsrc/sysutils/install-sh/files/install-sh.in > /usr/pkgsrc/bootstrap/work/bin/install-sh
    ===> running: /bin/chmod +x /usr/pkgsrc/bootstrap/work/bin/install-sh
    ===> Creating default mk.conf in /usr/pkgsrc/bootstrap/work
    ===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -d -o root -g wheel /usr/pkgsrc/bootstrap/work/sbin
    ===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -d -o root -g wheel /usr/pkgsrc/bootstrap/work/share/mk
    ===> Bootstrapping mk-files
    ===> running: (cd /usr/pkgsrc/pkgtools/bootstrap-mk-files/files && env CP=/bin/cp  OPSYS=NetBSD MK_DST=/usr/pkgsrc/bootstrap/work/share/mk ROOT_GROUP=wheel ROOT_USER=root SED=/usr/bin/sed SYSCONFDIR=/usr/pkg/etc /bin/sh ./bootstrap.sh)
    ===> Bootstrapping bmake
    ===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -d -o root -g wheel /usr/pkgsrc/bootstrap/work/bmake
    ===> running: (cd /usr/pkgsrc/bootstrap/work/bmake && /bin/sh configure  --prefix=/usr/pkgsrc/bootstrap/work --with-default-sys-path=/usr/pkgsrc/bootstrap/work/share/mk --with-machine-arch=x86_64 )
    Using: filemon_ktrace.c
    checking whether system has timezone Europe/Berlin... yes
    checking for gcc... no
    checking for cc... no
    checking for cl.exe... no
    checking for clang... no
    configure: error: in '/usr/pkgsrc/bootstrap/work/bmake':
    configure: error: no acceptable C compiler found in $PATH
    See 'config.log' for more details
    ===> exited with status 1
    aborted.
    linveo# 
    

    In the README it does say to have a working make and a compiler in your PATH. I did skim the README, but mistook the need for the compiler to be related to the cleanup command. My interpretation doesn't seem to make sense now. :)

    From the README in /use/pkgsrc/bootsrap :

    The bootstrap script will exit if the bootstrap directory already exists,
    for example if you have run the script before. In this case, clean it up
    by running:
    
    # ./cleanup
    
    Make sure that you have a working C compiler and make(1) binary in
    your path. 
    

    So, as of right now, I haven't managed to bootstrap pkgsrc (because no compiler is installed), and I haven't managed to get binary packages installed because of what I think might be SSL errors with pkgin.

    Maybe I will get a little further tomorrow! Yaaay! :)

  • @Not_Oles said: I first thought to try installing pkgsrc with pkgin or maybe install CVS with pkgin and then install pkgsrc via CVS. But, from the errors below, it seems like pkgin needs SSL certificates before it will work?

    I think a certctl rehash is missing (I need to add that to the image creation). PKG_PATH is already set in /etc/pkg_install.conf for that image, so with a fresh install you can currently do:

    NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024
    
    Welcome to NetBSD!
    
    We recommend that you create a non-root account and use su(1) for root access.
    test# certctl rehash
    test# pkg_add pkgin
    pkgin-23.8.1nb4: copying /usr/pkg/share/examples/pkgin/repositories.conf.example to /usr/pkg/etc/pkgin/repositories.conf
    test# pkgin upgrade
    processing remote summary (https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/10.0/All)...
    pkg_summary.gz                                100% 6170KB 220.4KB/s   00:28    
    calculating dependencies...done.
    nothing to do.
    test# 
    
  • I think you can install the compiler by just doing:

    ftp -o - https://cdn.netbsd.org/pub/NetBSD/NetBSD-10.0/amd64/binary/sets/comp.tar.xz | progress -z tar xpf - -C /
    

    Alternatively, you could use sysinst to install additional packages (but need to be careful to not let sysinst overwrite any existing configuration)

  • Not_OlesNot_Oles Provider
    edited October 2024

    @cmeerw said: I think a certctl rehash is missing (I need to add that to the image creation). PKG_PATH is already set in /etc/pkg_install.conf for that image

    @cmeerw Thanks for introducing me to certctl :) And /etc/pkg_install.conf :)

    linveo# man certctl
    man: Formatting manual page...
    CERTCTL(8)                  System Manager's Manual                 CERTCTL(8)
    
    NAME
         certctl - configure OpenSSL certificate trust anchors
    
    SYNOPSIS
         certctl [-nv] [-C config] [-c certsdir] [-u distrustdir] cmd [args...]
         certctl [options] list
         certctl [options] rehash
         certctl [options] trust cert
         certctl [options] untrust cert
         certctl [options] untrusted
    
    DESCRIPTION
         The certctl utility manages certificates used by OpenSSL-based
         applications as trust anchors for certificate validation in TLS or other
         purposes, for example by ftp(1) in HTTPS.  certctl allows configuring the
         set of certificates and persistently excluding individual certificates.
    
      [ . . . ]
    
    HISTORY
         certctl first appeared in NetBSD 10.0.  A utility of the same name
         previously appeared in FreeBSD 12.2.
    
    NetBSD 10.0                     August 16, 2023                    NetBSD 10.0
    linveo# cat  /etc/openssl/certs.conf
    netbsd-certctl 20230816
    
    #       $NetBSD: certs.conf,v 1.1.2.2 2023/09/04 17:33:27 martin Exp $
    #
    # Configuration file for certctl(8) to manage HTTPS root CA
    # certificates in /etc/openssl/certs.
    #
    
    path    /usr/share/certs/mozilla/server
    
    # For manual control over /etc/openssl/certs, e.g. if you want to
    # install a separate CA bundle from pkgsrc, uncomment the next line:
    #manual
    linveo# 
    
    linveo# cat /etc/pkg_install.conf
    PKG_PATH=https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.0/All
    linveo# 
    

    @cmeerw said: so with a fresh install you can currently do:

    test# certctl rehash
    [ . . . ]
    test# pkg_add pkgin
    [ . . . ]
    test# pkgin upgrade

    linveo# certctl rehash
    linveo# pkg_add pkgin
    pkg_add: package `pkgin-23.8.1nb4' already recorded as installed
    linveo# pkgin upgrade
    pkg_summary.gz                                                  100% 6170KB 293.8KB/s   00:21    
    calculating dependencies...done.
    nothing to do.
    linveo# 
    

    Thanks again @cmeerw <3 Thanks to Linveo for the test VPSes! <3

  • @cmeerw said:
    I think you can install the compiler by just doing:

    ftp -o - https://cdn.netbsd.org/pub/NetBSD/NetBSD-10.0/amd64/binary/sets/comp.tar.xz | progress -z tar xpf - -C /
    

    Alternatively, you could use sysinst to install additional packages (but need to be careful to not let sysinst overwrite any existing configuration)

    Showing the output of progress at a random momet during the download and extraction:

    linveo# pwd
    /root
    linveo# which gcc
    linveo# ftp -o - https://cdn.netbsd.org/pub/NetBSD/NetBSD-10.0/amd64/binary/sets/comp.tar.xz | progress -z tar xpf - -C /
     14975 KiB  623.57 KiB/s 
    

    Upon finishing:

    linveo# pwd
    /root
    linveo# which gcc
    linveo# ftp -o - https://cdn.netbsd.org/pub/NetBSD/NetBSD-10.0/amd64/binary/sets/comp.tar.xz | progress -z tar xpf - -C /
       561 MiB    1.10 MiB/s 
    linveo# which gcc
    /usr/bin/gcc
    linveo# 
    

    Next up might be to retry bootstrapping pkgsrc! :)

    Thanks again @cmeerw! <3 Thanks again Linveo! <3

  • linveo# cd /usr/pkgsrc/bootstrap
    linveo# export PKG_PATH=""
    linveo# ./bootstrap
    ===> bootstrap command: ./bootstrap 
    ===> bootstrap started: Tue Oct  1 01:49:46 UTC 2024
    "/usr/pkgsrc/bootstrap/work" already exists, please remove it or use --workdir
    linveo# rm -r work
    linveo# ./bootstrap 
    ===> bootstrap command: ./bootstrap 
    ===> bootstrap started: Tue Oct  1 01:50:47 UTC 2024
    Working directory is: /usr/pkgsrc/bootstrap/work
    ===> running: /usr/bin/sed -e 's|@DEFAULT_INSTALL_MODE@|'0755'|' /usr/pkgsrc/sysutils/install-sh/files/install-sh.in > /usr/pkgsrc/bootstrap/work/bin/install-sh
    ===> running: /bin/chmod +x /usr/pkgsrc/bootstrap/work/bin/install-sh
    ===> Creating default mk.conf in /usr/pkgsrc/bootstrap/work
    ===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -d -o root -g wheel /usr/pkgsrc/bootstrap/work/sbin
    ===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -d -o root -g wheel /usr/pkgsrc/bootstrap/work/share/mk
    ===> Bootstrapping mk-files
    ===> running: (cd /usr/pkgsrc/pkgtools/bootstrap-mk-files/files && env CP=/bin/cp  OPSYS=NetBSD MK_DST=/usr/pkgsrc/bootstrap/work/share/mk ROOT_GROUP=wheel ROOT_USER=root SED=/usr/bin/sed SYSCONFDIR=/usr/pkg/etc /bin/sh ./bootstrap.sh)
    ===> Bootstrapping bmake
    ===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -d -o root -g wheel /usr/pkgsrc/bootstrap/work/bmake
    ===> running: (cd /usr/pkgsrc/bootstrap/work/bmake && /bin/sh configure  --prefix=/usr/pkgsrc/bootstrap/work --with-default-sys-path=/usr/pkgsrc/bootstrap/work/share/mk --with-machine-arch=x86_64 )
    Using: filemon_ktrace.c
      [ . . .  ]
    
    You can now run
    
            sh ./make-bootstrap.sh
    
    to produce a fully functional bmake.
    
    ===> running: (cd /usr/pkgsrc/bootstrap/work/bmake && /bin/sh make-bootstrap.sh)
    gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -DUSE_EMALLOC -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -DMAKE_VERSION="20240909" -DMACHINE="amd64" -DMACHINE_ARCH="x86_64" -DMAKE_OS="" -D_PATH_DEFSYSPATH="/usr/pkgsrc/bootstrap/work/share/mk" -o main.o /usr/pkgsrc/bootstrap/work/bmake/main.c
      [ . . . ]
    ===> running: /bin/sh /usr/pkgsrc/bootstrap/work/bin/install-sh -c -o root -g wheel -m 755 /usr/pkgsrc/bootstrap/work/bmake/bmake /usr/pkgsrc/bootstrap/work/bin/bmake
      [ . . . ]
    ===> running: (cd /usr/pkgsrc/pkgtools/cwrappers && /usr/pkgsrc/bootstrap/work/bin/bmake  MAKE_JOBS=1 PKG_COMPRESSION=none PKGSRC_KEEP_BIN_PKGS=no MAKECONF=/usr/pkgsrc/bootstrap/work/mk.conf install)
    ERROR: This package has set PKG_FAIL_REASON:
    ERROR: Please unset PKG_PATH before doing pkgsrc work!
    *** Error code 1
    
    Stop.
    bmake: stopped making "install" in /usr/pkgsrc/pkgtools/cwrappers
    ===> exited with status 1
    aborted.
    linveo# 
    

    So, "unset PKG_PATH" is not the same as "export PKG_PATH=""". Apparently I need to have no PKG_PATH variable at all?

    But we said

    linveo# cat /etc/pkg_install.conf
    PKG_PATH=https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.0/All
    linveo# 
    

    Next is to read up on "unset." :) Sounds like a shell built-in, so that all I need to do is run unset PKG_PATH.

    Hmm. Well, maybe I don't have to look too far.

    linveo# ps
      PID TTY   STAT    TIME COMMAND
    15318 pts/0 O+   0:00.00 ps 
    19420 pts/0 Ss   0:00.02 -sh 
     1315 ttyE0 Is+  0:00.00 /usr/libexec/getty Pc constty 
    linveo# 
    

    Yeah, I am using the sh shell, which I guess is the default.

    linveo# man sh
    
      [ . . . ]
    
         unset [-efvx] name ...
                If -v is specified, the specified variables are unset and
                unexported.  Readonly variables cannot be unset.  If -f is
                specified, the specified functions are undefined.  If -e is given,
                the specified variables are unexported, but otherwise unchanged,
                alternatively, if -x is given, the exported status of the variable
                will be retained, even after it is unset.
    
                If no flags are provided -v is assumed.  If -f is given with one
                of the other flags, then the named variables will be unset, or
                unexported, and functions of the same names will be undefined.
                The -e and -x flags both imply -v.  If -e is given, the -x flag is
                ignored.
    
                The exit status is 0, unless an attempt was made to unset a
                readonly variable, in which case the exit status is 1.  It is not
                an error to unset (or undefine) a variable (or function) that is
                not currently set (or defined.)
    
      [ . . . ]
    
    linveo# 
    

    Looks like maybe it's enough to unset PKG_PATH and to again remove /usr/pkgsrc/bootstrap/work. But maybe I should ditch PKG_PATH from .profile?

    linveo# grep PKG_PATH .profile
    #export PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r|cut -f '1 2' -d.|cut -f 1 -d_)/All"
    linveo# 
    

    Wait! That PKG_PATH line already is commented out!

    And there seems to be no PKG_PATH variable. . . .

    linveo# echo $PKG_PATH
    
    linveo#
    

    Why did ./bootstrap throw that error based on PKG_PATH?

    Now I'm confused! Haha! :)

    More tomorrow, since it's getting late here. . . .

  • @Not_Oles said: More tomorrow, since it's getting late here. . . .

    It's even later than "getting late." But, anyway, one more try. And one more error. :)

    linveo# cd /usr/pkgsrc/bootstrap
    linveo# ls
    CVS                README.GNUkFreeBSD README.MidnightBSD README.OpenServer5 cleanup
    README             README.HPUX        README.Minix3      README.Solaris     work
    README.AIX         README.Haiku       README.MirBSD      README.UnixWare    
    README.Cygwin      README.IRIX        README.NetBSD      README.macOS
    README.DragonFly   README.Interix     README.OSF1        bootstrap
    README.FreeBSD     README.Linux       README.OpenBSD     testbootstrap
    linveo# rm -r work
    linveo# echo $PKG_PATH
    
    linveo# env | grep PKG_PATH
    linveo# ./bootstrap
    
      [ . . .  Lots of scrolling . . . ]
    
    => Automatic manual page handling
    => Generating post-install file lists
    => Checking file-check results for pkg_install-20240826
    => Creating binary package /usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/.packages/pkg_install-20240826.tgz
    ===> Installing binary package of pkg_install-20240826
    pkg_add: A different version of pkg_install-20240826 is already installed: pkg_install-20240307
    pkg_add: 1 package addition failed
    *** Error code 1
    
    Stop.
    bmake[2]: stopped making "su-real-package-install" in /usr/pkgsrc/pkgtools/pkg_install
    *** Error code 1
    
    Stop.
    bmake[1]: stopped making "install" in /usr/pkgsrc/pkgtools/pkg_install
    *** Error code 1
    
    Stop.
    bmake: stopped making "install" in /usr/pkgsrc/pkgtools/pkg_install
    ===> exited with status 1
    aborted.
    linveo# 
    

    So I guess I have to remove pkg_install-20240307. :) Or maybe remove something of which contains pkg_install-20240307 as a part? :)

    More tomorrow. <3 Thanks BSD! <3 Thanks Linveo! <3

  • @Not_Oles said: Next up might be to retry bootstrapping pkgsrc!

    I don't think you need to do any bootstrapping on NetBSD, just cd to the package you want to build and type make there.

    NetBSD already contains the necessary tools for using pkgsrc; on other platforms you need to bootstrap pkgsrc to get the package management tools installed.

  • @cmeerw said:

    I don't think you need to do any bootstrapping on NetBSD, just cd to the package you want to build and type make there.

    ROTFL!

    I really like that fine guys like @cmeerw catch my many mistakes! That's great! <3

    The language @cmeerw quoted appears in both the NetBSD packages collection documentation at https://www.netbsd.org/docs/software/packages.html and also on the pkgsrc.org home page.

    The language @cmeerw quoted does not seem to appear in either /use/pkgsrc/bootstrap/README or /use/pkgsrc/bootstrap/README.NetBSD.

    So, to clean up, maybe all I need to do is remove /usr/pkgsrc/bootstrap/work.

    Next up might be to build something with pkgsrc. Maybe Lynx or notqmail.

    Maybe move soon from NetBSD 10 to NetBSD-current. I probably need to add /src in a similar way to how the compiler set was added. Then update with CVS. Then maybe NetBSD-current will rebuild itself from /src. Amazing!

    Thanks *BSD! Thanks NetBSD! Thanks @cmeerw! Thanks Linveo! <3

  • @Not_Oles said: Maybe move soon from NetBSD 10 to NetBSD-current. I probably need to add /src in a similar way to how the compiler set was added. Then update with CVS. Then maybe NetBSD-current will rebuild itself from /src. Amazing!

    Unless you really want to rebuild everything from source, you can just use sysupgrade (from pkgsrc) and point it to the latest HEAD build.

  • Not_OlesNot_Oles Provider
    edited October 2024

    @cmeerw said: Unless you really want to rebuild everything from source

    Thanks @cmeerw! <3 Not so much that I want to rebuild everything from source. It's mainly that I can rebuild everything from source. And I'm not sure that I can rebuild everything until I actually do rebuild everything.

    Once the rebuild completes successfully, it means that anything big or little can be changed. Not that I am capable of making the changes myself, but the NetBSD guys always were extremely friendly and extremely helpful and super fast to respond! I imagine that NetBSD culture still is the same. <3

  • I have created a new NetBSD 10.0 image with these changes:

    • certificates are now set up correctly out of the box (thanks @Not_Oles for pointing that out)
    • use "log" option on the root filesystem
    • pre-install "modules" and "rescue" packages
    • set savecore=NO in rc.conf and fetch_pkg_vulnerabilities="YES" in daily.conf

    @linveo could you update to the new image please? Hopefully, this should be fairly stable now.

    (Note: the image is AMD only - although I could use a patched kernel, I think it's better to stick with official kernels to avoid having the VM break when updating the kernel)

  • @cmeerw said:
    I have created a new NetBSD 10.0 image with these changes:

    • certificates are now set up correctly out of the box (thanks @Not_Oles for pointing that out)
    • use "log" option on the root filesystem
    • pre-install "modules" and "rescue" packages
    • set savecore=NO in rc.conf and fetch_pkg_vulnerabilities="YES" in daily.conf

    @linveo could you update to the new image please? Hopefully, this should be fairly stable now.

    (Note: the image is AMD only - although I could use a patched kernel, I think it's better to stick with official kernels to avoid having the VM break when updating the kernel)

    Thanks @cmeerw! This is great because it permits Linux users everywhere to have easy access to NetBSD. Plus also, NetBSD fans easily can run NetBSD in lots of inexpensive cloud environments, as long as providers like Linveo are kind enough to add the image.

    May I please ask which NetBSD install sets are included in your new image?

    Would it make sense to provide a NetBSD-current image with all sets included? :) :) :)

    To what extent could your new image be used generally on Linux with Qemu? I guess the image would run on any architecture which supports Qemu emulation of AMD64?

    Thanks again! Best wishes!

  • @Not_Oles said: May I please ask which NetBSD install sets are included in your new image?

    I am installing "base etc kern-GENERIC man modules rescue" now.

    @Not_Oles said: Would it make sense to provide a NetBSD-current image with all sets included?

    I don't think it would make a lot of sense as the image would be quite large and as NetBSD-current changes daily, the image would need to change very frequently as well. I think it makes a lot more sense to use 10.0 as a starting point and then update to current. sysupgrade is a very nice tool that makes updating to current (and keeping up to date) very easy.

    Essentially you would

    • install sysupgrade (pkg_add sysupgrade)
    • set RELEASEDIR="https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/$(uname -m)" in /usr/pkg/etc/sysupgrade.conf
    • touch set.* files in /etc/mtree for additional package you want to install during the upgrade
    • sysupgrade auto

    @Not_Oles said: To what extent could your new image be used generally on Linux with Qemu? I guess the image would run on any architecture which supports Qemu emulation of AMD64?

    The main thing here is how to get network interfaces and SSH keys configured in the VM. VirtFusion seems to do that by making a small CD filesystem available that contains yaml files with the configuration data. I am looking for that filesystem, reading the yaml files and configuring the NetBSD system. I am actually not using the full cloud-init package to do that (as that would pull in way too many dependencies for my taste), but just using a small lua script for that.

    On your linveo VM you might see a sd0 drive (although that drive seems to disappear some time after the VM has been set up).

  • Not_OlesNot_Oles Provider
    edited October 2024

    @cmeerw said:

    sysupgrade is a very nice tool that makes updating to current (and keeping up to date) very easy.

    Essentially you would

    install sysupgrade (pkg_add sysupgrade)
    set RELEASEDIR="https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/$(uname -m)" in /usr/pkg/etc/sysupgrade.conf
    touch set.* files in /etc/mtree for additional package you want to install during the upgrade
    sysupgrade auto

    Suppose I try following @cmeerw's kind instructions for running sysupgrade on my presently installed VM -- in other words, not yet the newly updated @cmeerw image which he just mentioned above.

    • Start by installing sysupgrade:
    linveo# date
    Fri Oct  4 19:23:32 UTC 2024
    linveo# pkg_add sysupgrade
    sysupgrade-1.5nb10: copying /usr/pkg/share/examples/sysupgrade/default.conf to /usr/pkg/etc/sysupgrade.conf
    linveo# 
    
    • Next, set RELEASEDIR in /usr/pkg/etc/sysupgrade.conf:
    linveo# date
    Fri Oct  4 23:55:56 UTC 2024
    linveo# cd /usr/pkg/etc
    linveo# ls
    pkgin           sysupgrade.conf
    linveo# cat -n sysupgrade.conf 
         1  # $NetBSD: default.conf,v 1.2 2012/10/11 00:16:46 jmmv Exp $
         2
         3  # Configuration of automatic system upgrades by sysupgrade(8).
         4  #
         5  # See sysupgrade.conf(5) for details on the syntax of this file and the
         6  # meaning of the configuration variables.  Note that not all the supported
         7  # configuration variables are listed in this sample configuration file.
         8
         9  # Path to the release files (local path or remote URL).
        10  #RELEASEDIR="ssh://[email protected]/home/sysbuild/release/$(uname -m)"
        11  #RELEASEDIR="/home/sysbuild/release/$(uname -m)"
        12  #RELEASEDIR="https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.1/$(uname -m)"
        13  # Upgrade to the latest snapshot of the current branch
        14  #RELEASEDIR="https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/$(uname -m)"
        15  # Upgrade to the latest snapshot of a stable branch
        16  RELEASEDIR="https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/$(uname -m)"
        17
        18  # Name of the kernel to be installed.
        19  KERNEL=AUTO  # Guess from /netbsd (requires config(1)).
        20
        21  # Whitespace-separated list of sets to install.
        22  SETS=AUTO  # Guess from /etc/mtree/set.* files.
        23
        24  # Whitespace-separated list of postinstall(8) checks to automatically fix.
        25  POSTINSTALL_AUTOFIX="obsolete"
        26
        27  # Whether to run etcupdate or not as part of an upgrade.
        28  #
        29  # Running etcupdate is the only interactive step in the upgrade process, so
        30  # setting this variable to 'no' effectively makes upgrades unattended.  You
        31  # can later run etcupdate at a later step by hand.
        32  #ETCUPDATE=no
        33
        34  # Whether to delete the downloaded files after an upgrade or not.
        35  #
        36  # If you set ETCUPDATE=no, you will most likely want to disable
        37  # auto-cleaning as well.  The reason for this is that, if you want to later
        38  # do "sysupgrade etcupdate" using the same etc.tgz file downloaded during
        39  # the upgrade, you will need the same etc.tgz file to be present.
        40  #AUTOCLEAN=no
        41
        42  # Archive file extension of the sets. For now it can be either 'tgz' or
        43  # 'tar.xz'.
        44  #ARCHIVE_EXTENSION=tar.xz
    linveo# ed sysupgrade.conf 
    1920
    16
    RELEASEDIR="https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/$(uname -m)"
    s/^/# /p
    # RELEASEDIR="https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/$(uname -m)"
    a
    RELEASEDIR="https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/$(uname -m)"
    .
    w
    2001
    16,17p
    # RELEASEDIR="https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/$(uname -m)"
    RELEASEDIR="https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/$(uname -m)"
    q
    linveo# 
    
    • Next, "touch set.* files in /etc/mtree" for additional sets.

    What I already have in etc/mtree might be missing at least set.misc, set.modules, set.rescue, and set.text. Plus it also is missing the X sets, but I am okay with skipping X for the time being. Maybe I am okay with skipping modules, too.

    linveo# cd /etc/mtree
    linveo# ls -l
    total 4896
    -r--r--r--  1 root  wheel    68983 Mar 28  2024 NetBSD.dist
    -r--r--r--  1 root  wheel   880419 Mar 28  2024 set.base
    -r--r--r--  1 root  wheel  3048246 Mar 28  2024 set.comp
    -r--r--r--  1 root  wheel    48302 Mar 28  2024 set.etc
    -r--r--r--  1 root  wheel   914350 Mar 28  2024 set.man
    -r--r--r--  1 root  wheel    20222 Mar 28  2024 special
    linveo# 
    

    The touched files do not have any content, unlike all the other files in /etc/mtree.

    linveo# date
    Sat Oct  5 00:06:52 UTC 2024
    linveo# cd /etc/mtree
    linveo# ls -l
    total 4896
    -r--r--r--  1 root  wheel    68983 Mar 28  2024 NetBSD.dist
    -r--r--r--  1 root  wheel   880419 Mar 28  2024 set.base
    -r--r--r--  1 root  wheel  3048246 Mar 28  2024 set.comp
    -r--r--r--  1 root  wheel    48302 Mar 28  2024 set.etc
    -r--r--r--  1 root  wheel   914350 Mar 28  2024 set.man
    -r--r--r--  1 root  wheel    20222 Mar 28  2024 special
    linveo# touch set.misc set.rescue set.text
    linveo# ls -l
    total 4896
    -r--r--r--  1 root  wheel    68983 Mar 28  2024 NetBSD.dist
    -r--r--r--  1 root  wheel   880419 Mar 28  2024 set.base
    -r--r--r--  1 root  wheel  3048246 Mar 28  2024 set.comp
    -r--r--r--  1 root  wheel    48302 Mar 28  2024 set.etc
    -r--r--r--  1 root  wheel   914350 Mar 28  2024 set.man
    -rw-r--r--  1 root  wheel        0 Oct  5 00:07 set.misc
    -rw-r--r--  1 root  wheel        0 Oct  5 00:07 set.rescue
    -rw-r--r--  1 root  wheel        0 Oct  5 00:07 set.text
    -r--r--r--  1 root  wheel    20222 Mar 28  2024 special
    linveo# 
    

    Okay, now let's try running sysupgrade auto -- I will post about what happens. :)

    --------

    Meanwhile, here are a few interesting snippets from my homework skimming:

    linveo# man sysupgrade
    man: Formatting manual page...
    SYSUPGRADE(8)               System Manager's Manual              SYSUPGRADE(8)
    
    NAME
         sysupgrade - upgrades a NetBSD system to a newer version
    
    SYNOPSIS
         common_flags ::= [-c config_name] [-d destdir] [-o variable=value]
    
    DESCRIPTION
         sysupgrade is a utility that automates the process of upgrading a
         possibly-running NetBSD system to a newer release.
    
         sysupgrade works by first fetching the release sets from a remote site or
         from a local directory, then by upgrading the system using such release
         sets and finally by taking care of bringing the system configuration up
         to date.  In other words, sysupgrade does nothing special on its own: it
         is just a utility that automates a highly manual process and relies on
         other tools within the system to perform its job.
    
         sysupgrade has a subcommand-based interface: every command performs a
         single step of the upgrade procedure, and the `auto' command orchestrates
         a complete upgrade by invoking the rest of the commands in a specific
         order.  There are a set of options that apply to all commands (those
         stated before the command name), and every particular command may accept
         its own options and arguments as shown in the synopsis.
    
         The behavior of sysupgrade is defined by a configuration file that
         specifies how to apply an update to the system (see sysupgrade.conf(5)).
         For example, the configuration states which distribution sets ought to be
         installed, where they need to be downloaded from, and whether the system
         configuration files should be upgraded.
    
      [ . . . ]
    
    EXAMPLES AND TROUBLESHOOTING
         The most common way of executing sysupgrade is by using the `auto'
         command and relying in the default configuration file:
    
               $ sysupgrade auto
    
      [ . . . ]
    
    SEE ALSO
         sysbuild(1), sysupgrade.conf(5), etcupdate(8), postinstall(8)
    
    AUTHORS
         The sysupgrade utility was developed by Julio Merino <[email protected]>.
    
      [ . . . ]
    
    linveo# man mtree
    man: Formatting manual page...
    MTREE(8)                    System Manager's Manual                   MTREE(8)
    
    NAME
         mtree - map a directory hierarchy
    
    SYNOPSIS
         mtree [-bCcDdejLlMnPqrStUuWx] [-i | -m] [-E tags] [-F flavor] [-f spec]
               [-I tags] [-K keywords] [-k keywords] [-N dbdir] [-O onlyfile]
               [-p path] [-R keywords] [-s seed] [-X exclude-file]
    
    DESCRIPTION
         The mtree utility compares a file hierarchy against a specification,
         creates a specification for a file hierarchy, or modifies a
         specification.
    
      [ . . . ]
    
    HISTORY
         The mtree utility appeared in 4.3BSD-Reno.  [ . . . ]
    
     [ . . . ]
    
    linveo# 
    
  • Here is the output from running sysupgrade auto.

    Probably I should run the fix given at the end for the failed postinstall checks.

    What about the lines that say

    "[1] Bad system call (core dumped) /usr/sbin/etcupdate -a -l ${sflags}"

    and

    "[1] Bad system call (core dumped) ${HOST_SH} "${MAKEDEV_DIR}/MAKEDEV" -s pty0 2>... |"?

    linveo# date
    Sat Oct  5 00:24:12 UTC 2024
    linveo# sysupgrade auto
    sysupgrade: I: Starting auto-update with stages: fetch modules kernel sets etcupdate postinstall clean
    sysupgrade: I: Downloading https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/base.tar.xz into /var/cache/sysupgrade
    Trying [2a04:4e42:400::262]:443 ...
    Requesting https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/base.tar.xz
    Redirected to /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/base.tar.xz
    Trying [2a04:4e42::262]:443 ...
    Requesting /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/base.tar.xz
    100% |*****************************************************| 40680 KiB  174.90 KiB/s    00:00 ETA
    41657052 bytes retrieved in 03:52 (174.90 KiB/s)
    sysupgrade: I: Downloading https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/comp.tar.xz into /var/cache/sysupgrade
    Trying [2a04:4e42:600::262]:443 ...
    Requesting https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/comp.tar.xz
    Redirected to /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/comp.tar.xz
    Trying [2a04:4e42:400::262]:443 ...
    Requesting /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/comp.tar.xz
    100% |*****************************************************| 82243 KiB  169.25 KiB/s    00:00 ETA
    84217696 bytes retrieved in 08:05 (169.25 KiB/s)
    sysupgrade: I: Downloading https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/etc.tar.xz into /var/cache/sysupgrade
    Trying [2a04:4e42::262]:443 ...
    Requesting https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/etc.tar.xz
    Redirected to /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/etc.tar.xz
    Trying [2a04:4e42::262]:443 ...
    Requesting /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/etc.tar.xz
    100% |*****************************************************|   497 KiB  168.08 KiB/s    00:00 ETA
    509504 bytes retrieved in 00:02 (168.08 KiB/s)
    sysupgrade: I: Downloading https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/man.tar.xz into /var/cache/sysupgrade
    Trying [2a04:4e42:400::262]:443 ...
    Requesting https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/man.tar.xz
    Redirected to /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/man.tar.xz
    Trying [2a04:4e42:200::262]:443 ...
    Requesting /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/man.tar.xz
    100% |*****************************************************|  5557 KiB  172.83 KiB/s    00:00 ETA
    5691280 bytes retrieved in 00:32 (172.83 KiB/s)
    sysupgrade: I: Downloading https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/misc.tar.xz into /var/cache/sysupgrade
    Trying [2a04:4e42:400::262]:443 ...
    Requesting https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/misc.tar.xz
    Redirected to /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/misc.tar.xz
    Trying [2a04:4e42:200::262]:443 ...
    Requesting /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/misc.tar.xz
    100% |*****************************************************|  4058 KiB  169.19 KiB/s    00:00 ETA
    4156132 bytes retrieved in 00:23 (169.19 KiB/s)
    sysupgrade: I: Downloading https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/rescue.tar.xz into /var/cache/sysupgrade
    Trying [2a04:4e42:600::262]:443 ...
    Requesting https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/rescue.tar.xz
    Redirected to /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/rescue.tar.xz
    Trying [2a04:4e42:600::262]:443 ...
    Requesting /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/rescue.tar.xz
    100% |*****************************************************|  3437 KiB  168.19 KiB/s    00:00 ETA
    3519676 bytes retrieved in 00:20 (168.19 KiB/s)
    sysupgrade: I: Downloading https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/text.tar.xz into /var/cache/sysupgrade
    Trying [2a04:4e42::262]:443 ...
    Requesting https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/sets/text.tar.xz
    Redirected to /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/text.tar.xz
    Trying [2a04:4e42:400::262]:443 ...
    Requesting /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/sets/text.tar.xz
    100% |*****************************************************|  1893 KiB  170.57 KiB/s    00:00 ETA
    1938608 bytes retrieved in 00:11 (170.57 KiB/s)
    sysupgrade: I: Downloading https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/kernel/netbsd-GENERIC.gz into /var/cache/sysupgrade
    Trying [2a04:4e42:400::262]:443 ...
    Requesting https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/amd64/binary/kernel/netbsd-GENERIC.gz
    Redirected to /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/kernel/netbsd-GENERIC.gz
    Trying [2a04:4e42:200::262]:443 ...
    Requesting /pub/NetBSD-daily/HEAD/202410030430Z/amd64/binary/kernel/netbsd-GENERIC.gz
    100% |*****************************************************| 10880 KiB  174.65 KiB/s    00:00 ETA
    11141441 bytes retrieved in 01:02 (174.65 KiB/s)
    sysupgrade: I: Skipping modules installation (modules not in SETS)
    sysupgrade: I: Upgrading kernel using GENERIC in /
    sysupgrade: I: Backing up 'netbsd' kernel as 'onetbsd'
    sysupgrade: I: Upgrading base system
    sysupgrade: I: Extracting base into /
    100% |*****************************************************| 40680 KiB  491.59 KiB/s  - stalled -
    sysupgrade: I: Extracting comp into /
    100% |*****************************************************| 82243 KiB  369.57 KiB/s    00:00 ETA
    sysupgrade: I: Extracting man into /
    100% |*****************************************************|  5557 KiB  117.96 KiB/s    00:00 ETA
    sysupgrade: I: Extracting misc into /
    100% |*****************************************************|  4058 KiB  664.97 KiB/s    00:00 ETA
    sysupgrade: I: Extracting rescue into /
    100% |*****************************************************|  3437 KiB    1.58 MiB/s    00:00 ETA
    sysupgrade: I: Extracting text into /
    100% |*****************************************************|  1893 KiB  328.65 KiB/s    00:00 ETA
    sysupgrade: I: Upgrading /etc interactively
    *** Creating /tmp/temproot
    *** Populating /tmp/temproot from /var/cache/sysupgrade/etc.tar.xz
    *** Checking for new directories
    [1]   Bad system call (core dumped) /usr/sbin/etcupdate -a -l ${sflags}
    sysupgrade: I: Performing postinstall checks
    Note: Creating temporary directory /tmp/_postinstall.19628.0/etc.tgz
    Note: Extracting files from /var/cache/sysupgrade/etc.tar.xz
    Source directory: /tmp/_postinstall.19628.0/etc.tgz
     (extracted from: /var/cache/sysupgrade/etc.tar.xz)
    Target directory: /
    obsolete fix:
            Removed obsolete file /usr/share/man/man5/openssl_config.5
            Removed obsolete file /usr/share/man/man4/i386/viac7temp.4
            Removed obsolete file /usr/share/man/man3/openssl_evp.3
            Removed obsolete file /usr/share/man/man3/openssl_bio.3
            Removed obsolete file /usr/share/man/man1/xstr.1
            Removed obsolete file /usr/share/man/man1/openssl_x509.1
            Removed obsolete file /usr/share/man/man1/openssl_version.1
            Removed obsolete file /usr/share/man/man1/openssl_verify.1
            Removed obsolete file /usr/share/man/man1/openssl_tsget.1
            Removed obsolete file /usr/share/man/man1/openssl_ts.1
            Removed obsolete file /usr/share/man/man1/openssl_storeutl.1
            Removed obsolete file /usr/share/man/man1/openssl_srp.1
            Removed obsolete file /usr/share/man/man1/openssl_spkac.1
            Removed obsolete file /usr/share/man/man1/openssl_speed.1
            Removed obsolete file /usr/share/man/man1/openssl_smime.1
            Removed obsolete file /usr/share/man/man1/openssl_sess_id.1
            Removed obsolete file /usr/share/man/man1/openssl_s_time.1
            Removed obsolete file /usr/share/man/man1/openssl_s_server.1
            Removed obsolete file /usr/share/man/man1/openssl_s_client.1
            Removed obsolete file /usr/share/man/man1/openssl_rsautl.1
            Removed obsolete file /usr/share/man/man1/openssl_rsa.1
            Removed obsolete file /usr/share/man/man1/openssl_req.1
            Removed obsolete file /usr/share/man/man1/openssl_rehash.1
            Removed obsolete file /usr/share/man/man1/openssl_rand.1
            Removed obsolete file /usr/share/man/man1/openssl_prime.1
            Removed obsolete file /usr/share/man/man1/openssl_pkeyutl.1
            Removed obsolete file /usr/share/man/man1/openssl_pkeyparam.1
            Removed obsolete file /usr/share/man/man1/openssl_pkey.1
            Removed obsolete file /usr/share/man/man1/openssl_pkcs8.1
            Removed obsolete file /usr/share/man/man1/openssl_pkcs7.1
            Removed obsolete file /usr/share/man/man1/openssl_pkcs12.1
            Removed obsolete file /usr/share/man/man1/openssl_passwd.1
            Removed obsolete file /usr/share/man/man1/openssl_ocsp.1
            Removed obsolete file /usr/share/man/man1/openssl_nseq.1
            Removed obsolete file /usr/share/man/man1/openssl_list.1
            Removed obsolete file /usr/share/man/man1/openssl_genrsa.1
            Removed obsolete file /usr/share/man/man1/openssl_genpkey.1
            Removed obsolete file /usr/share/man/man1/openssl_gendsa.1
            Removed obsolete file /usr/share/man/man1/openssl_errstr.1
            Removed obsolete file /usr/share/man/man1/openssl_engine.1
            Removed obsolete file /usr/share/man/man1/openssl_enc.1
            Removed obsolete file /usr/share/man/man1/openssl_ecparam.1
            Removed obsolete file /usr/share/man/man1/openssl_ec.1
            Removed obsolete file /usr/share/man/man1/openssl_dsaparam.1
            Removed obsolete file /usr/share/man/man1/openssl_dsa.1
            Removed obsolete file /usr/share/man/man1/openssl_dhparam.1
            Removed obsolete file /usr/share/man/man1/openssl_dgst.1
            Removed obsolete file /usr/share/man/man1/openssl_crl2pkcs7.1
            Removed obsolete file /usr/share/man/man1/openssl_crl.1
            Removed obsolete file /usr/share/man/man1/openssl_cms.1
            Removed obsolete file /usr/share/man/man1/openssl_ciphers.1
            Removed obsolete file /usr/share/man/man1/openssl_ca.1
            Removed obsolete file /usr/share/man/man1/openssl_asn1parse.1
            Removed obsolete file /usr/share/man/man1/openssl_CA.pl.1
            Removed obsolete file /usr/share/man/man1/mkstr.1
            Removed obsolete file /usr/share/man/html5/openssl_config.html
            Removed obsolete file /usr/share/man/html3/openssl_evp.html
            Removed obsolete file /usr/share/man/html3/openssl_bio.html
            Removed obsolete file /usr/share/man/html1/xstr.html
            Removed obsolete file /usr/share/man/html1/openssl_storeutl.html
            Removed obsolete file /usr/share/man/html1/openssl_srp.html
            Removed obsolete file /usr/share/man/html1/openssl_rehash.html
            Removed obsolete file /usr/share/man/html1/openssl_prime.html
            Removed obsolete file /usr/share/man/html1/openssl_ocsp.html
            Removed obsolete file /usr/share/man/html1/openssl_list.html
            Removed obsolete file /usr/share/man/html1/openssl_engine.html
            Removed obsolete file /usr/share/man/html1/mkstr.html
            Removed obsolete link /usr/share/certs/mozilla/server/GLOBALTRUST_2020.pem
            Removed obsolete link /usr/share/certs/mozilla/email/certSIGN_ROOT_CA.pem
            Removed obsolete link /usr/share/certs/mozilla/email/GLOBALTRUST_2020.pem
            Removed obsolete link /usr/share/certs/mozilla/email/ACCVRAIZ1.pem
            Removed obsolete file /usr/libexec/named/filter-aaaa.so
            Removed obsolete directory /usr/libexec/named
            Removed obsolete directory /usr/include/gcc-9/sanitizer
            Removed obsolete directory /usr/include/gcc-9
            Removed obsolete file /usr/include/gcc-10/xtestintrin.h
            Removed obsolete file /usr/include/gcc-10/xsavesintrin.h
            Removed obsolete file /usr/include/gcc-10/xsaveoptintrin.h
            Removed obsolete file /usr/include/gcc-10/xsaveintrin.h
            Removed obsolete file /usr/include/gcc-10/xsavecintrin.h
            Removed obsolete file /usr/include/gcc-10/xopintrin.h
            Removed obsolete file /usr/include/gcc-10/xmmintrin.h
            Removed obsolete file /usr/include/gcc-10/x86intrin.h
            Removed obsolete file /usr/include/gcc-10/wmmintrin.h
            Removed obsolete file /usr/include/gcc-10/wbnoinvdintrin.h
            Removed obsolete file /usr/include/gcc-10/waitpkgintrin.h
            Removed obsolete file /usr/include/gcc-10/vpclmulqdqintrin.h
            Removed obsolete file /usr/include/gcc-10/vaesintrin.h
            Removed obsolete file /usr/include/gcc-10/tmmintrin.h
            Removed obsolete file /usr/include/gcc-10/tgmath.h
            Removed obsolete file /usr/include/gcc-10/tbmintrin.h
            Removed obsolete file /usr/include/gcc-10/stdatomic.h
            Removed obsolete file /usr/include/gcc-10/smmintrin.h
            Removed obsolete file /usr/include/gcc-10/shaintrin.h
            Removed obsolete file /usr/include/gcc-10/sgxintrin.h
            Removed obsolete file /usr/include/gcc-10/sanitizer/tsan_interface_atomic.h
            Removed obsolete file /usr/include/gcc-10/sanitizer/tsan_interface.h
            Removed obsolete file /usr/include/gcc-10/sanitizer/netbsd_syscall_hooks.h
            Removed obsolete file /usr/include/gcc-10/sanitizer/lsan_interface.h
            Removed obsolete file /usr/include/gcc-10/sanitizer/common_interface_defs.h
            Removed obsolete file /usr/include/gcc-10/sanitizer/asan_interface.h
            Removed obsolete file /usr/include/gcc-10/sanitizer/allocator_interface.h
            Removed obsolete file /usr/include/gcc-10/rtmintrin.h
            Removed obsolete file /usr/include/gcc-10/rdseedintrin.h
            Removed obsolete file /usr/include/gcc-10/prfchwintrin.h
            Removed obsolete file /usr/include/gcc-10/popcntintrin.h
            Removed obsolete file /usr/include/gcc-10/pmmintrin.h
            Removed obsolete file /usr/include/gcc-10/pkuintrin.h
            Removed obsolete file /usr/include/gcc-10/pconfigintrin.h
            Removed obsolete file /usr/include/gcc-10/openacc.h
            Removed obsolete file /usr/include/gcc-10/omp.h
            Removed obsolete file /usr/include/gcc-10/nmmintrin.h
            Removed obsolete file /usr/include/gcc-10/mwaitxintrin.h
            Removed obsolete file /usr/include/gcc-10/movdirintrin.h
            Removed obsolete file /usr/include/gcc-10/mmintrin.h
            Removed obsolete file /usr/include/gcc-10/mm_malloc.h
            Removed obsolete file /usr/include/gcc-10/mm3dnow.h
            Removed obsolete file /usr/include/gcc-10/lzcntintrin.h
            Removed obsolete file /usr/include/gcc-10/lwpintrin.h
            Removed obsolete file /usr/include/gcc-10/immintrin.h
            Removed obsolete file /usr/include/gcc-10/ia32intrin.h
            Removed obsolete file /usr/include/gcc-10/gfniintrin.h
            Removed obsolete file /usr/include/gcc-10/fxsrintrin.h
            Removed obsolete file /usr/include/gcc-10/fmaintrin.h
            Removed obsolete file /usr/include/gcc-10/fma4intrin.h
            Removed obsolete file /usr/include/gcc-10/f16cintrin.h
            Removed obsolete file /usr/include/gcc-10/enqcmdintrin.h
            Removed obsolete file /usr/include/gcc-10/emmintrin.h
            Removed obsolete file /usr/include/gcc-10/cross-stdarg.h
            Removed obsolete file /usr/include/gcc-10/cpuid.h
            Removed obsolete file /usr/include/gcc-10/clzerointrin.h
            Removed obsolete file /usr/include/gcc-10/clwbintrin.h
            Removed obsolete file /usr/include/gcc-10/clflushoptintrin.h
            Removed obsolete file /usr/include/gcc-10/cldemoteintrin.h
            Removed obsolete file /usr/include/gcc-10/cetintrin.h
            Removed obsolete file /usr/include/gcc-10/cet.h
            Removed obsolete file /usr/include/gcc-10/bmmintrin.h
            Removed obsolete file /usr/include/gcc-10/bmiintrin.h
            Removed obsolete file /usr/include/gcc-10/bmi2intrin.h
            Removed obsolete file /usr/include/gcc-10/avxintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512vpopcntdqvlintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512vpopcntdqintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512vp2intersectvlintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512vp2intersectintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512vnnivlintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512vnniintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512vlintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512vldqintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512vlbwintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512vbmivlintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512vbmiintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512vbmi2vlintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512vbmi2intrin.h
            Removed obsolete file /usr/include/gcc-10/avx512pfintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512ifmavlintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512ifmaintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512fintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512erintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512dqintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512cdintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512bwintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512bitalgintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512bf16vlintrin.h
            Removed obsolete file /usr/include/gcc-10/avx512bf16intrin.h
            Removed obsolete file /usr/include/gcc-10/avx5124vnniwintrin.h
            Removed obsolete file /usr/include/gcc-10/avx5124fmapsintrin.h
            Removed obsolete file /usr/include/gcc-10/avx2intrin.h
            Removed obsolete file /usr/include/gcc-10/ammintrin.h
            Removed obsolete file /usr/include/gcc-10/adxintrin.h
            Removed obsolete file /usr/include/g++/debug/array
            Removed obsolete file /usr/include/g++/bits/range_cmp.h
            Removed obsolete file /usr/bin/xstr
            Removed obsolete file /usr/bin/mkstr
            Removed obsolete file /lib/libblocklist.so.0.0
            Removed obsolete file /lib/libc.so.12.220
            Removed obsolete file /lib/libm.so.0.13
            Removed obsolete file /usr/lib/libarchive.so.5.0
            Removed obsolete link /usr/lib/libblocklist.so.0.0
            Removed obsolete file /usr/lib/libbsdmalloc.so.0.0
            Removed obsolete link /usr/lib/libc.so.12.220
            Removed obsolete file /usr/lib/libgomp.so.2.1
            Removed obsolete link /usr/lib/libm.so.0.13
            Removed obsolete file /usr/lib/libsqlite3.so.1.4
            Removed obsolete file /usr/lib/libstdc++.so.9.0
    postinstall fixes passed: obsolete
    postinstall fixes failed:
    Note: Creating temporary directory /tmp/_postinstall.26026.0/etc.tgz
    Note: Extracting files from /var/cache/sysupgrade/etc.tar.xz
    Source directory: /tmp/_postinstall.26026.0/etc.tgz
     (extracted from: /var/cache/sysupgrade/etc.tar.xz)
    Target directory: /
    atf check:
            (Checking for NetBSD.conf from /tmp/_postinstall.26026.0/etc.tgz/etc/atf instead of /tmp/_postinstall.26026.0/etc.tgz/external/bsd/atf/etc/atf)
            (Checking for atf-run.hooks from /tmp/_postinstall.26026.0/etc.tgz/etc/atf instead of /tmp/_postinstall.26026.0/etc.tgz/external/bsd/atf/dist/tools/sample)
    autofsconfig check:
    blocklist check:
    bluetooth check:
    catpages check:
    ddbonpanic check:
    defaults check:
            (Checking for pf.boot.conf from /tmp/_postinstall.26026.0/etc.tgz/etc/defaults instead of /tmp/_postinstall.26026.0/etc.tgz/usr.sbin/pf/etc/defaults)
            /tmp/_postinstall.26026.0/etc.tgz/etc/defaults/npf.boot.conf != /etc/defaults/npf.boot.conf
            /tmp/_postinstall.26026.0/etc.tgz/etc/defaults/rc.conf != /etc/defaults/rc.conf
    dhcpcd check:
            (Checking for dhcpcd.conf from /tmp/_postinstall.26026.0/etc.tgz/etc instead of /tmp/_postinstall.26026.0/etc.tgz/external/bsd/dhcpcd/dist/src)
    dhcpcdrundir check:
    envsys check:
    fontconfig check:
            /tmp/_postinstall.26026.0/etc.tgz/etc/fonts/conf.avail is not a directory; skipping check
    gid check:
    gpio check:
    hosts check:
    iscsi check:
    makedev check:
            (Checking for MAKEDEV from /tmp/_postinstall.26026.0/etc.tgz/dev instead of /tmp/_postinstall.26026.0)
            /tmp/_postinstall.26026.0/etc.tgz/dev/MAKEDEV != /dev/MAKEDEV
            (Checking for MAKEDEV.local from /tmp/_postinstall.26026.0/etc.tgz/dev instead of /tmp/_postinstall.26026.0/etc.tgz/etc)
    manconf check:
    motd check:
    mtree check:
            /tmp/_postinstall.26026.0/etc.tgz/etc/mtree/special != /etc/mtree/special
            /tmp/_postinstall.26026.0/etc.tgz/etc/mtree/NetBSD.dist != /etc/mtree/NetBSD.dist
    named check:
            /tmp/_postinstall.26026.0/etc.tgz/etc/namedb/root.cache != /etc/namedb/root.cache
    opensslcertsconf check:
    opensslcertsrehash check:
            /etc/openssl/certs needs rehash
    pam check:
    periodic check:
            /tmp/_postinstall.26026.0/etc.tgz/etc/security != /etc/security
    pf check:
            (Checking for pf.os from /tmp/_postinstall.26026.0/etc.tgz/etc instead of /tmp/_postinstall.26026.0/etc.tgz/dist/pf/etc)
    ptyfsoldnodes check:
    [1]   Bad system call (core dumped) ${HOST_SH} "${MAKEDEV_DIR}/MAKEDEV" -s pty0 2>... |
          Done                    ${AWK} "\
                BEGIN { before_re = \".*device=...
            Cannot find device major numbers for pty master and slave
    pwd_mkdb check:
    rc check:
            /tmp/_postinstall.26026.0/etc.tgz/etc/rc.d/bluetooth != /etc/rc.d/bluetooth
            /tmp/_postinstall.26026.0/etc.tgz/etc/rc.d/certctl_init != /etc/rc.d/certctl_init
            /tmp/_postinstall.26026.0/etc.tgz/etc/rc.d/ip6addrctl != /etc/rc.d/ip6addrctl
            /tmp/_postinstall.26026.0/etc.tgz/etc/rc.d/ipfs != /etc/rc.d/ipfs
            /etc/rc.d/iscsid_volumes does not exist
            /tmp/_postinstall.26026.0/etc.tgz/etc/rc.d/named != /etc/rc.d/named
            /tmp/_postinstall.26026.0/etc.tgz/etc/rc.d/npf != /etc/rc.d/npf
            /tmp/_postinstall.26026.0/etc.tgz/etc/rc.d/postfix != /etc/rc.d/postfix
            /tmp/_postinstall.26026.0/etc.tgz/etc/rc.d/resize_root != /etc/rc.d/resize_root
            /tmp/_postinstall.26026.0/etc.tgz/etc/rc.d/securelevel != /etc/rc.d/securelevel
            /tmp/_postinstall.26026.0/etc.tgz/etc/rc.d/sshd != /etc/rc.d/sshd
            /tmp/_postinstall.26026.0/etc.tgz/etc/rc.d/sysdb != /etc/rc.d/sysdb
            (Checking for blocklistd from /tmp/_postinstall.26026.0/etc.tgz/etc/rc.d instead of /tmp/_postinstall.26026.0/etc.tgz/external/bsd/blocklist/etc/rc.d)
    ssh check:
            (Checking for moduli from /tmp/_postinstall.26026.0/etc.tgz/etc instead of /tmp/_postinstall.26026.0/etc.tgz/crypto/external/bsd/openssh/dist)
    tcpdumpchroot check:
    uid check:
    varrwho check:
    varshm check:
    wscons check:
    x11 check:
    xkb check:
    obsolete check:
    postinstall checks passed: atf autofsconfig blocklist bluetooth catpages ddbonpanic dhcpcd dhcpcdrundir envsys fontconfig gid gpio hosts iscsi manconf motd named opensslcertsconf pam pf pwd_mkdb ssh tcpdumpchroot uid varrwho varshm wscons x11 xkb obsolete
    postinstall checks failed: defaults makedev mtree opensslcertsrehash periodic ptyfsoldnodes rc
    To fix, run:
        sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tar.xz -d / fix defaults makedev mtree opensslcertsrehash periodic ptyfsoldnodes rc
    Note that this may overwrite local changes.
    sysupgrade: E: Some postinstall(8) checks have failed
    linveo# 
    
  • Here is what happened when the fix ran:

    linveo# date
    Sat Oct  5 01:02:03 UTC 2024
    linveo# sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tar.xz -d / fix defaults makedev mtree opensslcertsrehash periodic ptyfsoldnodes rc
    Note: Creating temporary directory /tmp/_postinstall.25531.0/etc.tgz
    Note: Extracting files from /var/cache/sysupgrade/etc.tar.xz
    Source directory: /tmp/_postinstall.25531.0/etc.tgz
     (extracted from: /var/cache/sysupgrade/etc.tar.xz)
    Target directory: /
    defaults fix:
            (Checking for pf.boot.conf from /tmp/_postinstall.25531.0/etc.tgz/etc/defaults instead of /tmp/_postinstall.25531.0/etc.tgz/usr.sbin/pf/etc/defaults)
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/defaults/npf.boot.conf to /etc/defaults/npf.boot.conf
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/defaults/rc.conf to /etc/defaults/rc.conf
    makedev fix:
            (Checking for MAKEDEV from /tmp/_postinstall.25531.0/etc.tgz/dev instead of /tmp/_postinstall.25531.0)
            Copied /tmp/_postinstall.25531.0/etc.tgz/dev/MAKEDEV to /dev/MAKEDEV
            (Checking for MAKEDEV.local from /tmp/_postinstall.25531.0/etc.tgz/dev instead of /tmp/_postinstall.25531.0/etc.tgz/etc)
    mtree fix:
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/mtree/special to /etc/mtree/special
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/mtree/NetBSD.dist to /etc/mtree/NetBSD.dist
    opensslcertsrehash fix:
    periodic fix:
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/security to /etc/security
    ptyfsoldnodes fix:
    [1]   Bad system call (core dumped) ${HOST_SH} "${MAKEDEV_DIR}/MAKEDEV" -s pty0 2>... |
          Done                    ${AWK} "\
                BEGIN { before_re = \".*device=...
            Cannot find device major numbers for pty master and slave
    rc fix:
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/rc.d/bluetooth to /etc/rc.d/bluetooth
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/rc.d/certctl_init to /etc/rc.d/certctl_init
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/rc.d/ip6addrctl to /etc/rc.d/ip6addrctl
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/rc.d/ipfs to /etc/rc.d/ipfs
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/rc.d/iscsid_volumes to /etc/rc.d/iscsid_volumes
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/rc.d/named to /etc/rc.d/named
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/rc.d/npf to /etc/rc.d/npf
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/rc.d/postfix to /etc/rc.d/postfix
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/rc.d/resize_root to /etc/rc.d/resize_root
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/rc.d/securelevel to /etc/rc.d/securelevel
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/rc.d/sshd to /etc/rc.d/sshd
            Copied /tmp/_postinstall.25531.0/etc.tgz/etc/rc.d/sysdb to /etc/rc.d/sysdb
            (Checking for blocklistd from /tmp/_postinstall.25531.0/etc.tgz/etc/rc.d instead of /tmp/_postinstall.25531.0/etc.tgz/external/bsd/blocklist/etc/rc.d)
    postinstall fixes passed: defaults makedev mtree opensslcertsrehash periodic rc
    postinstall fixes failed: ptyfsoldnodes
    linveo# 
    

    I see another core dump and a post install fix that failed.

    So, what now?

    Also, is the system going to be able to reboot?

    . . . Haha! :) :star: <3

  • It'd be handy/useful to others if you wrapped those outputs in spoiler tags. ;)

    In stasis until the shitposting stops/abates.
    Than=compare;then=sequence:brought=bring;bought=buy:staffs=pile of sticks:informations/infos=no plural.
    It wisnae me! A big boy done it and ran away. || NVMe2G for life! until death (the end is nigh).

  • Thanks for asking for spoiler tags! I had been thinking about doing that! It is a lot of output. :)

  • @AlwaysSkint You said "wrap."

    • Does every line need to start with ">!", or
    • is it enough to have the first and last lines start with ">!", or
    • maybe have ">!" above and below the first and last lines of terminal output, or
    • above and below the code fences "~~~" which are above and below the first and last lines of the terminal output snippet?

    Thanks!

  • Not_OlesNot_Oles Provider
    edited October 2024

    Seems to reboot okay!

    linveo# date; reboot
    Sat Oct  5 02:54:22 UTC 2024
    Connection to xxx.xxx.xxx.xxx closed by remote host.
    Connection to xxx.xxx.xxx.xxx closed.
    chronos@penguin:~/servers/linveo$ sleep 60
    chronos@penguin:~/servers/linveo$ `head -n 1 login` 
    Last login: Fri Oct  4 23:55:24 2024 from xxx.xxx.xxx.xxx
    NetBSD 10.99.12 (GENERIC) #0: Wed Oct  2 21:21:26 UTC 2024
    
    Welcome to NetBSD!
    
    We recommend that you create a non-root account and use su(1) for root access.
    linveo# date
    Sat Oct  5 02:55:46 UTC 2024
    linveo# uname -a
    NetBSD linveo.metalvps.com 10.99.12 NetBSD 10.99.12 (GENERIC) #0: Wed Oct  2 21:21:26 UTC 2024 [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC amd64
    linveo#
    
  • Rerunning the command which produced the ptyfsoldnodes failure seems to succeed after the reboot.

    linveo# sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tar.xz -d / fix defaults makedev mtree opensslcertsrehash periodic ptyfsoldnodes rc
    Note: Creating temporary directory /tmp/_postinstall.1137.0/etc.tgz
    Note: Extracting files from /var/cache/sysupgrade/etc.tar.xz
    Source directory: /tmp/_postinstall.1137.0/etc.tgz
    (extracted from: /var/cache/sysupgrade/etc.tar.xz)
    Target directory: /
    defaults fix:
           (Checking for pf.boot.conf from /tmp/_postinstall.1137.0/etc.tgz/etc/defaults instead of /tmp/_postinstall.1137.0/etc.tgz/usr.sbin/pf/etc/defaults)
    makedev fix:
           (Checking for MAKEDEV from /tmp/_postinstall.1137.0/etc.tgz/dev instead of /tmp/_postinstall.1137.0)
           (Checking for MAKEDEV.local from /tmp/_postinstall.1137.0/etc.tgz/dev instead of /tmp/_postinstall.1137.0/etc.tgz/etc)
    mtree fix:
    opensslcertsrehash fix:
    periodic fix:
    ptyfsoldnodes fix:
    rc fix:
           (Checking for blocklistd from /tmp/_postinstall.1137.0/etc.tgz/etc/rc.d instead of /tmp/_postinstall.1137.0/etc.tgz/external/bsd/blocklist/etc/rc.d)
    postinstall fixes passed: defaults makedev mtree opensslcertsrehash periodic ptyfsoldnodes rc
    postinstall fixes failed:
    linveo# echo $?
    linveo# 0
    
  • @Not_Oles said: "[1] Bad system call (core dumped) /usr/sbin/etcupdate -a -l ${sflags}"

    Ahh, yes...

    Guess upgrading the kernel first, rebooting and then updating userland would have been the safer option :o

    So maybe: sysupgrade fetch, sysupgrade kernel, reboot, sysupgrade auto

  • @Not_Oles said: You said "wrap."

    In the context of; paste in your content with it all highlighted, then select Spolier.
    You've sussed it though. :)

    In stasis until the shitposting stops/abates.
    Than=compare;then=sequence:brought=bring;bought=buy:staffs=pile of sticks:informations/infos=no plural.
    It wisnae me! A big boy done it and ran away. || NVMe2G for life! until death (the end is nigh).

  • linveolinveo ProviderOG

    @cmeerw said:
    I have created a new NetBSD 10.0 image with these changes:

    • certificates are now set up correctly out of the box (thanks @Not_Oles for pointing that out)
    • use "log" option on the root filesystem
    • pre-install "modules" and "rescue" packages
    • set savecore=NO in rc.conf and fetch_pkg_vulnerabilities="YES" in daily.conf

    @linveo could you update to the new image please? Hopefully, this should be fairly stable now.

    (Note: the image is AMD only - although I could use a patched kernel, I think it's better to stick with official kernels to avoid having the VM break when updating the kernel)

    Thanks for making these updates. This new template is now available. I appreciate all the work you've done to further the usage of NetBSD!

    linveo.com | Shared Hosting | KVM VPS | Dedicated Servers

  • @linveo said: Thanks for making these updates. This new template is now available. I appreciate all the work you've done to further the usage of NetBSD!

    It still seems to be rebuilding from the old image (for me on kvmtx12). I can see that you have downloaded the updated image (netbsd-10.0-v3.qcow2).

  • linveolinveo ProviderOG

    @cmeerw said:

    @linveo said: Thanks for making these updates. This new template is now available. I appreciate all the work you've done to further the usage of NetBSD!

    It still seems to be rebuilding from the old image (for me on kvmtx12). I can see that you have downloaded the updated image (netbsd-10.0-v3.qcow2).

    I have removed the old template from that node. If you try again it should pull in the latest version. I thought by changing the version number, VF would grab a new version to cache, but I guess not.

    linveo.com | Shared Hosting | KVM VPS | Dedicated Servers

  • @linveo said:

    @cmeerw said:

    @linveo said: Thanks for making these updates. This new template is now available. I appreciate all the work you've done to further the usage of NetBSD!

    It still seems to be rebuilding from the old image (for me on kvmtx12). I can see that you have downloaded the updated image (netbsd-10.0-v3.qcow2).

    I have removed the old template from that node. If you try again it should pull in the latest version. I thought by changing the version number, VF would grab a new version to cache, but I guess not.

    Thanks, it did install with the new image now.

  • @AlwaysSkint said: paste in your content with it all highlighted

    Haha! I didn't get that far. I was thinking of putting the about-to-be-posted content into a file and running something like sed -i 's/^/>! /g' file and then copy/pasting the result. Your suggestion is a lot easier! So, thanks for your kind help!

  • @Crab said: I went through all FreeBSD templates on my Intel instance and they all got installed and worked fine.

    BTW, did you check IPv6 setup? Had another quick look into FreeBSD land, and I don't think IPv6 was set up for me there.

  • Next up for me might be reading about how to compile all of NetBSD from source, getting the sources (probably with CVS) and trying the compile. I am thinking of trying with my present install based on @cmeerw's previous image. I think it's been . . . like ~30 years . . . since the last time I tried this!

  • Looks like the info on how to build NetBSD from source is in Part VI of the NetBSD Guide.

  • OpenBSD ftw!

  • Made another update to the NetBSD 10.0 image to use more useful parameters during filesystem creation (only realised over the weekend that the scripts I based my image creation on used some rather questionable filesystem settings that result in an almost insane number of inodes after resizing).

    As a bonus I then tried to also make an image for NetBSD 9.4. This required an additional reboot when resizing the partition/filesystem, but the end result should be very similar to the 10.0 image. (Note: 9.4 doesn't have any SSL certificates, so I am setting the default PKG_PATH to the http URL instead of https).

    Hopefully, these are now stable enough and I can wait for NetBSD 10.1 for the next update.

    @linveo could you update the NetBSD 10.0 image and add the NetBSD 9.4 image please?

    BTW, for those interested in some of the technical details, I noticed that you can end up with a screwed up filesystem that might silently eat some of your data if you are not careful with all the resize stuff (but without ever seeing any warning from the tools) - that's PR #58723. A cosmetic bug in the df output I noticed has already been fixed on HEAD - PR #58718

  • @cmeerw said: some rather questionable filesystem settings that result in an almost insane number of inodes after resizing

    With your two new images and with the NetBSD PRs that you mentioned, it looks like both you and NetBSD itself successfully have moved beyond the inodes issue.

    Normally I would try to read up on the issue before asking a question, but, maybe, if you don't mind, you could please tell me whether you think the the inodes issue might exist on my install from your older image, and how to run a quick check.

    Thanks @cmeerw! :)

  • @Not_Oles said: Normally I would try to read up on the issue before asking a question, but, maybe, if you don't mind, you could please tell me whether you think the the inodes issue might exist on my install from your older image, and how to run a quick check.

    Yes, your image will be affected, a quick way to tell is to run df -mi /

    In the iAvail column it will likely show something like 20 million inodes (instead of maybe 3 million), but in the 1M-blocks column you'll likely only see around 20000 blocks (instead of maybe 24300), e.g.

  • @cmeerw

    I still have to study up, but here is the output of the df -ml / command you suggested showing results as you predicted:

    linveo# date
    Mon Oct  7 23:27:04 UTC 2024
    linveo# df -mi /
    Filesystem   1M-blocks      Used     Avail %Cap      iUsed     iAvail %iCap Mounted on
    /dev/dk2         20231      1920     17299   9%     307359   19440415    1% /
    linveo# 
    

    I still need to try the rebuild from source. When I get a chance, I will do that and post about what happens. Trying the compile will be a lot of fun even if it doesn't work for any reason, including maybe the filesystem. :)

    As always, thanks for your kind help! <3

  • OpenBSD 7.6 has been released.

  • @cmeerw said:
    OpenBSD 7.6 has been released.

    I wish they release drivers for Raspberry Pi Zero 2 W - or atleast FreeBSD.

  • linveolinveo ProviderOG

    @cmeerw said:
    Made another update to the NetBSD 10.0 image to use more useful parameters during filesystem creation (only realised over the weekend that the scripts I based my image creation on used some rather questionable filesystem settings that result in an almost insane number of inodes after resizing).

    As a bonus I then tried to also make an image for NetBSD 9.4. This required an additional reboot when resizing the partition/filesystem, but the end result should be very similar to the 10.0 image. (Note: 9.4 doesn't have any SSL certificates, so I am setting the default PKG_PATH to the http URL instead of https).

    Hopefully, these are now stable enough and I can wait for NetBSD 10.1 for the next update.

    @linveo could you update the NetBSD 10.0 image and add the NetBSD 9.4 image please?

    BTW, for those interested in some of the technical details, I noticed that you can end up with a screwed up filesystem that might silently eat some of your data if you are not careful with all the resize stuff (but without ever seeing any warning from the tools) - that's PR #58723. A cosmetic bug in the df output I noticed has already been fixed on HEAD - PR #58718

    I have loaded up the latest NetBSD 10 template and added a new one for 9.4. Thanks again!

    If you have any instructions I can follow to create qcow2 templates, I can try as well. I was given some documentation from VF to create my own, but not sure how well it will work.

    linveo.com | Shared Hosting | KVM VPS | Dedicated Servers

  • @Not_Oles said: I still have to study up, but here is the output of the df -ml / command you suggested showing results as you predicted:

    This is what you get with a new NetBSD 10 install:

    # df -mi /
    Filesystem   1M-blocks      Used     Avail %Cap      iUsed     iAvail %iCap Mounted on
    /dev/dk2         24316       441     22659   1%      15723    3101587    0% /
    
Sign In or Register to comment.