计算机教程

当前位置:3522.com > 计算机教程 > How To Install Xen On Ubuntu 11.10 (Oneiric)

How To Install Xen On Ubuntu 11.10 (Oneiric)

来源:http://www.4sports-uk.com 作者:3522.com 时间:2019-10-22 03:24

apt-get install xen-tools xen-utils-common xenwatch libxen-dev xen-docs-4.1 xen-hypervisor-4.1-amd64 xen-utils-4.1 xenstore-utils bridge-utils

centos7 安装XEN失败求助
服务器 PowerEdge R610
CPU:双路 Xeon E5620
内存:16G
系统安装ISO:CentOS-7-x86_64-Minimal-1804.iso
安装系统后操作

grub:

yum install bash-completion -y
yum install bzip2 bzip2-devel zlib-devel sqlite-devel
yum groupinstall development tools
yum install cmake ncurses ncurses-devel -y
yum install epel-release
yum install centos-release-xen
yum update #这里会更新内核到 Linux 4.9.127-32.el7.x86_64
yum install xen

修改set default="2",即启动下面的内核:

然后重启后,进系统在有 Xen hypervisor 字样的启动项就无法进系统,会自动重启
而在没有 Xen hypervisor 启动项是可以正常进系统的,下面是系统自动生成的grub.cfg ,求高手帮忙分析原因
还有,我在自己家的电脑试的时候,使用同样的步骤是可以正常进入系统,所不同的家里的电脑使用的安装是 CentOS-7-x86_64-LiveGNOME-1708.iso

submenu "Xen 4.1-amd64" {
menuentry 'Ubuntu GNU/Linux, with Xen 4.1-amd64 and Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class
gnu --class os --class xen {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 162bc81d-3f41-45cb-adf0-d56994a2a55c
        echo    'Loading Xen 4.1-amd64 ...'
        multiboot       /boot/xen-4.1-amd64.gz placeholder
        echo    'Loading Linux 3.0.0-12-generic ...'
        module  /boot/vmlinuz-3.0.0-12-generic placeholder root=UUID=162bc81d-3f41-45cb-adf0-d56994a2a55c ro  quiet
splash
        echo    'Loading initial ramdisk ...'
        module  /boot/initrd.img-3.0.0-12-generic
}

#

xend配置:
vim /etc/xen/xend-config.sxp添加下面一行
(network-script network-bridge)

DO NOT EDIT THIS FILE

#

网桥配置

It is automatically generated by grub2-mkconfig using templates

cat /etc/network/interfaces   
     auto lo
     iface lo inet loopback
     auto eth0
     iface eth0 inet dhcp
/etc/init.d/networking restart
ifdown eth0
brctl delbr tmpbridge
/etc/xen/scripts/network-bridge start
确认一下是否OK了: 
brctl show
bridge name     bridge id               STP enabled     interfaces
eth0            8000.1c6f650addfe       no              peth0

from /etc/grub.d and settings from /etc/default/grub

#

ifconfig命令可以看到熟悉的eth0和peth0,但是eth0和peth0居然有相同的IP,重启后恢复正常。

BEGIN /etc/grub.d/00_header

set pager=1

if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

terminal_output console
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

Fallback normal timeout code in case the timeout_style feature is

图片 1

unavailable.

else
set timeout=5
fi

END /etc/grub.d/00_header

BEGIN /etc/grub.d/00_tuned

set tuned_params=""
set tuned_initrd=""

END /etc/grub.d/00_tuned

BEGIN /etc/grub.d/01_users

if [ -f ${prefix}/user.cfg ]; then
source ${prefix}/user.cfg
if [ -n "${GRUB2_PASSWORD}" ]; then
set superusers="root"
export superusers
password_pbkdf2 root ${GRUB2_PASSWORD}
fi
fi

END /etc/grub.d/01_users

本文由3522.com发布于计算机教程,转载请注明出处:How To Install Xen On Ubuntu 11.10 (Oneiric)

关键词: 3522.com

上一篇:Linux的sed命令

下一篇:没有了