#Check all the control panel under
yast2
#Do update using this command
zypper update
#Before installation put the VZ partition to /srv/vz
Install OpenVZ under openSUSE - Do this part carefully
=========================================================================
#First step go to zypper repo
cd /etc/zypp/repos.d
#Do this
vi openvz-kernel.repo
+++ type this contain
[openVZ-kernel]
name=OpenVZ-Kernel-2.6.27
enable=1
autorefresh=1
baseurl=http://download.opensuse.org/repositories/Virtualization%3a/OpenVZ%3a/kernel-2.6.27/openSUSE_11.1/
path=/
type=rpm-md
keeppackages=0
+++
vi openvz-tool.repo
+++ type this contain
[openvz-tool]
name=OpenVZ-Tools
enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/repositories/Virtualization:/OpenVZ:/tools/openSUSE_11.1/
path=/
type=rpm-md
keeppackages=0
+++
#Refresh the zypper
zypper-refresh
#Install using yast, dont using zypper
yast2 -> Software Management -> type ovz -> install all openVZ, don't install kernel-ovz-syms
#Check the bootloader make it sure the kernel correct, if >3.25GB using OVZ-PAE
#Edit some config
vi /etc/systctl.conf
+++
# Disable response to broadcasts.
# You don't want yourself becoming a Smurf amplifier.
net.ipv4.icmp_echo_ignore_broadcasts = 1
# enable route verification on all interfaces
net.ipv4.conf.all.rp_filter = 1
# enable ipV6 forwarding
#net.ipv6.conf.all.forwarding = 1
# increase the number of possible inotify(7) watches
fs.inotify.max_user_watches = 65536
# avoid deleting secondary IPs on deleting the primary IP
net.ipv4.conf.default.promote_secondaries = 1
net.ipv4.conf.all.promote_secondaries = 1
net.ipv4.conf.all.forwarding = 1
net.ipv4.conf.default.forwarding = 1
net.ipv4.conf.all.proxy_arp = 1
net.ipv4.conf.default.proxy_arp = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.default.proxy_ndp = 1
net.ipv6.conf.all.proxy_ndp = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.icmp_echo_ignore_broadcasts= 1
kernel.sysrq = 1
++++
vi /etc/vz/vz.conf
+++
NEIGHBOUR_DEVS=all
+++
#Restart the machine using new kernel
shutdown -r now
# Start VZ Service
/etc/init.d/vz start
if give you an error, make it sure the ipv6 is enabled, otherwise try modprobe ipv6
#Add VZ service to start-up
chkconfig --add vz
chkconfig vz on
zypper install vzctl vzquota
lsmod | grep vz
===================Shoud Give You This============================
+vzethdev 24704 0 +
+vznetdev 30212 2 +
+vzrst 133268 0 +
+vzcpt 117540 0 +
+tun 27012 2 vzrst,vzcpt +
+vzdquota 51712 1 [permanent] +
+vzmon 39308 5 vzethdev,vznetdev,vzrst,vzcpt +
+vzdev 19336 4 vzethdev,vznetdev,vzdquota,vzmon+
+ipv6 241828 47 vzrst,vzcpt,vzmon +
==================Yippie openVZ Working===========================
Create openVZ Host
=========================================================================
cd /srv/vz/template/cache
wget http://download.openvz.org/template/precreated/contrib/centos-5-i386-default-5.3-20090803.tar.gz
#VZ Insallation
vzsplit -n 1 -f vps.1
vzctl create 101 --ostemplate centos-5-i386-default-5.3-20090803 --config vps.1
vzctl set 101 --onboot yes --save
vzctl set 101 --hostname S1SmNaNnLx21v.netdns.net --save
vzctl set 101 --ipadd 202.157.142.61 --save
vzctl set 101 --nameserver 165.21.83.88 --save
# highest upper limit
vzctl set 101 --kmemsize 2147483647:2147483647 --save
vzctl set 101 --lockedpages 2147483647:2147483647 --save
vzctl set 101 --privvmpages 2147483647:2147483647 --save
vzctl set 101 --shmpages 2147483647:2147483647 --save
vzctl set 101 --numproc 2147483647:2147483647 --save
vzctl set 101 --numtcpsock 2147483647:2147483647 --save
vzctl set 101 --numflock 2147483647:2147483647 --save
vzctl set 101 --numpty 2147483647:2147483647 --save
vzctl set 101 --numsiginfo 2147483647:2147483647 --save
vzctl set 101 --tcpsndbuf 2147483647:2147483647 --save
vzctl set 101 --tcprcvbuf 2147483647:2147483647 --save
vzctl set 101 --othersockbuf 2147483647:2147483647 --save
vzctl set 101 --dgramrcvbuf 2147483647:2147483647 --save
vzctl set 101 --numothersock 2147483647:2147483647 --save
vzctl set 101 --dcachesize 2147483647:2147483647 --save
vzctl set 101 --numfile 2147483647:2147483647 --save
vzctl set 101 --numiptent 2147483647:2147483647 --save
vzctl set 101 --diskspace 1423360000:1433600000 --save
vzctl set 101 --diskinodes 1390000000:1400000000 --save
Regards,
феникс
this is a good tutorial, but it's don't work anymore,,
ReplyDeletecan you update this tutorial for opensuse 13.1??