Better HN
topnewbestaskshowjobs
Log inSign up

vermaden

4,325 karma · joined Sep 1, 2012 (14y ago) · 990 submissions

Another ${RANDOM} sysadmin.

BLOG: https://vermaden.wordpress.com/ TWIT: https://twitter.com/vermaden

DESC: FreeBSD BSD UNIX Linux Backup Restore Storage Clusters Distributed Desktop Laptop X11 ThinkPad AMIGA Shell POSIX ZSH ZFS

Submissions

comment 4d ago · link · parent

This is how much bullshit it is:

    root@150:~ # head -2 pkgbase
    #! /bin/sh
    set -eu

    root@150:~ # sh pkgbase 
    pkgbase: 1: parameter not set
    pkgbase: VER_REG: parameter not set
    root@150:~ # sh -x pkgbase
    + set -eu
    + ARG_BOOT=yes
    + trap __clean 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
    pkgbase: 1: parameter not set
    + __clean
    + umount -f /boot/efi
Could not even handle 'trap' signals ...

comment 6d ago · link · parent

> GeFS is on its way.

I already mentioned GEFS in my comment ... but its 'just' filesystem - I did not heard about GEFS Boot Environments or anything similar.

> VMM, abandon all hope for chroot and extended chroots.

One can say the same about OpenBSD - abandon OpenBSD and just use FreeBSD.

> Literally in -current

Its a fresh thing - we will see if it sticks.

> Chromium and for Signal pick another client

I can not pick another client as I use Signal Desktop for my daily work - its like saying to my entire team 'fuck you use something else' ... and its NOT happening - I will just use FreeBSD that works for me instead of OpenBSD that does not.

> Unlocking more and more locks

It will take another at least 10 years to be on FreeBSD level with that. FreeBSD already has SMP PF ...

> You might find some tool in ports, no pun intended

That I believe that it can be possible to find something 'similar'.

comment 6d ago · link · parent

That may be a 'TODO' for some of the next releases - I will keep that in mind.

comment 6d ago · link · parent

Thank You, trying as always :)

comment 6d ago · link · parent

Where did I mention Firefox in my reply?

comment 6d ago · link · parent

Both `set -eu` and `shellcheck` tools are overrated.

I have used `shellcheck` against many of my scripts and for 'well think and designed' scripts its like a 'false positive generator' tool that only waste my time.

I mean ... POSIX /bin/sh is a language like any other - like Python - like Perl ...

I have been writing scripts since 20+ years in POSIX /bin/sh tools and thinking and knowing what and how a thing can fail always wins.

... and as FreeBSD has ZFS Boot Environments (and even UFS Boot Environments) - no matter what fails and where - You are always protected from failures.

The `set -eu` is treated like some magic 'Save Game' thing - that after You set it in a script - You are always protected from everything ... You are not.

A command that will wipe Your entire / filesystem can succeed without an issue and You will see zero errors.

Regards,

vermaden

comment 6d ago · link · parent

FreeBSD project used freebsd-update(8) for how long? More then a decade I assume. It was introduced in 2009 - and as freebsd-update(8) will be supported for entire 15.x line - the FreeBSD 15.5-RELEASE will be released in 2028 with 2 years of support - that means 2030 - its more then 2 decades of 21 years span.

On the other hand OpenBSD syspatch(8) was introduced in 2017 and sysupgrade(8) in 2019 so they both are younger then a decade.

It would be better to have this discussion in 2+ decades of usage of these OpenBSD equivalent tools.

While I admire OpenBSD team for all the things that are being created 'around' the OS - like:

- OpenSSH

- OpenRSYNC

- doas(1)

- LibreSSL

- OpenNTPd

- OpenSMTPd

- ... and many more listed here: https://openbsd.org/innovations.html

The OpenBSD is just 'too limited' for my needs.

I mean ... I need these for daily operation:

- ZFS/OpenZFS with ZFS Boot Environments

- Jails with VNET

- Hypervisor for ${ANYOS} which Bhyve provides

- WINE

- Linux Compat (for Signal Desktop and Google Chrome for a start)

- 'real' SMP

- Poudriere (or equivalent)

- ... I probably forgot something that is obvious in FreeBSD 'world'

... and OpenBSD 'by decision' just do not provide them.

But I liked the recent news about GEFS (Good Enough File System) - it does not have to be ZFS - GEFS sounds also 'OK' for most needs.

Hope that helps.

Regards,

vermaden

comment 6d ago · link · parent

I really regret that FreeBSD project did not used dedicated `pkgbase(8)` tool for FreeBSD Base System and leave `pkg(8)` just like it was for 3rd party packages from FreeBSD Ports. That single decision alone will solve many problems and misunderstandings. I generally assumed that people behind PKGBASE concept had everything 'think-out' and they only needed to implement it ... I believe my assumption was wrong and even Colin proved to me when he replied in the FreeBSD Mailing Lists that it was forgotten to find a way to do 'minor' FreeBSD upgrades like from 15.0 to 15.1 in a PKGBASE world ... and I believe another such area is 'tooling' behind PKGBASE upgrade process between releases.

It also reminded me of why Docker become so popular while being less secure and less good solution then FreeBSD Jails - it was all about TOOLING. FreeBSD Jails - and especially VNET ones are really great - but there is just 'limited' `jls(8)` that does not show VNET IPs or poweroff off Jails and `jail(8)` command and `jail.conf(5)` config. You do 95% of the stuff in `vi(1)` in the Jail configs ... the tools are really limited. Even check Solaris/Illumos Zones with its `zonecfg(1M)` and `zoneadm(1M)` tools. Same problem is here now with PKGBASE 'tooling' for upgrading process between both minor and major FreeBSD versions ... and its not better for 3rd party packages. If You want to 'just' upgrade the 3rd party packages - this is the command if You use PKGBASE system:

    # pkg upgrade -r FreeBSD-ports -r FreeBSD-ports-kmods ...
... and its often that a lot of these tools are available - they are just ignored and not used. Take my `jmore(8)` Jails listing and manager tool. Its different then BastilleBSD or iocage that it does not need any organized way of doing Jails - its fully compatible with 'plain' Jails configured in `jail.conf(5)` file - it is BSD licensed ... but ignored.

    # jls  
       JID  IP Address      Hostname                      Path
    
    # jmore -h       
    usage:
      jmore              list jail(8) containers
      jmore -a           list jail(8) containers with all IP(s)
      jmore -d INTERVAL  run 'jmore' every INTERVAL seconds like top(1)
      jmore -h           show help
      jmore --help       show help
      jmore help         show help
      jmore version      show version
    
    manage:
      jmore <JAILNAME> start
      jmore <JAILNAME> restart
      jmore <JAILNAME> stop
      jmore <JAILNAME> status
      jmore <JAILNAME> console
      jmore <JAILNAME> shell
      jmore <JAILNAME> jexec
    
    shorts:
      jmore <JAILNAME> u   UP ------> alias for start
      jmore <JAILNAME> d   DOWN ----> alias for stop
      jmore <JAILNAME> r   RESTART -> alias for restart
      jmore <JAILNAME> c   CONSOLE -> alias for console|shell|jexec
      jmore <JAILNAME> s   STATUS --> alias for status
    
    # jmore
          JAIL JID CPU/% RAM/mb TYPE VER    DIR                  IFACE  IP(s)      
       classic   -   0.0    0.0 std  13.2-R /jail/classic        em0    10.0.0.199 
      ctld-two   -   0.0    0.0 vnet 13.2-R /jail/ctld-two       ${if}b -          
          ctld   -   0.0    0.0 vnet 13.2-R /jail/ctld           ${if}b -          
      fbsdjail   -   0.0    0.0 std  13.1-R /jail/fbsdjail       wlan0  10.0.0.43  
         iscsi   -   0.0    0.0 vnet 13.2-R /jail/iscsi          ${if}b -          
     joudriere   -   0.0    0.0 vnet 14.3-R /jail/joudriere      ${if}b -          
      kerberos   -   0.0    0.0 vnet -      [GONE]/jail/kerberos ${if}b -          
     minecraft   -   0.0    0.0 std  14.2-R /jail/minecraft      em0    10.0.0.210 
         minio   -   0.0    0.0 std  14.0-R /jail/minio          em0    10.0.0.133 
          nfsd   -   0.0    0.0 vnet 14.1-R /jail/nfsd           ${if}b -          
         other   -   0.0    0.0 std  14.1-R /jail/other          em0    10.0.0.199 
       pkgbase   -   0.0    0.0 vnet 14.3-R /jail/pkgbase        ${if}b -          
     sambajail   -   0.0    0.0 vnet 14.1-R /jail/sambajail      ${if}b -          
         unfs3   -   0.0    0.0 vnet 14.1-R /jail/unfs3          ${if}b -          
    
    # jmore classic u
    Starting jails: classic.
    
    # jmore ctld u   
    Starting jails: ctld.
    
    # jmore ctld c
    ctld # exit
    
    # jmore          
          JAIL JID CPU/% RAM/mb TYPE VER    DIR                  IFACE     IP(s)      
       classic   1   0.1   18.0 std  13.2-R /jail/classic        em0       10.0.0.199 
      ctld-two   -   0.0    0.0 vnet 13.2-R /jail/ctld-two       ${if}b    -          
          ctld   2   1.4   18.0 vnet 13.2-R /jail/ctld           epair110b 10.1.1.110 
      fbsdjail   -   0.0    0.0 std  13.1-R /jail/fbsdjail       wlan0     10.0.0.43  
         iscsi   -   0.0    0.0 vnet 13.2-R /jail/iscsi          ${if}b    -          
     joudriere   -   0.0    0.0 vnet 14.3-R /jail/joudriere      ${if}b    -          
      kerberos   -   0.0    0.0 vnet -      [GONE]/jail/kerberos ${if}b    -          
     minecraft   -   0.0    0.0 std  14.2-R /jail/minecraft      em0       10.0.0.210 
         minio   -   0.0    0.0 std  14.0-R /jail/minio          em0       10.0.0.133 
          nfsd   -   0.0    0.0 vnet 14.1-R /jail/nfsd           ${if}b    -          
         other   -   0.0    0.0 std  14.1-R /jail/other          em0       10.0.0.199 
       pkgbase   -   0.0    0.0 vnet 14.3-R /jail/pkgbase        ${if}b    -          
     sambajail   -   0.0    0.0 vnet 14.1-R /jail/sambajail      ${if}b    -          
         unfs3   -   0.0    0.0 vnet 14.1-R /jail/unfs3          ${if}b    -          
    
    # jls  
       JID  IP Address      Hostname                      Path
         1  10.0.0.199      classic                       /jail/classic
         2                  ctld                          /jail/ctld
... and `pkgbase(8)` will also be ignored.

Regards,

vermaden

comment 6d ago · link · parent

Hi and thank You,

one of the steps is already creation of new ZFS Boot Environment before the upgrade:

    % grep bectl pkgbase 
           bectl create pkgbase-$( uname -r )-$( date '+%Y-%m-%d-%T' ) ; RET_VAL=${?}
I did not created upgrade inside new ZFS BE as I wanted to 'follow' official FreeBSD project instructions - but it cal also be done.

Regards,

vermaden

comment 1w ago · link · parent

Pity none of his work landed in FreeBSD base ...

11.

New FreeBSD Pkgbase(8) Tool(vermaden.wordpress.com ↗)

50 points · by vermaden · 1w ago · 26 comments

comment 1w ago · link · parent

Even Solaris in Kernel Zones uses virtualization for the kernel part to have 'live migration' - regular Solaris Zones Containers does not have 'live migration' - you can just start/stop them.

But ... OpenVZ in the past had 'live migration' - so it would be nice to implement that feature into FreeBSD Jails to have 'high availability'.

comment 1w ago · link · parent

Same with Docker.

FreeBSD had Jails containers since 1999.

Linux joined the party starting with on 2014.

14.

New FreeBSD pkgbase-update(8) Tool(vermaden.wordpress.com ↗)

2 points · by vermaden · 2w ago · discuss

comment 2w ago · link · parent

Nopevidia strikes again ... just use open solutions from AMD and/or Intel when it comes to GPUs.

Vote with Your wallet.

Its that simple.

Every.

Single.

Time.

comment 1mo ago · link · parent

Open and Nvidia in one sentence is a nice oxymoron.

17.

FreeBSD Cope with Signal Fuckup(vermaden.wordpress.com ↗)

3 points · by vermaden · 1mo ago · discuss

comment 2mo ago · link · parent

Not sure about NetBSD - but FreeBSD does WINE really well.

Details:

- https://vermaden.wordpress.com/2020/10/14/oldschool-gaming-o...

comment 2mo ago · link · parent

The details are in other article I linked to - here:

- https://vermaden.wordpress.com/2026/01/18/200-mb-ram-freebsd...

20.

AMD Based FreeBSD Desktop Reloaded(vermaden.wordpress.com ↗)

129 points · by vermaden · 2mo ago · 29 comments

comment 2mo ago · link · parent

Seems that zVault 'did not make it' - https://zvault.io/ - even the page is gone now.

Lets hope FreeCORE will make it longer.

Some comparison between Linux based TrueNAS SCALE and FreeBSD based TrueNAS CORE here:

- https://vermaden.wordpress.com/2024/04/20/truenas-core-versu...

Regards,

vermaden

22.

Lenovo XClarity Administrator in FreeBSD Bhyve VM(vermaden.wordpress.com ↗)

2 points · by vermaden · 2mo ago · discuss

23.

Custom FreeBSD Ucarp Setup(vermaden.wordpress.com ↗)

1 points · by vermaden · 3mo ago · discuss

comment 3mo ago · link · parent

Its both actually.

This is strictly the FreeBSD part:

    freebsd # gpart backup ada1 | gpart restore nda0
    
    freebsd # gpart backup ada1 | gpart restore nda1
The ZFS part comes later :)

Regards,

vermaden

25.

Move FreeBSD System Between ZFS Disks(vermaden.wordpress.com ↗)

15 points · by vermaden · 3mo ago · 3 comments

comment 3mo ago · link · parent

The same article for FreeBSD:

- Install FreeBSD in defaults with Auto (ZFS) option.

- Do not thing more.

- You are resilient for power outages.

Regards,

vermaden

27.

FreeBSD Storage for OpenShift with Democratic CSI(vermaden.wordpress.com ↗)

3 points · by vermaden · 3mo ago · discuss

comment 4mo ago · link · parent

Cold migration.

Stop machine, transfer VM to other host, start machine.

comment 4mo ago · link · parent

Did the fixed [ENTER] (or double-click) in 'Save as...' dialog finally?

comment 4mo ago · link · parent

> macOS userland tools on FreeBSD kernel

I do not have anything against NextBSD - but that 'macOS userland tools on FreeBSD kernel' term sounds as stupid as it can - knowing that Apple pulled FreeBSD userland as part of creating Mac OS X :D

Which generally means: 'FreeBSD userland tools on FreeBSD kernel' ...

12345
33