1. Hyper-V

在hyper-v中安装了ubuntu13.04,运行很好,使用起来的效果感觉比vmware要舒服。安装变异xen的内核也没有问题,可以正常的安装,update-grub之后也可以在grub启动项中发现带有xen内核的ubuntu启动选项,但是在启动之后无法进入系统,总是提示alert! /dev/disk/by-uuid/########### does not exist ,后来根据

http://blog.csdn.net/luohsh1/article/details/8657921

这篇文章里面介绍的方法来设置,重新启动之后提示 ALERT! /dev/sda1 does not exist. Dropping to a shell!  后面实在是不知道该怎么去处理了,只好放弃。后面上网稍微看了看hyper-v的架构,和xen十分类似,不知道是不是这个原因导致的。

如果有人看到这个地方,知道怎么回事的话请告知。

2. VmWare

在vmware中安装ubuntu13.04后,安装xen正常编译运行,安装方法如下:

Install dependencies

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 (we dont need libjpeg62-dev since libjpeg8-dev is already installed)

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

sudo apt-get install libpixman-1-dev

sudo apt-get install gcc-multilib

get xen4.3 source from http://www.xenproject.org/downloads/xen-archives/supported-xen-43-series/xen-430.html if your UI doesn't work well, use 'wget' or something else to download it

if using Chinese, these are to be added. It is recommended that you use English at the very beginning.

sudo export LC_ALL=C

sudo export LANG=C

once you have downloaded the source code, unzip it to some directory, for example "/home/yourname/myxenfile", then 'cd' to this directory and do the following

sudo ./configure --libdir=/usr/lib (setting the lib path while configuring. otherwise you may get the "*.so file not found" issue)

sudo make dist

sudo make install

sudo update-grub

sudo update-rc.d xencommons defaults 19 18

sudo update-rc.d xend defaults 20 21

sudo update-rc.d xendomains defaults 21 20

sudo update-rc.d xen-watchdog defaults 22 23

sudo reboot

choose xen kernel at the grub menu when booting

sudo xl list

if everything goes OK, you'll see dom0 is running

if your ubuntu is running within vmware, you may find the grub menu missing and can not choose xen kernel.

you can press the "Shift" button during the restart process, then you will see the grub menu. i.e., is your xen kernel the 1st(rank=0), 2nd(rank=1) or 3rd(rank=2) in the menu list? I guess most people will have rank=2 just as I do

sudo vi /etc/default/grub

you open this file and see GRUB_DEFAULT=0. Change it until it looks as GRUB_DEFAULT=2

sudo update-grub

OK, we have set your default boot to xen kernel. reboot and use 'sudo xl list' to see what happens

Tips: backup your vm before modifying grub if you are in vmware!!!

Hyper-V和vmware在虚拟机中安装xen总结的更多相关文章

  1. VMware workstation 虚拟机中安装乌班图及其兼容性问题

    之前我在虚拟机中安装乌班图,是先安装好虚拟机,然后将预先下载好的乌班图镜像文件导入安装,这样安装起来还是有些繁琐的,中间要设置好多东西.今天领导给我拷了个虚拟机,还有乌班图的安装文件,是这样的. 对于 ...

  2. Vmware虚拟机中安装centos,并实现联网

    1 安装所需要的软件 vmware workstation 12 永久激活码:5A02H-AU243-TZJ49-GTC7K-3C61N CentOS-7-x86_64-Minimal-1708 2 ...

  3. 如何在VMware ubuntu linux虚拟机中安装VMware tools

    VMware Tools可以实现在主机<->虚拟机之间拷贝文字.文件等功能.本文讲述如何在VMware ubuntu linux虚拟机中安装VMware tools. 测试环境: VMwa ...

  4. 手把手教你在VMware虚拟机中安装Ubuntu14.04系统

    在VMware中创建完虚拟机之后,一般需要给虚拟机安装系统,比较受青睐的系统有Ubuntu和Centos,关于Centos系统的安装之前已经写过了,感兴趣的小伙伴可以戳这篇文章:靠谱的centos7. ...

  5. 如何在VMware虚拟机中安装CentOS6.7系统(上篇)

    之前给大家分享了在VMware中如何创建CentOS虚拟机,今天给大家分享一下如何在虚拟机中安装CentOS系统,以CentOS6.7系统为例,其他的系统版本也可以参考该教程进行类似处理,具体的流程如 ...

  6. 如何在VMware虚拟机中安装CentOS6.7系统(下篇)

    上一篇文章讲到了CentOS6.7的安装教程,安装步骤到时区选择这块了,这篇文章接上篇文章,继续讲述CentOS6.7的安装教程,直至安装完成. 17.设置root的登录密码,日后登录虚拟机,用户名就 ...

  7. Linux环境搭建-在虚拟机中安装Centos7.0

    最近在空闲时间学习Linux环境中各种服务的安装与配置,都属于入门级别的,这里把所有的学习过程记录下来,和大家一起分享. 我的电脑系统是win7,所以我需要在win7上安装一个虚拟机-VMware,然 ...

  8. VMware Workstation虚拟机中的Linux通过NAT模式共享上网配置教程

    VMware Workstation虚拟机中的Linux通过NAT模式共享上网配置教程 在VMware Workstation虚拟机下面,Linux虚机要上网,一般是桥接模式,但我自己的电脑上网的环境 ...

  9. 在虚拟机中安装CentOS7

    在虚拟机中安装CentOS7 听语音 | 浏览:17352 | 更新:2014-10-31 12:14 1 2 3 4 5 6 7 分步阅读 一键约师傅 百度师傅最快的到家服务,最优质的电脑清灰! 百 ...

随机推荐

  1. Log4net系列一:Log4net搭建之文本格式输出【转】

    前言 项目开发中,记录项目日志是必须的,如果非要说日志的重要性(日志可看做,飞机的黑匣子,或者汽车的行车记录仪),根据等级进行记录,方便我们排查相关问题,以后项目运维中,也方便很多.基本上我们进入一家 ...

  2. 7天学会HTML--HTML综述

    一周学会HTML 1.HTML是什么? HTML 指的是超文本标记语言 (Hyper Text Markup Language) 2.HTML发展历程 HTML版本从1.0到4.0不断升级,其版本的规 ...

  3. Oracle12c版64位客户端安装步骤(32位安装步骤一样)

    1.双击setup.exe文件 2.下一步 3.下一步   4.安装 5.完成

  4. FastAdmin 出现慢的问题 (DB host)

    FastAdmin 出现慢的问题 用户反馈断网后 FastAdmin 后台变慢. 而且是很多同事出现一样的现象. 查看了 runtime / log 里的日志,发现 DB 时间超过 20s. 经过群里 ...

  5. Android的移动存储解决方案之SharedPreferences

    搞Android有一段时间了,但是并没写过有关Android的博客,今天给大家介绍一下SharedPreferences.    使用SharedPreferences保存key-value对的步骤如 ...

  6. pmap命令 查看进程用了多少内存

    pmap命令   查看进程用了多少内存                                     用法       pmap [ -x | -d ] [ -q ] pids       ...

  7. Linux下查询一个包是32位还是64位

    Linux下查询一个包是32位还是64位 [root@localhost ~]# rpm -qa  --queryformat %-{name}-%{version}-%{release}-%{arc ...

  8. 【转】Jmeter在命令行运行技巧

    For non-interactive testing, you may choose to run JMeter without the GUI. To do so, use the followi ...

  9. 1137 Final Grading

    题意:排序题. 思路:通过unordered_map来存储考生姓名与其成绩信息结构体的映射,成绩初始化为-1,在读入数据时更新各个成绩,最后计算最终成绩并把符合条件的学生存入vector,再排序即可. ...

  10. Deep Learning 学习笔记(4):Logistic Regression 逻辑回归

    逻辑回归主要用于解决分类问题,在现实中有更多的运用, 正常邮件or垃圾邮件 车or行人 涨价or不涨价 用我们EE的例子就是: 高电平or低电平 同时逻辑回归也是后面神经网络到深度学习的基础. (原来 ...