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