User Mode Linux: Bus error - the /dev/shm or /tmp mount likely just ran out of space

Sometime, when you are compiling some big applications inside UML, you can get a UML hang with the error:

Bus error - the /dev/shm or /tmp mount likely just ran out of space
Kernel panic - not syncing: Kernel mode signal 7

After some research and googling i could solve the problem. The host system had mounted /dev/shm as tmpfs, with an approx. size of 200M. /dev/shm is an implementation of traditional shared memory concept. This filesystem is used by UML nevertheless sometimes it can get out of space (if it hasn’t got enough size).
The problem can be solved adding or modifying a line inside /etc/fstab of host system (not guest):

tmpfs /dev/shm tmpfs defaults,size=1000M 0 0

This size works for me, try other values (RAM size for example)

Leave a reply

You must be logged in to post a comment.