Our first [blog post about virtme](https://www.collabora.com/news-and-blog/blog/2018/09/18/virtme-the-kernel-developers-best-friend/) showed how to use virtme for kernel development in general.
Virtme is very convenient for testing the kernel inside a virtual machine (QEMU) without the need to install and maintain a full distro other then your host machine.
In this post, we'll show you some quick hacks to use virtme in some specific usecases for your tests.
# Qemu options - avoid "Out of memory" error
Virtme doesn't select memory or number of CPUs to be used by QEMU, which sometimes causes out of memory error on boot.
Lets use a variable to pass this resources to Virtme.
Feel free to adjust the number of ram and cpu cores to be used.
```
export MEM_CPU="-m 2G -smp 2"
```
# Running Weston on virtme
## Install weston in your host machine
```
sudo apt install weston
```
## Launch virtme
This following command will launch virtme with a display, keeping the serial in the current console for convenience.
```
# NOTE: `CONFIG_DRM_VIRTIO_GPU=y` must be enabled in the kernel config.