Cz we can use OpenVZ for cloud computing. Sow we must prepare to install it :)
we can install OpenVZ on CentOS.And Here Iam use CentOS 6.3 new version.
So this is step By step Give to you about OpenVZ Instalation On CentOS :
Step One :
we Must add the OpenVZ repository to yum :
~ cd /etc/yum.repos.d
~ wget http://download.openvz.org/openvz.repo
~ rpm --import http://download.openvz.org/RPM-GPG-Key-OpenVZ
Step two :
edit openvz.repo :
~ vi openvz.repo
and Disable openvz-kernel-rhel5 then Enable openvz-kernel-rhel6 repositry instead :
code :
[openvz-kernel-rhel6]
name=OpenVZ RHEL6-based kernel
#baseurl=http://download.openvz.org/kernel/branches/rhel6-2.6.32/current/
mirrorlist=http://download.openvz.org/kernel/mirrors-rhel6-2.6.32
enabled=1 => change this
gpgcheck=1
gpgkey=http://download.openvz.org/RPM-GPG-Key-OpenVZ
[openvz-kernel-rhel5]
name=OpenVZ RHEL5-based kernel
#baseurl=http://download.openvz.org/kernel/branches/rhel5-2.6.18/current/
mirrorlist=http://download.openvz.org/kernel/mirrors-rhel5-2.6.18
enabled=0 => change this
gpgcheck=1
gpgkey=http://download.openvz.org/RPM-GPG-Key-OpenVZ
Step three :
Install VZ Kernel :
~ yum install vzkernel
~ yum install vzctl vzqouta
Step Four :
Change the Boot loader for CentOS with OpenVZ Kernel Boot loader.
~ vi /boot/grub/menu.lst
Change the Default Value = 0
code :
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_server1-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title OpenVZ (2.6.32-042stab057.1)
root (hd0,0)
kernel /vmlinuz-2.6.32-042stab057.1 ro root=/dev/mapper/vg_server1-lv_root rd_LVM_LV=vg_server1/lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=de rd_LVM_LV=vg_server1/lv_swap rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-042stab057.1.img
title CentOS (2.6.32-279.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-279.el6.x86_64 ro root=/dev/mapper/vg_server1-lv_root rd_LVM_LV=vg_server1/lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=de rd_LVM_LV=vg_server1/lv_swap rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-279.el6.x86_64.img
Step Five :
Edit sysctl.conf
~ vi /etc/sysctl.conf
add this to sysctl.conf
code :
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.all.rp_filter = 1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.icmp_echo_ignore_broadcasts=1
net.ipv4.conf.default.forwarding=1
Six Step :
avtivate the sysctl rule
~ sysctl -p
Seven Step :
Edit VZ Configuration :
~ vi /etc/vz/vz.conf
Search the "NEIGHBOUR_DEVS" and change = all
code :
NEIGHBOUR_DEVS=all
Eight Step :
Now Disable SelLinux for runing OpenVZ in CentOS :
~ vi /etc/sysconfig/selinux
set the value of sellinux = disable
code :
# 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 - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
Finally :
~ reboot
If your system reboots without problems, then everything is fine!
then type :
~ uname -r
2.6.32-042stab072.10
Oke This is just "Basic Cloud Computing" and we will give other in another time :).
./Thankz
Title : OpenVZ VPS Installation
Description : Now i will give about OpenVZ Virtualization and we can make VPS/Virtual Privat Server with it.and this is basics of cloud computing. Cz...
Description : Now i will give about OpenVZ Virtualization and we can make VPS/Virtual Privat Server with it.and this is basics of cloud computing. Cz...
I read your article you give some grateful information about high quality of openvz vps. it is very appreciable .we als provide openvz vps visit Switzerland Dedicated Server, openvz vps
ReplyDeleteI read your article you give some grateful information about high quality of dedicated server hosting Netherlands it is very appreciable . If you want to more details then go throw the link openvz vps
ReplyDelete