# Get Waydroid to work through a VM

You can force Waydroid to run without GPU acceleration by modifying the waydroid configuration file:

```
nano /var/lib/waydroid/waydroid.cfg
```

Add the following lines in the `[properties]` section:

```
ro.hardware.gralloc=default
ro.hardware.egl=swiftshader
```

Apply the configuration with:

```js
sudo waydroid upgrade -o
```

### Qemu

Qemu is the only VM known to have working 3d acceleration (possibly crosvm too).

Qemu needs to have virtio-gpu setup with 3d graphics acceleration enabled for both virtio-gpu and the display (Ie. Spice, SDL etc.). Using EGL-headless (useful for dedicated VM servers) will also work with waydroid these will work on any qemu which has 3d acceleration built for it.

Another method to use gpu passthrough on the VM, this will work on any virtual machine software that supports it.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.waydro.id/faq/get-waydroid-to-work-through-a-vm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
