|
|
编写人:Shy9000- cd /etc/yum.repos.d
- wget http://download.openvz.org/openvz.repo
- rpm --import http://download.openvz.org/RPM-GPG-Key-OpenVZ
- yum install ovzkernel.x86_64
- wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028stab070.2/ovzkernel-devel-2.6.18-194.8.1.el5.028stab070.2.x86_64.rpm
- rpm -ihv ovzkernel-devel-2.6.18-194.8.1.el5.028stab070.2.x86_64.rpm
复制代码 然后vi /boot/grub/grub.conf
查看第一个title,例如:- title CentOS (2.6.18-194.8.1.el5.028stab070.2)
- root (hd0,0)
- kernel /boot/vmlinuz-2.6.18-194.8.1.el5.028stab070.2 ro root=LABEL=/ acpi=off console=ttyS0,38400
- initrd /boot/initrd-2.6.18-194.8.1.el5.028stab070.2.img
复制代码 那么你去掉root=LABEL=/ 后面的东西,然后再把CENTOS改成OPENVZ,加到这个title的上面- title OpenVZ (2.6.18-194.8.1.el5.028stab070.2)
- root (hd0,0)
- kernel /boot/vmlinuz-2.6.18-194.8.1.el5.028stab070.2 ro root=LABEL=/
- initrd /boot/initrd-2.6.18-194.8.1.el5.028stab070.2.img
复制代码 保存之后重启完之后,安装VZ组件- wget http://linux.carreira.com.pt/ovzutils/setx86_64-0.5.tar.gz
- tar xzvf setx86_64-0.5.tar.gz
- sh setx86_64
复制代码 最后,搞定.
[ 本帖最后由 shy9000 于 2010-7-25 16:40 编辑 ] |
评分
-
查看全部评分
|