# QEMU development and testing settings
#
# Include from local.conf when developing and testing with runqemu:
#
#   require conf/distro/include/meta-virt-dev.conf
#
# This is separate from the build profiles (container-host-*, xen-host-*)
# and provides settings that only matter for QEMU-based development:
# image format, memory, debug features, etc.
#
# Typical local.conf for QEMU-based k3s development:
#
#   require conf/distro/include/meta-virt-host.conf
#   BUILD_PROFILE ?= "k3s"
#   require conf/distro/include/container-host-${BUILD_PROFILE}.conf
#   require conf/distro/include/meta-virt-dev.conf
#   MACHINE = "qemux86-64"

# Use raw ext4 for runqemu boot/test cycles.
# Snapshot formats (qcow2) don't work well with repeated boots.
IMAGE_FSTYPES = "ext4"

# Xen QEMU settings: Dom0 memory cap and total VM memory
QB_XEN_CMDLINE_EXTRA ?= "dom0_mem=512M"
QB_MEM ?= "-m 1024"

# Debug-friendly image features
EXTRA_IMAGE_FEATURES ?= "allow-empty-password empty-root-password allow-root-login post-install-logging"
