Pada tutorial kali ini saya akan mencoba sharing tentang OpenVZ.

OpenVZ adalah sebuah teknologi virtualisasi di level Operating sistem. OpenVZ memungkinkan untuk menjalankan beberapa sistem operasi yang ada didalamnya yang biasa disebut Container, VPS, atau Virtualization Environment. Dengan kata lain, OpenVZ adalah sebuah teknologi untuk menjalankan operating sistem didalam operating sistem.

Pada tutorial kali ini, Saya menggunakan operating sistem Centos 6.5 sebagai Host dengan IP 192.168.1.50. Dan saya akan mencoba deploy Ubuntu server 15.10 sebagai Guest didalam centosnya dengan IP 192.168.1.51.

Langsung saja kita ke tahap Instalasi OpenVZ

1. Install Centos 6.5 seperti biasa

2. Disable firewall and selinux

3. Install vzkernel from another repository
# wget -P /etc/yum.repos.d/ http://ftp.openvz.org/openvz.repo
# rpm –import http://ftp.openvz.org/RPM-GPG-Key-OpenVZ    
# yum install vzkernel vzctl vzquota ploop

4. Edit sysctl.conf sesuai dengan konfigurasi dibawah ini
# nano /etc/sysctl.conf
—————————————————————-
# packet forwarding enabled and proxy arp disabled
net.ipv4.ip_forward = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.default.proxy_arp = 0
 
# Enables source route verification
net.ipv4.conf.all.rp_filter = 1
 
# Enables the magic-sysrq key
kernel.sysrq = 1
—————————————————————–

4. Reboot server
# init 6

5. While starting up, please chooze “OpenVZ kernel”

6. Create Virtual Machine
# cd /vz/template/cache
# wget http://download.openvz.org/template/precreated/ubuntu-15.10-x86_64.tar.gz
# vzctl create 10 –ostemplate ubuntu-15.10-x86_64
# vzctl set 10 –onboot yes –save
# vzctl set 10 –ipadd 192.168.1.51 –save
# vzctl set 10 –nameserver 192.168.1.1 –save
# vzctl set 10 –hostname sabto-yupi.com –save
# vzctl set 10 –diskspace 10G:11G –save
# vzctl start 10
# vzctl enter 10

vzctl

 

Sekian tutorial dari saya semoga bermanfaat untuk pembaca. Jika ada pertanyaan boleh sampaikan dikomentar. Terimakasih Banyak dan Selamat Berlibur di akhir tahun 2015.

Leave a Reply

Your email address will not be published. Required fields are marked *