If this issue is seen building Xen, Traceback (most recent call last): File "gentest.py", line 6, in <module> import random File "/usr/lib64/python2.7/random.py", line 885, in <module> _inst = Random() File "/usr/lib64/python2.7/random.py", line 97, in __init__ self.seed(x) File "/usr/lib64/python2.7/random.py", line 113, in seed a = long(_hexlify(_urandom(2500)), 16) OSError: [Errno 38] Function not implemented It is caused by a change in glibc 2.24 which in turn has introduced a bug in python. See http://bugs.python.org/issue29188 A patch is attached to that python bug.