How mcroitor/qemu-manager works
QEMU Manager is a PHP web GUI for administering QEMU disk images, virtual machines, and networking. A browser request enters through the front controller, which builds navigation and renders the routed response; users can bootstrap an administrator, then authenticate for protected management areas. The QEMU modules provide distinct image, machine, and network workflows, backed by SQLite and QEMU command-line tools. The graph follows explicit calls and README claims; some router dispatch details and unsampled module behavior are shown only as unverified where useful.
Main entry points: machine.php Virtual machine management · router.php Route dispatcher · image.php Disk image management · index.php Request front controller
Components 16
Web entry and rendering
- Request front controller
src/index.php - Route dispatcher
src/core/mc/router.php - Page renderer
src/core/page.php
Authentication
- Authentication and roles
src/core/auth.php - User management
src/core/user.php
QEMU management
- Disk image management
src/modules/qemu/image.php - Virtual machine management
src/modules/qemu/machine.php - Network and forwarding
src/modules/qemu/network.php - Machine architecture options
src/modules/qemu/hardware/architecture.php - Container module
src/modules/container/container.php
Application core
- Template renderer
src/core/mc/template.php - SQLite database
src/core/mc/database.php - Input validation
src/core/mc/validator.php - Command and path utilities
src/core/mc/util.php
Other components
- Browser user
- QEMU command-line tools
Connections 26
- Browser user → Request front controller: requests
- Request front controller → Route dispatcher: dispatches
src/index.php - Request front controller → Authentication and roles: checks session
src/index.php - Request front controller → Page renderer: renders response
src/index.php - Page renderer → Template renderer: fills layout
src/core/page.php - Request front controller → SQLite database: reads settings
src/index.php - Route dispatcher → Authentication and roles: routes auth requests
- Route dispatcher → Disk image management: routes image requests
- Route dispatcher → Virtual machine management: routes VM requests
- Route dispatcher → Network and forwarding: routes network requests
- Authentication and roles → User management: manages accounts
- Disk image management → SQLite database: stores image metadata
- Disk image management → Template renderer: renders views
src/modules/qemu/image.php - Disk image management → Command and path utilities: runs helpers
src/modules/qemu/image.php - Disk image management → QEMU command-line tools: runs qemu-img
src/modules/qemu/image.php - Virtual machine management → SQLite database: reads and writes
src/modules/qemu/machine.php - Virtual machine management → Disk image management: lists images
src/modules/qemu/machine.php - Virtual machine management → Machine architecture options: uses architectures
src/modules/qemu/machine.php - Virtual machine management → Command and path utilities: runs commands
src/modules/qemu/machine.php - Virtual machine management → QEMU command-line tools: starts and stops VMs
src/modules/qemu/machine.php - Network and forwarding → SQLite database: reads and writes
src/modules/qemu/network.php - Network and forwarding → Template renderer: renders views
src/modules/qemu/network.php - Network and forwarding → Command and path utilities: resolves templates
src/modules/qemu/network.php - Virtual machine management → Input validation: validates input
src/modules/qemu/machine.php - Network and forwarding → Input validation: validates input
- Container module → Route dispatcher: registers module