Skip to content

Troubleshooting

Common issues and solutions.

Symptoms: QEMU hangs at boot

Solutions:

Terminal window
# Install UEFI firmware
sudo apt install qemu-efi-aarch64
# Increase timeout in config.sh
QEMU_TIMEOUT=3600
# Check logs
cat images/*/qemu-*.log

Symptoms: “QEMU timeout” error

Solutions:

  • Increase QEMU_TIMEOUT in config.sh
  • Increase QEMU_RAM and QEMU_CPUS
  • Check network connectivity
  • Review QEMU logs

Symptoms: Error during merge stage

Solutions:

Terminal window
# Check disk space
df -h
# Re-download base images
rm images/debian/*.img images/debian/*.raw
./bin/autobuild --image debian
# Check partition layout
fdisk -l raspios.img
fdisk -l debian.raw

Symptoms: “No space left on device”

Solutions:

  • Free up space: sudo apt clean
  • Use smaller IMAGE_SIZE
  • Build fewer services

Symptoms: Raspberry Pi shows rainbow screen, won’t boot

Solutions:

  1. Verify image integrity: sha256sum image.img.xz
  2. Re-flash SD card
  3. Try different SD card
  4. Check UART output

Symptoms: Credentials don’t work

Default: Username pi, password raspberry

Solutions:

  • Check Caps Lock
  • Wait for first-boot to complete (3-5 min)
  • Reset password via SD card mount

Symptoms: Can’t get IP address

Solutions:

Terminal window
# Check interface
ip link show eth0
# Restart connection
sudo nmcli con up br-wan
# Check NetworkManager
sudo systemctl status NetworkManager
# Set static IP (see Configuration Reference)

Symptoms: Docker/HAOS/OpenWrt not running

Solutions:

Terminal window
# Check first-boot logs
sudo journalctl -u services-first-boot
# Check service status
sudo systemctl status docker
incus list
# Check disk space
df -h

Symptoms: Incus container/VM fails to start

Solutions:

Terminal window
# Check Incus logs
incus info haos
incus info --show-log haos
# Check resources
free -h
df -h
# Restart Incus
sudo systemctl restart incus

Symptoms: wlan0 doesn’t exist

Solutions:

Terminal window
# Check firmware
dmesg | grep brcmfmac
# Install firmware
sudo apt install firmware-brcm80211
# Reboot
sudo reboot

Symptoms: Zigbee dongle not in Home Assistant

Solutions:

Terminal window
# Check detection
sudo journalctl -u services-first-boot | grep -i zigbee
# Manual passthrough
lsusb # Find vendor/product ID
incus config device add haos zigbee usb vendorid=XXXX productid=YYYY
# Restart VM
incus restart haos

Symptoms: CI/CD build fails with timeout

Solutions:

  • Increase QEMU_TIMEOUT in workflow
  • Reduce IMAGE_SIZE
  • Use fewer services

Symptoms: Image built but not in release

Solutions:

  • Check GitHub token permissions
  • Verify release was created
  • Check asset size (<2GB per file)

Check logs:

Terminal window
# Build logs
cat images/*/qemu-*.log
# First-boot logs
sudo journalctl -u rpi-first-boot
sudo journalctl -u services-first-boot
# Service logs
sudo journalctl -u docker
sudo journalctl -u incus

Still stuck?

Include:

  • Build command used
  • Error messages
  • Relevant logs
  • Hardware details (Pi model, RAM, SD card size)