[Bug 264911] Error using installerconfig and PARTITIONS=DEFAULT on VirtIO Device

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 26 Jun 2022 17:14:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264911

            Bug ID: 264911
           Summary: Error using installerconfig and PARTITIONS=DEFAULT on
                    VirtIO Device
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: rsimmons0@gmail.com

This is for an unattended install on a VM on Proxmox. The manual install
process works just fine and results in a working FreeBSD instance. The setting
"PARTITIONS=DEFAULT" as specified in the bsdinstall(8) manual pages results in
an error during the installation process. There is DEBUG output displayed with
the error. I had encountered this issue with FreeBSD 13.0 and I was able to
work around it by specifying "PARTITIONS=vtbd0". However, even with that
specification in 13.1, the install stops with this error. I have provided
screenshots of the full error, and the first line is:

DEBUG: Running installation step: script /etc/installerconfig

The last line is:

/usr/libexec/bsdinstall/script: 3: Bad file descriptor

Screenshots:
https://i.imgur.com/d4H04ZY.png
https://i.imgur.com/R7NFLLq.png
https://i.imgur.com/80mpNhC.png
https://i.imgur.com/fVIJLh2.png
https://i.imgur.com/qqRzhtq.png
https://i.imgur.com/tzFvcOG.png

If you have Proxmox available for testing, the version I am running is the
current 7.2-4. And the following are the settings for the VM to create (these
are via API).

config = {
    'name': 'test',
    'vmid': 100,
    'ostype': 'other',
    'memory': 4096,
    'cores': 4,
    'cdrom': 'local:iso/FreeBSD-13.1-RELEASE-auto.iso',
    'scsihw': 'virtio-scsi-pci',
    'virtio0': 'local-zfs:100,backup=0,format=qcow2',
    'boot': 'order=virtio0;ide2',
    'net0': 'model=e1000,bridge=vmbr1'
}

The FreeBSD ISO is edited to just add /etc/installerconfig.

Everything above works flawlessly with 13.0 and PARTITIONS=vtbd0

-- 
You are receiving this mail because:
You are the assignee for the bug.