Instalasi Server Mail Zimbra dengan CentOS 5.9 (VM) di Proxmox v2.3
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
- Login sebagai root di Proxmox Virtual Enviroment.
- Klik tombol Create CT.
- Buat Virtual Machine (VM) dengan OpenVZ Container seperti contoh pada gambar di bawah.
- Klik tombol Finish.
Konfigurasi Virtual Machine OpenVZ
- 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
- Sistem Date
Login ke VM lalu buat simbolic link /etc/localtime ke /usr/share/zoneinfo/Asia/Jakartaroot@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
- 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
- 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
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
- 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
- Software Development
yum install autoconf yum install gcc
- 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
- Bind
yum -y install bind-chroot
- 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
- Topologi
- Domain : domain.org
- Hostname : server.domain.org
- MX : mail.domain.org
- DNS forwarders: 202.1.2.3 202.1.2.4
- Konfigurasi DNS
Untuk konfigurasi DNS silahkan ikuti panduan Konfigurasi DNS dengan Bind
Instalasi Zimbra ZCS-6.0.16
- 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
- Instalasi ZCS-6.0.16
Untuk langkah ini bisa baca panduan:
Instalasi Zimbra+Samba PDC Untuk Menggantikan Windows Active Directory+MS Exchange Server.