mirror of
https://github.com/blazblue547-afk/nova-os.git
synced 2026-12-02 14:54:17 -05:00
feat: QEMU virt launcher with KVM/TCG acceleration
This commit is contained in:
1 parent
43e140d5a0
commit
e6cbed8cee
3 files changed
+133
No files matched your search
@@ -0,0 +1,53 @@
|
||||
# Nova OS — QEMU
|
||||
|
||||
Boot Nova OS under QEMU emulation (ARM64 virt machine).
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
# Install QEMU
|
||||
sudo apt install qemu-system-arm
|
||||
|
||||
# Add yourself to kvm group (for hardware acceleration)
|
||||
sudo usermod -a -G kvm $USER
|
||||
# Log out and back in for this to take effect
|
||||
|
||||
# Run
|
||||
./run.sh
|
||||
```
|
||||
|
||||
## What You Get
|
||||
|
||||
- ARM64 virtual machine with 4 Cortex-A76 cores, 2GB RAM
|
||||
- VirtIO block storage (raw image)
|
||||
- VirtIO networking with port forward: `localhost:2222` → guest SSH port 22
|
||||
- Serial console in your terminal
|
||||
|
||||
## SSH Access
|
||||
|
||||
Once booted:
|
||||
```bash
|
||||
ssh -p 2222 root@localhost
|
||||
```
|
||||
Password: `nova` (forced change on first login)
|
||||
|
||||
## Configuration
|
||||
|
||||
Override defaults via environment variables:
|
||||
|
||||
| Variable | Default | Description |
|
||||
|----------|---------|-------------|
|
||||
| `NOVA_IMAGE` | `../nova-os-4.3.1.img` | Path to raw disk image |
|
||||
| `NOVA_CPU` | `cortex-a76` | CPU model |
|
||||
| `NOVA_SMP` | `4` | Number of CPU cores |
|
||||
| `NOVA_MEM` | `2048` | RAM in MB |
|
||||
| `NOVA_SSH_PORT` | `2222` | Host port for SSH forwarding |
|
||||
|
||||
## Acceleration
|
||||
|
||||
- **KVM** (near-native): auto-detected if `/dev/kvm` is writable
|
||||
- **TCG** (emulation): fallback — works but ~50-90x slower
|
||||
|
||||
## Quit
|
||||
|
||||
Press `Ctrl-A` then `X` to exit QEMU.
|
||||
Reference in new issue
Block a user