fix: skip virtiofs during OS installation to prevent installer hangs

The shared-memory NUMA backend required for virtiofs can confuse
installers. Fall back to 9p when an ISO is present (install mode).
This commit is contained in:
Dino Korah 2026-03-22 18:47:18 +00:00
parent d66d9c3c1b
commit 058e229d53
1 changed files with 3 additions and 1 deletions

View File

@ -2575,7 +2575,9 @@ function fileshare_param_check() {
# NOTE: only the standalone virtiofsd (Rust) is supported — the legacy
# QEMU-bundled C daemon (/usr/lib/qemu/virtiofsd) uses incompatible CLI
# syntax and requires root, so it is intentionally ignored here.
if [ -n "${PUBLIC}" ] && [ "${guest_os}" == "linux" ]; then
# Skip virtiofs during OS installation: the required shared-memory NUMA
# backend can confuse installers and cause hangs. 9p is used instead.
if [ -n "${PUBLIC}" ] && [ "${guest_os}" == "linux" ] && [ -z "${iso}" ]; then
VIRTIOFSD=$(command -v virtiofsd 2>/dev/null)
if [ ! -x "${VIRTIOFSD}" ]; then
VIRTIOFSD=""