Compiling Xen-4.4 From Source And Installing It On Ubuntu Server (Amd-64)
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)
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 eventsCheckout 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'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-multilibNow you can compile the source code and install Xen: (Note that this step takes a long time. Be patient!)
$ ./configure
$ make world
$ sudo make installAfter 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 defaultsBy 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.cfgModify the grub default option from "0" to "2": set default="2" (The option "2" normally locates the menuentry of "xen.gz")
Reboot the Ubuntu Server: (Now your machine will automatically boot from Xen's core)
$ sudo reboot
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 ldconfigThen 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)的更多相关文章
- Installing PHP5 on Ubuntu Server
When installing PHP 5 from source I ran into the following problems and solutions: Problem:configure ...
- 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 ...
- 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 ...
- Eclipse报错:Setting property 'source' to 'org.eclipse.jst.jee.server:test1' did no
最近把Eclipse的maven插件从m2eclipse更新到m2e后出了一些莫名其妙的的问题.今天又出了一个,就是Eclipse新建的Maven Web project在tomcat里启动后报错,具 ...
- 从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]{ ...
- Setting property 'source' to 'org.eclipse.jst.jee.server
警告: [SetPropertiesRule] Setting property 'source' to 'org.eclipse.jst.jee.server:project' did not fi ...
- 用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 ...
- 配置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 ...
- Setting property 'source' to 'org.eclipse.jst.jee.server [问题点数:40分]
链接地址:http://bbs.csdn.net/topics/390131469 警告: [SetContextPropertiesRule]{Context} Setting property ' ...
随机推荐
- BZOJ 1018 堵塞的交通traffic(线段树)
题目链接:http://61.187.179.132/JudgeOnline/problem.php?id=1018 题意:一个2*n的格子,相邻格子之间有一条道路.初始时道路是不通的. 三种操作:( ...
- 【uva】1220 Party at Hali-Bula
1. 题目描述公司里有$n, n \in [1, 200]$个人,他们间的关系构成树状结构.除老板外,每个员工都有唯一一个直属上司,要求从中选择尽量多的人,但是不能同时选择员工和他的直属上司,问最多能 ...
- gridview 单击行时如何让SelectedIndexChanging事件响应
在gridview控件上单击行的时候,是不触发SelectedIndexChanging事件的,那么想要单击时触发SelectedIndexChanging事件时怎么做呢? 我是这样做的: 在grid ...
- windows主机无法访问服务器
在CentOS下安装配置hadoop的时候,总显示因为网络端口而导致主机无法访问服务器,遂打算先关闭一下防火墙. 偶然看到防火墙的配置操作说明,感觉不错.执行”setup”命令启动文字模式配置实用程序 ...
- Selenium系列教程(2)
Selenium RC(Selenium远程控制) Selenium RC是一个用Java编写的,允许用户使用无论哪种编程语言对基于Web的应用程序构建测试脚本的工具.Selenium RC克服了Se ...
- ogre--hlsl--矩阵
重要注释——矩阵的顺序:有一件事需要牢记,HLSL允许你使用2种不同方式处理矩阵和向量相乘——mul(v,m)或者mul(m,v).二者之间唯一的区别就是矩阵被有效地变换.在OGRE中传递矩阵你应该使 ...
- xmlWriter 以UTF-8格式写xml问题
dom4j中的XMLWriter提供以下几种构造方法: XMLWriter() XMLWriter(OutputFormat format) XMLWriter(OutputStream out) X ...
- UVa 12627 (递归 计数 找规律) Erratic Expansion
直接说几个比较明显的规律吧. k个小时以后,红气球的个数为3k. 单独观察一行: 令f(r, k)为k个小时后第r行红气球的个数. 如果r为奇数,f(r, k) = f((r+1)/2, k-1) * ...
- scala学习笔记(1):基本语法与容器
1 var 可变,val 不可变 var (a,b) = (10,20) 分别对a,b赋值 a=10, b=20 var a,b = (10,20)则 是a=(10,20) b=(10,20) 2 L ...
- Android 签名详解
Android 签名详解 AndroidOPhoneAnt设计模式Eclipse 在Android 系统中,所有安装 到 系统的应用程序都必有一个数字证书,此数字证书用于标识应用程序的作者和在应用程 ...