[vfio-users] vfio Cannot allocate memory

Manuel Zeusin zeusin360 at gmail.com
Sat Oct 24 12:27:00 UTC 2015


rror al iniciar dominio: Error interno: early end of file from monitor:
possible problem:
2015-10-24T12:13:33.932445Z qemu-system-x86_64: -device
vfio-pci,host=03:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on:
VFIO_MAP_DMA: -12
2015-10-24T12:13:33.932499Z qemu-system-x86_64: -device
vfio-pci,host=03:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on:
vfio_dma_map(0x555eb9c815f0, 0x0, 0xc0000, 0x7f0fd7a00000) = -12 (Cannot
allocate memory)
2015-10-24T12:13:33.932951Z qemu-system-x86_64: -device
vfio-pci,host=03:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on:
VFIO_MAP_DMA: -12
2015-10-24T12:13:33.932984Z qemu-system-x86_64: -device
vfio-pci,host=03:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on:
vfio_dma_map(0x555eb9c815f0, 0xc0000, 0x20000, 0x7f0fd7600000) = -12
(Cannot allocate memory)
2015-10-24T12:13:33.933375Z qemu-system-x86_64: -device
vfio-pci,host=03:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on:
VFIO_MAP_DMA: -12
2015-10-24T12:13:33.933671Z qemu-system-x86_64: -device
vfio-pci,host=03:00.0,bus=root.1,addr=00.0,multi

and dmesg says:  vfio_pin_pages: RLIMIT_MEMLOCK (65536) exceeded

i try to change it with ulimit -l 4194304, but still failed with the same
error... also read to increase the memlock in limits.conf, i use:
* soft memlock 4194304
* hard memlock 4194304
but nothing seems to work.


I using fedora 22 with 4.1.9-200 kernel, libvirt 1.2.18.1 and qemu
2.4.0.1-1 (virtualization repos)
 and every commands and VM start it's using root commands.

also try with debian testing and works out the box, but i think in fedora
virtual machines works flawless

PD: Sorry for bad english. spanish here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20151024/e61fd35c/attachment.htm>


More information about the vfio-users mailing list