QEMU, KQEMU and udev

Now that KQEMU has switched to the GPL v2 license, I’m starting to get interested on it.

One problem with KQEMU is that modprobing the kernel module, kqemu.ko, doesn’t automatically create /dev/kqemu unless the proper udev rules are defined.

A cannonical udev rule file to get /dev/kqemu created automatically when kqemu.ko is loaded is:

# cat /etc/udev/rules.d/60-kqemu.rules
KERNEL=="kqemu", NAME="%k", MODE="0666"'

Creating this file will tell udev to automatically create the corresponding special device file with permissions 0666 and owner root.root, but this can be easily changed to specify a different user group so that only a limited number of users, members of that group, can access KQEMU.

One Response to “QEMU, KQEMU and udev”

  1. [...] Los usuarios de Linux ya saben que desde la versión 2.6.20, liberada el pasado 4 de febrero, la virtualización KVM viene de serie en el kernel, así que tienen armas más que suficientes para virtualizar a su antojo. Además, recordaos que VMWare, QEMU, KQEMU o Xen, por poner sólo algunos ejemplos, ponen a vuestro servicio maquinaria pesada de virtualización con coste cero. [...]

Leave a Reply