1. First of all, you should install a clean Ubuntu Server (Amd-64) on your server. (Version 14.04 is strongly recommended for the best compatibility)

  2. Get the souce code of Xen ready by "git clone". ((If some errors occur in this step, you may check the /ect/apt/source.list and update it by running "$ sudo apt-get update")

     $ git clone git://xenbits.xen.org/xen.git
    If you have not yet install "git", please run "sudo apt-get install git" on your terminal.
     $ cd xen
    Use "git branch" to show the versions of Xen: 
     $ git branch -av
    master 3e2331d VT-d: suppress UR signaling for further desktop chipsets
    remotes/origin/HEAD -> origin/master
    remotes/origin/master 3e2331d VT-d: suppress UR signaling for further desktop chipsets
    remotes/origin/stable-4.0 2692df2 compat/gnttab: Prevent infinite loop in compat code
    remotes/origin/stable-4.1 8995a94 page-alloc: scrub pages used by hypervisor upon freeing
    remotes/origin/stable-4.2 7bcdeb9 update Xen version to 4.2.
    remotes/origin/stable-4.3 a153d8a update Xen version to 4.3.
    remotes/origin/stable-4.4 be84c34 evtchn: check control block exists when using FIFO-based events
    remotes/origin/staging 3e2331d VT-d: suppress UR signaling for further desktop chipsets
    remotes/origin/staging-4.0 2692df2 compat/gnttab: Prevent infinite loop in compat code
    remotes/origin/staging-4.1 8995a94 page-alloc: scrub pages used by hypervisor upon freeing
    remotes/origin/staging-4.2 7bcdeb9 update Xen version to 4.2.
    remotes/origin/staging-4.3 a153d8a update Xen version to 4.3.
    remotes/origin/staging-4.4 be84c34 evtchn: check control block exists when using FIFO-based events

    Checkout to "stable-4.4" and create a new branch named "netopt" and then checkout to it:

     $ git checkout stable-4.4
    Switched to branch 'stable-4.4'
    $ git branch netopt
    $ git checkout netopt
    Switched to branch 'net opt'
  3. Before compiling the source code of Xen, you must install the dependencies: (If some errors occur in this step, you may check the /ect/apt/source.list and update it by running "$ sudo apt-get update")

     $ sudo apt-get install build-essential
    $ sudo apt-get install bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif
    $ sudo apt-get install texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended pciutils-dev mercurial
    $ sudo apt-get install make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg-dev
    $ sudo apt-get install iasl libbz2-dev e2fslibs-dev git-core uuid-dev ocaml ocaml-findlib libx11-dev bison flex xz-utils libyajl-dev
    $ sudo apt-get install gettext pandoc markdown python-dev
    $ sudo apt-get install libperl-dev libgtk2.-dev libaio-dev gcc-multilib
  4. Now you can compile the source code and install Xen: (Note that this step takes a long time. Be patient!)

     $ ./configure
    $ make world
    $ sudo make install
  5. After step 4, Xen is already successfully installed on your machine. However, some post-installation operations is necessary:

    You can enable automatic start of Xen Project services on system startup:

     $ sudo update-rc.d xencommons defaults
    $ sudo update-rc.d xendomains defaults
    $ sudo update-rc.d xen-watchdog defaults

    By running "$ ls /etc/init.d/", you can find "xencommons", "xendomains" and "xen-watchdog". Note that Starting with Xen-4.3, "xend" is abandoned and replace by "xl".

    You also need to make some changes to "/boot/grub/grub.cfg" to correctly boot to xen.gz:

     $ sudo update-grub
    $ sudo vim /boot/grub/grub.cfg

    Modify the grub default option from "0" to "2": set default="2" (The option "2" normally locates the menuentry of "xen.gz")

  6. Reboot the Ubuntu Server: (Now your machine will automatically boot from Xen's core)

     $ sudo reboot
  7. You can run "sudo xl list" to test whether Xen is running correctly. If some errors occur, try to add a soft link to "libxenctrl.so.4.4":

     $ ln -s /usr/local/lib/libxenctrl.so.4.4 libxenctrl.so.4.4
    $ sudo ldconfig

    Then restart service xencommons:

     $ sudo service xencommons start/restart

    or:

     $ sudo /etc/init.d/xencommons start/restart 
    Congradulations! All steps are completed and now you can create a virtual machine by "sudo xl create **".

Compiling Xen-4.4 From Source And Installing It On Ubuntu Server (Amd-64)的更多相关文章

  1. Installing PHP5 on Ubuntu Server

    When installing PHP 5 from source I ran into the following problems and solutions: Problem:configure ...

  2. Compiling a kernel module for the raspberry pi 2 via Ubuntu host

    Compiling a kernel module for the raspberry pi 2 via Ubuntu host Normally compiling a kernel module ...

  3. eclipse下启动tomcat出现Setting property 'source' to 'org.eclipse.jst.jee.server: '错误的解决办法

    在eclipse中启动tomcat时出现Setting property 'source' to 'org.eclipse.jst.jee.server:你的站点名'   did not find a ...

  4. Eclipse报错:Setting property 'source' to 'org.eclipse.jst.jee.server:test1' did no

    最近把Eclipse的maven插件从m2eclipse更新到m2e后出了一些莫名其妙的的问题.今天又出了一个,就是Eclipse新建的Maven Web project在tomcat里启动后报错,具 ...

  5. 从0开始学Java——eclipse下运行servlet程序警告:Setting property 'source' to 'org.eclipse.jst.jee.server:类名' did not find a matching property.

    在使用Eclipse 创建第一个 Servlet之后,并且配置好了tomcat,然后Run on server的之后,提示标题所示错误: 警告: [SetContextPropertiesRule]{ ...

  6. Setting property 'source' to 'org.eclipse.jst.jee.server

    警告: [SetPropertiesRule] Setting property 'source' to 'org.eclipse.jst.jee.server:project' did not fi ...

  7. 用eclipse javaEE编程时,不管什么程序都会出现这个错误[SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:bookstore' did not find

    用eclipse javaEE编程时,不管什么程序都会出现这个错误[SetContextPropertiesRule]{Context} Setting property 'source' to 'o ...

  8. 配置servers时,错误:Setting property 'source' to 'org.eclipse.jst.jee.server:hczm' did not find a matching property

    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.e ...

  9. Setting property 'source' to 'org.eclipse.jst.jee.server [问题点数:40分]

    链接地址:http://bbs.csdn.net/topics/390131469 警告: [SetContextPropertiesRule]{Context} Setting property ' ...

随机推荐

  1. poj - 3225 Roadblocks(次短路)

    http://poj.org/problem?id=3255 bessie 有时会去拜访她的朋友,但是她不想走最快回家的那条路,而是想走一条比最短的路长的次短路. 城镇由R条双向路组成,有N个路口.标 ...

  2. Linux屏幕录制gif的工具及教程

    准备 要两个工具配合使用.它们可以用命令行安装,也可以用软件管理器安装. 1,byzanz     安装后有两个命令 byzanz-record   录制,既能录制 Gif 动画,又可录制 Ogv 视 ...

  3. Jenkins+Maven+Git搭建持续集成和自动化部署的配置手记

    前言    持续集成这个概念已经成为软件开发的主流,可以更频繁的进行测试,尽早发现问题并提示.自动化部署就更不用说了,可以加快部署速度,并可以有效减少人为操作的失误.之前一直没有把这个做起来,最近的新 ...

  4. 在DirectX 中进行2D渲染

    http://flcstudio.blog.163.com/blog/static/756035392008115111123672/ 最近,我看到很多关于DirectX8在最新的API中摒弃Dire ...

  5. Datagridview的某些属性again

    private void button1_Click(object sender, EventArgs e) //这里是不用泛型集合的情况,用的是Datatable { SqlConnection c ...

  6. 使用git submodule管理一个需要多个分立开发或者第三方repo的项目

    在项目开发中,特别是web前端开发中,有非常多的开源第三方library,我们希望引用他们,同时也希望能够方便地保持这些第三方 开源repo的更新.另外一方面如果我们自己在开发一个网站的项目,这个项目 ...

  7. Elasticsearch学习笔记

    Why Elasticsearch? 由于需要提升项目的搜索质量,最近研究了一下Elasticsearch,一款非常优秀的分布式搜索程序.最开始的一些笔记放到github,这里只是归纳总结一下. 首先 ...

  8. 转载:NPOI导出到Excel表格

    NPOI开发包下载:http://pan.baidu.com/share/link?shareid=4025220936&uk=2837994235 需要命名空间 using NPOI.HSS ...

  9. Git之 手把手教你使用Git

    一:Git是什么? Git是目前世界上最先进的分布式版本控制系统. 二:SVN与Git的最主要的区别? SVN是集中式版本控制系统,版本库是集中放在中央服务器的,而干活的时候,用的都是自己的电脑,所以 ...

  10. CSS打造三级下拉菜单

    <html><head><meta http-equiv="Content-Type" content="text/html; charse ...