Problem and Solution of enabling the VM fsimage. So in xen3.0

Source: Internet
Author: User

[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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.