[Root @ jcwkyl myvms] # xm create sge-master
Using config file "./sge-master ".
Traceback (most recent call last ):
File "/usr/bin/pygrub", line 26, in?
Import fsimage
ImportError:
/Usr/lib/python/fsimage. so: symbol fsi_fs_bootstring, version
Libfsimage. so.1.0 not defined in file libfsimage. so.1.0 with link time
Reference
Error:
Solution:
I have the xen source code on my computer, so I compiled the tools in the xen code to get the new libfsimage. so.1.0.0, and checked it with readelf.
[Root @ jcwkyl python] # readelf-s/opt/xen-3.3.0/xen-3.3.0/tools/libfsimage/common/libfsimage. so.1.0 | grep fsi_fs_bootstring
42: 00000dc0 8 FUNC GLOBAL
DEFAULT 11 fsi_fs_bootstring libfsimage. so.1.0
79: 00000dc0 8 func global default 11 fsi_fs_bootstring
This file contains the complete fsi_fs_bootstring function definition. Copy the file to/usr/lib/Python and follow the symbolic link structure in the xen code:
[Root @ jcwkyl Python] # cd/opt/xen-3.3.0/xen-3.3.0/tools/libfsimage/common/
[Root @ jcwkyl common] # ll libfsimage. So *
Lrwxrwxrwx 1 Root 17 Jul 9 14: 43 libfsimage. So-> libfsimage. so.1.0
Lrwxrwxrwx 1 Root 19 Jul 9 14: 43 libfsimage. so.1.0-> libfsimage. so.1.0.0
-Rwxr-XR-x 1 Root 13603 Jul 9 14:43 libfsimage. so.1.0.0
Create a symbolic link structure under/usr/sbin/Python:
[Root @ jcwkyl Python] # ln-s libfsimage. so.1.0.0 libfsimage. so.1.0
[Root @ jcwkyl Python] # ln-s libfsimage. so.1.0 libfsimage. So
Then, run XM create normally.
I have encountered this problem before. At that time, I tried two solutions: yum installation of kernel-xen, source code installation of xen tools, and fsimage. so.