1.安装Xen

   在xen.org下载最新版Xen,解压,

$make xen
$./configure

    configure: error: Unable to find Python development headers

$sudo apt-get install python-dev

    configure: error: Unable to find as86, please install as86

$sudo apt-get install bcc

    configure: error: Unable to find iasl, please install iasl

$sudo apt-get install iasl

    configure: error: cannot find a valid uuid librar

$sudo apt-get install uuid-dev

    configure: error: Unable to find a suitable curses library

$sudo apt-get install libncurses5-dev

    configure: error: Package requirements (glib-2.0 >= 2.12) were not met:

$sudo apt-get install libglib2.0-dev

    configure: error: Could not find libaio

$sudo apt-get install libaio-dev

    configure: error: Could not find libcrypto

$sudo apt-get install libssl-dev

    configure: error: Could not find yajl

$sudo apt-get install libyajl-dev

  满足所有依赖后,配置完毕。

    如果没有安装过git,请先安装git

$sudo apt-get install git

  编译tools

$ make tools

     /usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory

$sudo apt-get install gcc-multilib
$sudo apt-get install g++-multilib

    ERROR: pixman not present. 

sudo apt-get install libpixman-1.dev

  编译stubdom

make stubdom

    WARNING: `makeinfo' is missing on your system.

sudo apt-get install texinfo

  安装xen

$sudo make install-xen

  安装tools

sudo make install-tools PYTHON_PREFIX_ARG=

  安装stubdom

sudo make install-stubdom

2.安装Domain 0

  从 kernel.org下载最新内核并解压,

$make menuconfig

  我选择了默认

$make -j4
$make modules
$sudo make modules_install
$sudo make install

 make install 失败,纠结中