HP Microserver G8 Install - Internal USB

Hello,

I have been given a G8 Microserver, and I want to install Truenas on it. I am trying to install Truenas on a USB flash drive

  • Downloaded Truenas Scale (latest)
  • Used Ethcher to put the ISO on the flash drive
  • Inserted Flash drive in USB A port on the motherboard
  • Set to boot from USB DriveKey
  • Kept going in a loop when trying boot
  • Using the iLO, I mounted the Truenas ISO

Although it seems to find the flash drive, it keeps erroring when trying to install to the flash drive, no matter which options that I pick. It won’t let me insert the images on the post here.

I would really really appreciate any help you guys give to get this working.

Thanks

No UEFI support. Needs MBR code.
ISO should have both but of course you didn’t give us the options you used in Balena…

Welcome to the forums!

It’s not clear to me from your post’s words, but it seems that you might have been expecting TrueNAS to be installed on the same USB key on which you installed the ISO?

You need to install to another drive on the PC from which you will boot TrueNAS.

Apologies if this is actually what you did and I misinterpreted your words.

Rufus have the capability to properly flash the USB as MBR, you can easily achieve this.
IMHO avoid the use of an USB stick for the boot pool, worst if Isn’t neither MLC, a cheap SATA - USB adapter with a small SSD Is way better and reliable

Also later installers fail with the MBR-only capabilities of the G8. I tried a fresh install of Dragonfish some time ago.
I don’t know if they have fixed the installer but you can use the installer of something before Dragonfish and then upgrade to a current version step by step.
(I know Angelfish works for sure because I used this back then for my first install of Scale on a G8.)

I have a Gen 10 plus V2 and am having problems creating a new bootable USB stick with Fangtooth. What is the problem of the G8 and could this be the cause of my problem? (See https://forums.truenas.com/t/core-to-scale-upgrade-with-backout/50317)

The problem with the G8 is that more current installers of Scale fail on the G8 when it comes to installing GRUB.
I was pretty much an early adopter of Angelfish when it was released. Now around Dragonfish I retired my G8 as my main system. After moving the HDDs with the data and putting in some other ones i had lying aroud I wanted to do a new clean install of Dragonfish.
Wouldn’t work, used Angelfish as installer again and upgraded afterwards to current.

Hi!
I have been setting up TrueNAS on Micreserver gen8 the last month. Oh-my is it a special box…:face_exhaling: First of all it has Legacy BIOS, no UEFI, and it have several hoops if you want to use it like a new machine.

The Microserver boots in this order (if using ACIH)

  • USB/SDcard
  • Non hotswap bays from left to rigth
  • CD-drive/ODD-SATA
    • the system will NOT let you boot first from this whitout a CD.. except if you remove every other drives, then you can boot from ODD-SATA on the MB

And no you can’t change the boot order like a regular computer, because the onboard HBA (sata contorller for non-hotswap bays) have priority.

You can trick it with disabling ACHI, and running legacy raid controller. But then you don’t have accses to S.M.A.R.T. data from the drives. I tried this don*t recomend it.

The recomended method is using GRUB chain loader. That did not say much for me when i started this project but I found several guides online. But those was sett up so you had to have accsess / iLo to the macine to chose boot drive if a drive was missing.

With the help from Gemini i got a GRUB fil that try to boot from every drive in the opposit direction until it finds the boot drive. My theory is if i now have a drive failiure and the macine reset it will boot regardless.

My setup atm is a SSD connected to the ODD port in the motherboard, and HDD in the non-hotswap bays. I use a GRUB chanloader to change boot order

Feel free to ask if you have any queestion.

:rocket: TrueNAS Boot from SSD on HP ProLiant Gen8 (AHCI Boot Fix)

This guide provides a robust solution for enabling S.M.A.R.T. monitoring on your main storage drives when TrueNAS is installed on the ODD port (Port 5) of an HP ProLiant Gen8 server.

:bullseye: Goal & Problem Overview

  • Goal: Enable S.M.A.R.T. monitoring for the drives in the four main front bays (Ports 1-4).
  • The Conflict: TrueNAS installed on the ODD port (Port 5) often requires the BIOS to be set to Legacy Mode for booting, but Legacy Mode disables S.M.A.R.T. for the main drives.
  • The Solution: Switch the BIOS to AHCI Mode (to enable S.M.A.R.T.) and use a small, dedicated GRUB Chainloader on an internal MicroSD or USB stick to reliably force the boot process to the TrueNAS installation on the ODD port.

Prerequisites

  • A dedicated any size MicroSD Card (or internal USB DriveKey).
  • A separate Linux machine or a Live Linux USB for preparing the card. (I used Ubuntu USB on the Microserver)
  • Familiarity with basic Linux command-line operations.
  • :warning: IMPORTANT: Always double-check device names (/dev/sdb, etc.) to prevent data loss.

Step 1: Prepare the MicroSD Card (The GRUB Chainloader)

You will use the entire MicroSD card for this purpose. Always double-check the device name (e.g., /dev/sdb) to avoid data loss.

1.1 Partitioning (MBR)

Use fdisk to create a single MBR/DOS partition covering the whole card, and set the Bootable Flag on it.*

1.2. Formatting

Format the partition (e.g., as ext4):

sudo mkfs.ext4 /dev/sdb1

1.3. Mounting

Mount the newly formatted partition:

sudo mkdir /mnt/grubboot
sudo mount /dev/sdb1 /mnt/grubboot

1.4 Install GRUB

Install the boot files to the mounted partition and write the boot code to the Master Boot Record (MBR) of the device itself (/dev/sdb):

sudo grub-install --no-floppy --root-directory=/mnt/grubboot /dev/sdb

Step 2: Create the Robust grub.cfg Configuration

This configuration file is crucial. It uses a search loop to automatically find your TrueNAS boot drive (which is Partition 3, gpt3) on one of the potential SATA ports, regardless of which ones are populated in the front bays.

sudo nano /mnt/grubboot/boot/grub/grub.cfg

2.2 Paste the Configuration

Paste the following code, which searches for the ZFS Boot Pool Partition 3 starting from disk hd5 down to hd1:

set default='0'
set timeout='10'

insmod part_gpt
insmod part_msdos
insmod chain

# Search for the ZFS Boot Pool (Partition 3) on hd5 down to hd1 (ODD is often hd5).

for i in 5 4 3 2 1; do
    # Check if GPT Partition 3 exists on the current disk.
    if [ -e (hd$i,gpt3) ]; then
        set root=(hd${i})
        break
    fi
done

menuentry "TrueNAS Scale (Automatically Found ODD)" {
    if [ -n "${root}" ]; then
        echo "Found TrueNAS on drive: ${root}"
        # Chainload the boot sector of the drive found above
        chainloader +1
        boot
    else
        echo "ERROR: Failed to find TrueNAS ZFS boot pool (partition 3) on any disk (hd1-hd5)."
        sleep 5
    fi
}

2.3 Save and Unmount

Save the file, exit, and safely unmount the MicroSD card:

sudo umount /dev/sdb1

Step 3: BIOS Configuration on the HP Gen8

Insert the completed MicroSD card into the internal slot of the Gen8 server.

3.1 Change SATA Mode to AHCI

  • Start the server and press F9 to enter BIOS/System Utilities.
  • Navigate to System Options→ SATA Controller Options → Embedded SATA Configuration.
  • Change the setting to Enable SATA AHCI Support.

3.2 Set Boot Order

Go to Boot Options → Boot Order
Ensure that Internal MicroSD Card (or Internal USB DriveKey if you used a USB stick) is set as the first boot device.

Note: The server will now boot from the MicroSD card, which will execute the GRUB script. The script will find your TrueNAS installation on the ODD port and chainload the boot process, enabling you to boot TrueNAS while maintaining the necessary AHCI mode for S.M.A.R.T. monitoring.