adb_qemu_start
Boots a QEMU virtual machine with KVM acceleration for Android ADB access. Automatically allocates CPU and RAM to prevent host starvation, with support for headless or VNC display.
Instructions
Boot a QEMU virtual machine with KVM hardware acceleration. Auto-detects optimal resource allocation: uses total cores minus 1 for the VM (reserving one for the host OS), and up to 65% of physical RAM. Custom values are accepted but capped at safe limits to prevent host starvation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | VM name (used to track and stop the VM) | |
| image | Yes | Disk image filename (from adb_qemu_images) or absolute path | |
| memoryMb | No | RAM in MB. Auto-detected if omitted (65% of physical RAM). Capped at safe limit. | |
| cpus | No | Virtual CPUs. Auto-detected if omitted (total cores minus 1). Capped at safe limit. | |
| adbPort | No | Host port to forward to guest ADB (port 5555). Default 5556. | |
| kernel | No | Path to kernel image (for Android boot). If omitted, QEMU uses the disk image's bootloader. | |
| initrd | No | Path to initrd/ramdisk image (for Android boot). | |
| append | No | Kernel command line arguments (for Android boot). | |
| display | No | Display output. 'none' for headless (default). 'vnc' starts a VNC server on port 5900. | none |