This commit is contained in:
2026-01-09 09:41:47 +00:00
parent 51c83f846a
commit 5234411c9d
7 changed files with 71 additions and 33 deletions

View File

@@ -48,28 +48,28 @@ else
echo "KVM not available, using software emulation (slower)"
fi
# Start QEMU headless with VNC and serial console
# Start QEMU with VirtIO-GPU (VirGL OpenGL acceleration) and serial console
> "$SERIAL_LOG" # Clear old log
qemu-system-x86_64 \
$KVM_OPTS \
-m 4G \
-smp 2 \
-smp 4 \
-bios /usr/share/qemu/OVMF.fd \
-drive file="$ISO_PATH",media=cdrom \
-drive file="$DISK_PATH",format=qcow2,if=virtio \
-vga qxl \
-device virtio-vga \
-display none \
-vnc :0 \
-spice port=5930,disable-ticketing=on \
-serial unix:"$SERIAL_SOCK",server,nowait \
-monitor unix:"$MONITOR_SOCK",server,nowait \
-nic user,model=virtio-net-pci,hostfwd=tcp::3006-:3006,hostfwd=tcp::2222-:22 \
-daemonize \
-pidfile "$PID_FILE"
-pidfile "$PID_FILE" &
echo ""
sleep 1
echo "=== EcoOS Test VM Started ==="
echo "PID: $(cat $PID_FILE)"
echo "VNC: localhost:5900"
echo "PID: $(cat $PID_FILE 2>/dev/null || echo 'running')"
echo "SPICE: spicy -h localhost -p 5930"
echo "Serial Log: $SERIAL_LOG"
echo "Management UI: http://localhost:3006"
echo ""