Arief Yudhawarman

Masih belajar buat blog

Instalasi Server Mail Zimbra dengan CentOS 5.9 (VM) di Proxmox v2.3

leave a comment »

Untuk instalasi Server Mail Zimbra dengan CentOS 5.9 (Virtual Machine) di Proxmox 2.3 kita perlu mendownload OS CentOS yang sudah dioptimasi untuk virtualisasi dan source Zimbra Collabarion Server:

  1. Template/Precreated CentOS 5.9 64bit
  2. Zimbra Collaboration Server (ZCS) 6.0.16


Hostname, IP Address and VM ID

  • Proxmox
    • Hostname : proxmox1
  • Server VM
    • Hostname : server
    • FQDN : server.domain.org
    • IP Address : 172.16.51.11
    • Gateway : 172.16.51.9
    • Netmask : 255.255.255.248
    • VM ID : 100



Resources

  • Memori : 2 GB
  • Swap : 4 GB
  • Disk Size : 1 TB
  • CPU : 2


Pembuatan OpenVZ Container

  1. Login sebagai root di Proxmox Virtual Enviroment.
  2. Klik tombol Create CT.
  3. Buat Virtual Machine (VM) dengan OpenVZ Container seperti contoh pada gambar di bawah.
    Create OpenVZ Container - General

    Create OpenVZ Container – General

    Create OpenVZ Container

    Create OpenVZ Container – Template

    Create OpenVZ Container

    Create OpenVZ Container – Resources

    Create OpenVZ Container

    Create OpenVZ Container – Network

    Create OpenVZ Container

    Create OpenVZ Container – DNS

    Create OpenVZ Container - Confirm Settings

    Create OpenVZ Container – Confirm Settings

  4. Klik tombol Finish.


Konfigurasi Virtual Machine OpenVZ

  1. Mengaktifkan console.
    • Login dengan putty/ssh ke Server Proxmox.
    • Edit file /var/lib/vz/root/100/etc/inittab (100 adalah VM ID ). Lalu tambahkan baris ini seperti di bawah ini:
      1:2345:respawn:/sbin/mingetty tty1
    • Simpan perubahan.
    • Restart VM / Container.
      [root@proxmox1 ~]# vzctl restart 100
  2. Sistem Date
    Login ke VM lalu buat simbolic link /etc/localtime ke /usr/share/zoneinfo/Asia/Jakarta

    root@proxmox1:~# vzctl enter 100 
    entered into CT 100 
    [root@server ~]# date 
    Tue Jul  9 04:18:36 MSD 2013 
    [root@server ~]# ls -l /etc/localtime
    -rw-r--r-- 1 root root 2194 Jun  6  2008 /etc/localtime 
    [root@server ~]# ln -sf /usr/share/zoneinfo/Asia/Jakarta /etc/localtime 
    [root@server ~]# date 
    Tue Jul  9 07:18:51 WIT 2013

     

  3. Update VM
    Login ke VM lalu jalankan yum untuk update.

    [root@server ~]# yum install yum-utils
    [root@server ~]# yum-complete-transaction
    [root@server ~]# yum update

     

  4. Untuk mengaktifkan NFS di VM kita memerlukan software sbb:
    • vzctl version 3.0.13 or higher
    • kernel version 2.6.18-028test006 or higher (2.6.18-028stab*)
    • nfs-utils for the guest

    Set fitur nfs untuk VM kemudian restart VM.

    root@proxmox1:~# vzctl set 100 --features "nfs:on" --save
    root@proxmox1:~# tail /etc/pve/openvz/100.conf 
    FEATURES="nfs:on"
    root@proxmox1:~# vzctl restart 100
    


    Cek apakah mounting NFS sukses di VM.

    root@proxmox1:~# vzctl enter 100
    [root@server1 /]# /etc/init.d/portmap status
    portmap (pid 606) is running...
    [root@server1 /]# /etc/init.d/nfslock status
    rpc.statd is stopped
    [root@server1 /]# /etc/init.d/nfs status    
    rpc.mountd is stopped
    nfsd is stopped
    rpc.rquotad is stopped
    [root@server1 ~]# cat /etc/fstab 
    none	/dev/pts	devpts	rw,gid=5,mode=620	0	0
    192.168.1.100:/data     /nfs     nfs     rsize=1024,wsize=1024,nolock  0  0
    [root@server1 ~]# mount /nfs
    [root@server1 ~]# mount
    /dev/simfs on / type simfs (rw,relatime)
    proc on /proc type proc (rw,relatime)
    sysfs on /sys type sysfs (rw,relatime)
    none on /dev type tmpfs (rw,relatime,mode=755)
    none on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
    192.168.1.100:/data on /nfs type nfs (rw,relatime,vers=3,rsize=1024,wsize=1024,namlen=255,hard,nolock,proto=tcp,port=65535,timeo=600,retrans=2,sec=sys, mountproto=,local_lock=all,addr=192.168.1.100)
    


Instalasi paket dengan yum

  1. Perl
    Untuk instalasi zimbra diperlukan paket perl yang lengkap.

    yum -y install perl-DBI 
    yum -y install perl-libwww-perl 
    yum -y install perl-Digest-HMAC 
    yum -y install perl-Net-SSLeay 
    yum -y install perl-IO-Socket-SSL 
    yum -y install perl-Socket6 
    yum -y install perl-Archive-Tar 
    yum -y install mod_perl 
    yum -y install newt-perl 
    yum -y install perl-BSD-Resource 
    yum -y install perl-DBD-MySQL 
    yum -y install perl-IO-Socket-INET6 
    yum -y install perl-Net-DNS 
    yum -y install perl-Net-IP 
    yum -y install perl-String-CRC32 
    yum -y install perl-URI 
    yum -y install perl-HTML-Tagset 
    yum -y install perl-LDAP 
    yum -y install perl-XML-Parser 
    yum -y install perl-XML-Dumper 
    yum -y install perl-XML-NamespaceSupport 
    yum -y install perl-XML-Twig 
    yum -y install perl-XML-SAX 
    yum -y install perl-XML-Grove 
    yum -y install perl-DateManip 
    yum -y install perl-Compress-Zlib 
    yum -y install perl-HTML-Parser 
    yum -y install perl-Archive-Zip 
    yum -y install perl-TimeDate 
    yum -y install perl-Crypt-SSLeay 
    yum -y install perl-libxml-perl 
    yum -y install perl-DBD-Pg 
    yum -y install perl-Convert-ASN1 
    yum -y install perl-Mozilla-LDAP

     

  2. Software Development
    yum install autoconf 
    yum install gcc

     

  3. Samba 3.4.8
    Kita perlu install samba versi 3.4.8 agar user yang menggunakan OS Windows 7 dapat login domain. Berikut ini paket yang diperlukan untuk instalasi samba dari source.

    yum -y install rpm-build 
    yum -y install pam-devel 
    yum -y install readline-devel 
    yum -y install libacl-devel 
    yum -y install openldap-devel 
    yum -y install krb5-devel 
    yum -y install cups-devel 
    yum -y install keyutils-libs-devel

     

  4. Bind
    yum -y install bind-chroot

     

  5. Lain-lain
    yum -y install mc 
    yum -y install iptraf 
    yum -y install dos2unix
    yum -y zip
    yum -y mutt
    yum -y logwatch
    yum -y gettext
    yum -y iperf
    yum -y openssl-devel

     


Instalasi DNS dengan BIND

  1. Topologi
    • Domain : domain.org
    • Hostname : server.domain.org
    • MX : mail.domain.org
    • DNS forwarders: 202.1.2.3 202.1.2.4
  2. Konfigurasi DNS
    Untuk konfigurasi DNS silahkan ikuti panduan Konfigurasi DNS dengan Bind


Instalasi Zimbra ZCS-6.0.16

  1. Edit file /etc/hosts
    [root@server ~]# cat /etc/hosts 
    #::1 localhost.localdomain localhost 
    #::1 localhost 
    127.0.0.1 localhost.localdomain localhost 
    # Auto-generated hostname. Please do not remove this comment. 
    172.16.51.11  server.domain.org  server
    ::1           localhost6.localdomain6 localhost6 
    
    [root@server ~]# chattr +i /etc/hosts
    

    File /etc/hosts perlu diset immune agar tidak berubah setiap kali reboot (secara default file ini akan disesuaikan oleh server proxmox setiap kali mesin VM reboot).

  2. Instalasi ZCS-6.0.16
    Untuk langkah ini bisa baca panduan:
    Instalasi Zimbra+Samba PDC Untuk Menggantikan Windows Active Directory+MS Exchange Server.



Last update: 2014-01-28 21:00 +07:00

Written by awarmanf

January 28, 2014 at 1:51 pm

Posted in centos, Linux, proxmox, zimbra

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: