首页 > 日常记事 > 采用SolusVM安装Xen节点服务器

采用SolusVM安装Xen节点服务器

2011年6月4日 admin 发表评论 阅读评论

 

安装步骤是非常简单的,

wget http://soluslabs.com/installers/solusvm/install
chmod 755 install
./install

3行命令运行安装程序,我这里选择第二项 增加xen 节点 ,然后按照提示安装。

 

image

 

安装速度很快,提示安装成功。

image

 

Installation Complete!
======================

Add this slave to your SolusVM master using the following details:

ID Key ………. : CKVJ1SAIBOAGLFWR9CSYIECE
ID Password ….. : 8jWk1tir9jllSpmo14vvytUGKs616DPFohuq7utUCWp7rbXfiNZ

Edit /boot/grub/menu.lst and set the Xen kernel to boot (usually default=0)

IMPORTANT!! Run: php -f /usr/local/solusvm/includes/xenkernel.php after you have rebooted into the Xen kernel!

Please set SELINUX=disabled in /etc/selinux/config before rebooting.

Please read http://wiki.solusvm.com/index.php/Lighttpd_hotfix for important information on adding this slave to an existing master

Thankyou for choosing SolusVM.

 

首先我们要启动Xen内核,编辑启用菜单 /boot/grub/menu.lst文件

 

当前的内核可以用命令 uname -a 看到

root@187 [~]# uname -a
Linux 187.pipc.net 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

 

image

 

默认的文件 ,在这里我们把

default=1 修改成  default=0

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/md1
#          initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=5
serial –unit=0 –speed=38400
terminal –timeout=5 serial console
title CentOS (2.6.18-238.12.1.el5xen)
    root (hd0,0)
    kernel /boot/xen.gz-2.6.18-238.12.1.el5
    module /boot/vmlinuz-2.6.18-238.12.1.el5xen ro root=/dev/md1 acpi=on console=ttyS0,38400
    module /boot/initrd-2.6.18-238.12.1.el5xen.img
title CentOS (2.6.18-238.9.1.el5)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.18-238.9.1.el5 ro root=/dev/md1 acpi=on console=ttyS0,38400
    initrd /boot/initrd-2.6.18-238.9.1.el5.img

 

修改完毕启动项目以后, 我关闭SELINUX

/etc/selinux/config

root@187 [~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing – SELinux security policy is enforced.
#       permissive – SELinux prints warnings instead of enforcing.
#       disabled – SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted – Only targeted network daemons are protected.
#       strict – Full SELinux protection.
SELINUXTYPE=targeted

关闭SELINUX

分类: 日常记事 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.