Linux mint 12 Lisa install notes (3) Compile xen 4.1.3-rc1-pre

Source: Internet
Author: User
Tags linux mint

Install mercurial, the source code management tool used by xen, and use it to download stable source code.

hg clone http://xenbits.xen.org/hg/xen-4.1-testing.hg/

Detection dependency

cd tools/checkmake

Install the missing package

libssl-devuuid-devbcciasltexinfobridge-utilspython-dev

Compile

make xenmake toolsmake stubdom

Problem: Make stubdom compilation error. bits/predefs. h cannot be found

My system is 64-bit, and newlib used in stubdom is 32-bit, so 32-bit libc is required.

Solution: Download 32-bit GCC and libc

Gcc-multilib

Install

Sudo make install-xensudo make install-tools python_prefix_arg = "-- install-layout = Deb" Optional: sudo make install-stubdom


Delete all generated links xen *. GZ under the/boot directory,Leave only xen-4.1.3-pre.gz

Then generate a new boot menu with the grub2-mkconfig.

Finally, manually edit/boot/grub2/grub. cfg to move the commonly used "Linux mint 12 with kernel 3.2.6 and xen 4.1.3-rc1-pre" to the front.

Troubleshooting

1. Install xen In ubuntu. Note that you must add

PYTHON_PREFIX_ARG="--install-layout=deb"

Otherwise

The installation path of the xen Python tool (such as XM) is incorrect and cannot be correctly run.

When you run XM, a message is displayed.

viktor@viktor-mint / $ xmTraceback (most recent call last):  File "/usr/sbin/xm", line 5, in <module>    from xen.xm import mainImportError: No module named xen.xm

2. Restart xen dom0 and run XM to prompt xencommons shocould be run first.

Add (or. Profile) in/etc/rc. Local

service xencommons startservice xend start

3. When running the XL (xenlight) tool, the system prompts that the link library so cannot be found.

ImportError: libxenctrl.so.4.0: cannot open shared object file: No such file or directory

Check ldconfig:

viktor@viktor-mint ~/src/xen-4.1-testing.hg $ ldconfig -p |grep xen        libxenstore.so.3.0 (libc6,x86-64) => /usr/lib/libxenstore.so.3.0

The so file is not registered in ldconfig. It turns out that/lib64 is not added to the search path.

Solution: Add a reference to/lib64 in/etc/lD. So. conf. d/and update the LD data.

4. The system is unstable during use. When using panic, the calling stack contains the PTE (page table) related functions.

Maybe it's related to the version ......? Coming soon

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.