beishanfengyun 2018-10-10 02:11 采纳率: 42.9%
浏览 1281
已采纳

centos7 安装XEN失败求助

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

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

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

#

DO NOT EDIT THIS FILE

#

It is automatically generated by grub2-mkconfig using templates

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

#

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

Fallback normal timeout code in case the timeout_style feature is

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

BEGIN /etc/grub.d/08_linux_xen

menuentry 'CentOS Linux, with Xen hypervisor' --class centos --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-simple-b3016e8b-ad70-45a5-aa25-51cefb7e849e' {
insmod part_msdos
insmod xfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 0fae79e6-d842-488c-990b-0d9d811ab596
else
search --no-floppy --fs-uuid --set=root 0fae79e6-d842-488c-990b-0d9d811ab596
fi
echo 'Loading Xen 4.8.4.43.ge52ec4b787-1.el7 ...'
if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
xen_rm_opts=
else
xen_rm_opts="no-real-mode edd=off"
fi
multiboot /xen-4.8.4.43.ge52ec4b787-1.el7.gz placeholder dom0_mem=1024M,max:1024M cpuinfo com1=115200,8n1 console=com1,tty loglvl=all guest_loglvl=all ${xen_rm_opts}
echo 'Loading Linux 4.9.127-32.el7.x86_64 ...'
module /vmlinuz-4.9.127-32.el7.x86_64 placeholder root=/dev/mapper/centos-root ro rd.lvm.lv=centos/root rd.lvm.lv=centos/swap console=hvc0 earlyprintk=xen nomodeset
echo 'Loading initial ramdisk ...'
module --nounzip /initramfs-4.9.127-32.el7.x86_64.img
}
submenu 'Advanced options for CentOS Linux (with Xen hypervisor)' $menuentry_id_option 'gnulinux-advanced-b3016e8b-ad70-45a5-aa25-51cefb7e849e' {
submenu 'Xen hypervisor, version 4.8.4.43.ge52ec4b787-1.el7' $menuentry_id_option 'xen-hypervisor-4.8.4.43.ge52ec4b787-1.el7-b3016e8b-ad70-45a5-aa25-51cefb7e849e' {
menuentry 'CentOS Linux, with Xen 4.8.4.43.ge52ec4b787-1.el7 and Linux 4.9.127-32.el7.x86_64' --class centos --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.9.127-32.el7.x86_64-advanced-b3016e8b-ad70-45a5-aa25-51cefb7e849e' {
insmod part_msdos
insmod xfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 0fae79e6-d842-488c-990b-0d9d811ab596
else
search --no-floppy --fs-uuid --set=root 0fae79e6-d842-488c-990b-0d9d811ab596
fi
echo 'Loading Xen 4.8.4.43.ge52ec4b787-1.el7 ...'
if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
xen_rm_opts=
else
xen_rm_opts="no-real-mode edd=off"
fi
multiboot /xen-4.8.4.43.ge52ec4b787-1.el7.gz placeholder dom0_mem=1024M,max:1024M cpuinfo com1=115200,8n1 console=com1,tty loglvl=all guest_loglvl=all ${xen_rm_opts}
echo 'Loading Linux 4.9.127-32.el7.x86_64 ...'
module /vmlinuz-4.9.127-32.el7.x86_64 placeholder root=/dev/mapper/centos-root ro rd.lvm.lv=centos/root rd.lvm.lv=centos/swap console=hvc0 earlyprintk=xen nomodeset
echo 'Loading initial ramdisk ...'
module --nounzip /initramfs-4.9.127-32.el7.x86_64.img
}
}
submenu 'Xen hypervisor, version 4.8.4.43.ge52ec4b787-1.el7.config' $menuentry_id_option 'xen-hypervisor-4.8.4.43.ge52ec4b787-1.el7.config-b3016e8b-ad70-45a5-aa25-51cefb7e849e' {
menuentry 'CentOS Linux, with Xen 4.8.4.43.ge52ec4b787-1.el7.config and Linux 4.9.127-32.el7.x86_64' --class centos --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.9.127-32.el7.x86_64-advanced-b3016e8b-ad70-45a5-aa25-51cefb7e849e' {
insmod part_msdos
insmod xfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 0fae79e6-d842-488c-990b-0d9d811ab596
else
search --no-floppy --fs-uuid --set=root 0fae79e6-d842-488c-990b-0d9d811ab596
fi
echo 'Loading Xen 4.8.4.43.ge52ec4b787-1.el7.config ...'
if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
xen_rm_opts=
else
xen_rm_opts="no-real-mode edd=off"
fi
multiboot /xen-4.8.4.43.ge52ec4b787-1.el7.config placeholder dom0_mem=1024M,max:1024M cpuinfo com1=115200,8n1 console=com1,tty loglvl=all guest_loglvl=all ${xen_rm_opts}
echo 'Loading Linux 4.9.127-32.el7.x86_64 ...'
module /vmlinuz-4.9.127-32.el7.x86_64 placeholder root=/dev/mapper/centos-root ro rd.lvm.lv=centos/root rd.lvm.lv=centos/swap console=hvc0 earlyprintk=xen nomodeset
echo 'Loading initial ramdisk ...'
module --nounzip /initramfs-4.9.127-32.el7.x86_64.img
}
}
submenu 'Xen hypervisor, version xen' $menuentry_id_option 'xen-hypervisor-xen-b3016e8b-ad70-45a5-aa25-51cefb7e849e' {
menuentry 'CentOS Linux, with Xen xen and Linux 4.9.127-32.el7.x86_64' --class centos --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.9.127-32.el7.x86_64-advanced-b3016e8b-ad70-45a5-aa25-51cefb7e849e' {
insmod part_msdos
insmod xfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 0fae79e6-d842-488c-990b-0d9d811ab596
else
search --no-floppy --fs-uuid --set=root 0fae79e6-d842-488c-990b-0d9d811ab596
fi
echo 'Loading Xen xen ...'
if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
xen_rm_opts=
else
xen_rm_opts="no-real-mode edd=off"
fi
multiboot /xen.gz placeholder dom0_mem=1024M,max:1024M cpuinfo com1=115200,8n1 console=com1,tty loglvl=all guest_loglvl=all ${xen_rm_opts}
echo 'Loading Linux 4.9.127-32.el7.x86_64 ...'
module /vmlinuz-4.9.127-32.el7.x86_64 placeholder root=/dev/mapper/centos-root ro rd.lvm.lv=centos/root rd.lvm.lv=centos/swap console=hvc0 earlyprintk=xen nomodeset
echo 'Loading initial ramdisk ...'
module --nounzip /initramfs-4.9.127-32.el7.x86_64.img
}
}
}

END /etc/grub.d/08_linux_xen

BEGIN /etc/grub.d/10_linux

menuentry 'CentOS Linux (4.9.127-32.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.9.127-32.el7.x86_64-advanced-b3016e8b-ad70-45a5-aa25-51cefb7e849e' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod xfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 0fae79e6-d842-488c-990b-0d9d811ab596
else
search --no-floppy --fs-uuid --set=root 0fae79e6-d842-488c-990b-0d9d811ab596
fi
linux16 /vmlinuz-4.9.127-32.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/root rd.lvm.lv=centos/swap
initrd16 /initramfs-4.9.127-32.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-862.14.4.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-862.14.4.el7.x86_64-advanced-b3016e8b-ad70-45a5-aa25-51cefb7e849e' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod xfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 0fae79e6-d842-488c-990b-0d9d811ab596
else
search --no-floppy --fs-uuid --set=root 0fae79e6-d842-488c-990b-0d9d811ab596
fi
linux16 /vmlinuz-3.10.0-862.14.4.el7.x86_64 root=/dev/mapper/centos-root ro rd.lvm.lv=centos/root rd.lvm.lv=centos/swap
initrd16 /initramfs-3.10.0-862.14.4.el7.x86_64.img
}
menuentry 'CentOS Linux (0-rescue-68db3f1206284d85bb73169c49c4222a) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-68db3f1206284d85bb73169c49c4222a-advanced-b3016e8b-ad70-45a5-aa25-51cefb7e849e' {
load_video
insmod gzio
insmod part_msdos
insmod xfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 0fae79e6-d842-488c-990b-0d9d811ab596
else
search --no-floppy --fs-uuid --set=root 0fae79e6-d842-488c-990b-0d9d811ab596
fi
linux16 /vmlinuz-0-rescue-68db3f1206284d85bb73169c49c4222a root=/dev/mapper/centos-root ro rd.lvm.lv=centos/root rd.lvm.lv=centos/swap
initrd16 /initramfs-0-rescue-68db3f1206284d85bb73169c49c4222a.img
}

END /etc/grub.d/10_linux

BEGIN /etc/grub.d/20_ppc_terminfo

END /etc/grub.d/20_ppc_terminfo

BEGIN /etc/grub.d/30_os-prober

END /etc/grub.d/30_os-prober

BEGIN /etc/grub.d/40_custom

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the 'exec tail' line above.

END /etc/grub.d/40_custom

BEGIN /etc/grub.d/41_custom

if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi

END /etc/grub.d/41_custom

  • 写回答

2条回答 默认 最新

  • beishanfengyun 2018-10-10 03:24
    关注

    附:selinux 已经关闭

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥30 Matlab打开默认名称带有/的光谱数据
  • ¥50 easyExcel模板 动态单元格合并列
  • ¥15 res.rows如何取值使用
  • ¥15 在odoo17开发环境中,怎么实现库存管理系统,或独立模块设计与AGV小车对接?开发方面应如何设计和开发?请详细解释MES或WMS在与AGV小车对接时需完成的设计和开发
  • ¥15 CSP算法实现EEG特征提取,哪一步错了?
  • ¥15 游戏盾如何溯源服务器真实ip?需要30个字。后面的字是凑数的
  • ¥15 vue3前端取消收藏的不会引用collectId
  • ¥15 delphi7 HMAC_SHA256方式加密
  • ¥15 关于#qt#的问题:我想实现qcustomplot完成坐标轴
  • ¥15 下列c语言代码为何输出了多余的空格