• Tidak ada hasil yang ditemukan

BAB V PENUTUP

5.2 Saran

1. Xen biasanya merupakan pilihan pertama bagi penyedia layanan website yang memerlukan lebih banyak memori. Hal ini terutama penting bagi pengguna yang berencana untuk melakukan banyak tugas

one-off yang membutuhkan memori tambahan, seperti video encoding, kompilasi atau pengembangan aplikasi Java.

2. Pada PT. Smart Intermedia Solusindo sebagai perusahaan penyedia jasa layanan hosting, virtualisasi menjadi solusi untuk mengatasi kendala tingginya biaya pengadaan server.

3. Pada saat ini implementasi virtualisasi baru efektif untuk lingkungan server saja. Selain itu, mengingat kebutuhan kinerjanya, dibutuhkan spesifikasi hardware yang dilengkapi dengan standar peralatan yang tinggi, seperti jumlah RAM yang banyak, prosesor dengan teknologi virtualization seperti Intel-VT dan AMD-V. Penelitian ini menunjukkan bahwa dengan kebutuhan yang rendah, komputer dengan spesifikasi rendah pun bisa menjadi host untuk virtualization. Hal ini bisa menjadi daya tarik bagi dunia UKM (Usaha Kecil dan Menengah) di Indonesia, di mana UKM biasanya tidak mudah tertarik dengan pemanfaatan TI. Dengan virtualisasi, berbagai UKM bisa berbagi sumber daya layanan melalui jasa pihak ketiga, memanfaatkan layanan sesuai dengan kebutuhan mereka, dan membayar layanan sesuai dengan pemakaian mereka, dengan biaya yang lebih murah dibandingkan dengan harus membayar biaya pemakaian sumber daya komputasi satu server utuh.

DAFTAR PUSTAKA

Ashari, Ahmad, dkk. 2010. Linux Sistem Administrasi. Bandung: Informatika.

Sutanta, Edhy. 2005. Komunikasi Data&Jaringan Komputer. Yogyakarta: Graha Ilmu.

Suarna Nana, ST. 2007. Panduan Lengkap Cara Menggunakan Internet. Bandung: Yrama Widya.

W.Purbo, Onno. 2008. Panduan Mudah Merakit+Menginstal Server Linux. Yogyakarta: Andi.

W.Purbo, Onno. 2000. Buku Pintar Internet Membangun Web E-Commerce. Jakarta: Elex Media Komputindo.

Williams dan Sawyer. 2007. Using Information Technologi, Pengenalan Praktis Dunia Komputer dan Komunikasi. Edisi 7, Terjemahan Nur Wijayaning Rahayu& Th. Arief Prabawati. Yogyakarta: Andi.

Yuhefizar. 2008. 10 Jam Menguasai Internet : Teknologi dan Aplikasinya. Jakarta: Elex Media Komputindo.

E.Goldman, James. 2005. Applied Data Communications, A business-Oriented Approach. Wilay.

Mansfield. N. 2004. Practical TCP/IP. Yogyakarta: Andi.

Zhang. W. 1999. Linux Virtual Server for Scalable Network Service.

P. O'Rourke and M. Keefe. 2001. Performance Evaluation of Linux Virtual Server. Pratt, Ian. 2006. Xen and the Art of Virtualization.

Takemura, Chris and Crawford. 2009. The Book of XEN. San Fransisco: No Starch Press.

Matthews and Jeanna N. 2008. Running Xen. U.S. Prentice Hall

Chisnall, David. 2008. The Definitive Guide to the Xen Hypervisor. San Fransisco: Prentice Hall http://searchservervirtualization.techtarget.com/tip/Paravirtualization-explained Virtualization [12 Juli 2011] [22 Juli 2011] [25 Juli 2011]

LAMPIRAN 2

Responden : Roni Rosadi Tanggal : 15 Februari 2011 WAWANCARA

Penanya : Ari Kristiyanto Subjek : Informasi

Tujuan wawancara : Untuk mengetahui informasi tentang kebutuhan Costumer akan spesifikasi kebutuhan untuk menjalankan webnya.

Point Wawancara :

1. Apakah ada kendala yang dihadapi dalam penggunaan server selama ini? Hasil Wawancara :

Ada, salah satu kendalanya kurangnya fleksibilitas dalam menyesuaikannya sesuai dengan kebutuhan costumer.

Point Wawancara :

2. Seperti apa kendala dalam menyesuaikan kebutuhan costumer? Hasil Wawancara :

Yakni apabila aplikasi yang dijalankan membutuhkan spesifikasi yang berbeda satu dengan yang lain.

Point Wawancara :

3. Apa spesifikasi minimal pada sebuah server? Hasil Wawancara :

Responden : Awaludin Tanggal : 15 Februari 2011 Penanya : Ari Kristiyanto Subjek : Informasi

Tujuan wawancara : Untuk mengetahui informasi tentang kebutuhan Costumer akan spesifikasi kebutuhan untuk menjalankan webnya.

Point Wawancara :

1. Berapakah biasanya jumlah akun web yang dimasukkan kedalam satu server? Hasil Wawancara :

Dapat menampung 800 website. Point Wawancara :

2. Berapakah konsumsi listrik yang dibutuhkan pada sebuah server? Hasil Wawancara :

Membutuhkan daya sebesar 500 Watt. Point Wawancara :

3. Berapa biaya pengadaan satu buah server? Hasil Wawancara :

Sesuai dengan spesifikasi intel xeon dual core, memory 2GB, hardisk 250 GB, biaya yang dibutuhkan sekitar 10 juta rupiah.

LAMPIRAN 3

Installasi Xen Pada Linux Centos 1. Langkah awal

Saya menggunakan partisi berikut pada sistem host saya 5,2 CentOS (dom0): / Boot 150 MB (ext3)

Swap 1GB / 3GB (ext3) / Vm sisanya (ext3)

Pastikan bahwa SELinux dinonaktifkan atau permisif:

vi /etc/sysconfig/selinux

# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values:

# enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of

enforcing.

# disabled - SELinux is fully disabled. SELINUX=disabled

# SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are

protected.

# strict - Full SELinux protection. SELINUXTYPE=targeted

Jika kita harus memodifikasi / etc / sysconfig / selinux, silahkan reboot sistem: reboot

2. Instalasi Xen

Untuk menginstal Xen, kita cukup menjalankan yum install kernel-xen xen

Saya membuka / boot / grub / menu.lst: vi / boot / grub / menu.lst

Kernel terdaftar pertama harus kernel Xen yang baru saja diinstal:

[...]

title CentOS (2.6.18-92.1.13.el5xen) root (hd0,0) kernel /xen.gz-2.6.18-92.1.13.el5 module /vmlinuz-2.6.18-92.1.13.el5xen ro root=/dev/VolGroup00/LogVol00 module /initrd-2.6.18-92.1.13.el5xen.img [...]

Ubah nilai default ke 0 (sehingga kernel pertama (kernel Xen) akan boot secara default):

[...] default=0 [...]

Selengkapnya /boot/grub/menu.lst harus terlihat seperti ini:

# grub.conf generated by anaconda #

# Note that you do not have to rerun grub after making changes to this file

# NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to

/boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img # boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu

title CentOS (2.6.18-92.1.13.el5xen) root (hd0,0)

kernel /xen.gz-2.6.18-92.1.13.el5

module /vmlinuz-2.6.18-92.1.13.el5xen ro root=/dev/VolGroup00/LogVol00

module /initrd-2.6.18-92.1.13.el5xen.img title CentOS (2.6.18-92.1.1.el5)

root (hd0,0)

kernel /vmlinuz-2.6.18-92.1.1.el5 ro root=/dev/VolGroup00/LogVol00

initrd /initrd-2.6.18-92.1.1.el5.img title CentOS (2.6.18-92.el5)

root (hd0,0)

kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00

initrd /initrd-2.6.18-92.el5.img

Setelah itu, kita reboot sistem: reboot

Sistem sekarang harus secara otomatis boot kernel Xen yang baru. Setelah sistem telah boot, kita dapat memeriksa bahwa dengan menjalankan

uname –r

[root@server1 ~]# uname -r 2.6.18-92.1.13.el5xen [root@server1 ~]#

Kita sekarang dapat menjalankan xm list

untuk memeriksa apakah Xen telah dimulai. Kita harus daftar Domain-0 (dom0):

[root@server1 ~]# xm list

Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 964 1 r--- 134.1

[root@server1 ~]#

PV-Grub

[root@ServerCentOS52 vm]# cat rhel52.pv-grub name = “rhel-pvgrub” memory = 2048 vcpus = 1 disk = [ 'phy:/dev/sda10,xvda,w!' ] vif = [ "bridge=eth0" ] kernel = “/usr/lib/xen/boot/pv-grub-x86_64.gz” extra = “(hd0,0)/grub/menu.lst” ************************************ Start PV DomU with command

************************************

[root@ServerCentOS52 vm]# xm create -c rhel52.pv-grub

Kernel 2.6.18-92.el5xen on an x86_64

rhel52pvm login: root Password:

Last login: Sun Oct 5 16:26:58 on xvc0 [root@rhel52pvm ~]# uname -a

Linux rhel52pvm 2.6.18-92.el5xen #1 SMP Tue Jun 10 19:20:18 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

[root@rhel52pvm ~]# df -h

Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00

13G 3.6G 8.7G 30% /

/dev/xvda1 99M 14M 81M 14% /boot tmpfs 1.0G 0 1.0G 0% /dev/shm

**************************** File /boot/grub/menu.lst ****************************

[root@rhel52pvm ~]# cat /boot/grub/menu.lst # grub.conf generated by anaconda

#boot=/dev/xvda default=0

timeout=15

splashimage=(hd0,0)/grub/splash.xpm.gz # hiddenmenu

title CentOS (2.6.18-92.el5xen) root (hd0,0)

kernel /vmlinuz-2.6.18-92.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-92.el5xen.img

************************************* Setup vncserver to run at DomU:- ************************************* # mkdir .vnc

# cd .vnc # vncserver :1

Vnc password will be requested by the last command. Edit ~/.vnc/xstartup and uncomment first two lines. Make this file as follows bellow:

#!/bin/sh

unset SESSION_MANAGER

exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey

vncconfig -iconic &

xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” & twm &

Make following changes to /etc/sysconfig/vncservers file:- VNCSERVERS=”1:root” VNCSERVERARGS[1]=”-geometry 1024×768″ Then run:- # chkconfig vncserver on # reboot **************************************************** “xm list -l rhel-pvgrub” report follows bellow:- **************************************************** [root@ServerCentOS52 ~]# xm list -l rhel-pvgrub (domain (domid 39) (on_crash restart) (uuid 7b1bd3ec-cb48-209e-7332-fac938b5d47e) (bootloader_args ) (vcpus 1) (name rhel-pvgrub) (on_poweroff destroy) (on_reboot restart) (bootloader ) (maxmem 2048) (memory 2048) (shadow_memory 0) (features ) (on_xend_start ignore)

(on_xend_stop ignore) (start_time 1223242728.57) (cpu_time 22.126731432) (online_vcpus 1) (image (linux (kernel /usr/lib/xen/boot/pv-grub-x86_64.gz) (args ‘(hd0,0)/grub/menu.lst’) (notes) ) ) (status 2) (state -b—-) (store_mfn 2239405) (console_mfn 2239404) (device (vif (bridge eth0) (mac 00:16:3e:3c:e4:55) (script vif-bridge) (uuid 02994996-60ef-44fa-3913-ee5f7bf02c3a) (backend 0) ) ) (device (vbd (protocol x86_64-abi) (uuid 00a0c8e2-561a-9eb3-9c0a-3511bbd1ef88) (dev xvda:disk) (uname phy:/dev/sda10) (mode ‘w!’) (backend 0) (bootable 1) (VDI ) ) ) (device (console (protocol vt100) (location 2) (uuid 1e8291b4-07a2-67e5-b124-0fd4084849b2) ) ) ) Instalasi menggunakan SSH $ ssh 10.17.37.243

Last login: Thu Sep 11 12:57:31 2008 from 10.0.80.84 [root@ns0 ~]# cd /mnt

[root@ns0 mnt]# ls

[root@ns0 mnt]# mkdir xs-tools

[root@ns0 mnt]# mount /dev/xvdd /mnt/xs-tools/

mount: block device /dev/xvdd is write-protected, mounting read-only

[root@ns0 mnt]# cd /mnt/xs-tools/Linux/ [root@ns0 Linux]# bash install.sh

Detected `CentOS release 5.2 (Final)' (centos version 5). The following changes will be made to this Virtual Machine:

* packages to be installed/upgraded: - kernel-xen-2.6.18-53.1.13.el5.xs4.1.0.24.x86_64.rpm - xe-guest-utilities-4.1.0-257.x86_64.rpm Continue? [y/n] y Preparing...########################################### [100%] 1:xe-guest-utilities########################################### [100%] Preparing...########################################### [100%] package 2.6.18-92.el5 (which is newer than kernel-xen-2.6.18-53.1.13.el5.xs4.1.0.24) is already installed

You should now reboot this Virtual Machine. [root@ns0 Linux]#

mkdir /mnt/xs-tools

mount /dev/xvdd /mnt/xs-tools cd /mnt/xs-tools/Linux/ bash install.sh Virt-install cat /etc/xen/vm01 name = "vm01" uuid = "6c835c75-41da-b13f-ec1b-946c4079ec17" maxmem = 256 memory = 256 vcpus = 1 bootloader = "/usr/bin/pygrub" on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" vfb = [ ] disk = [ "tap:aio:/vm/vm01.img,xvda,w" ] vif = [ "mac=00:16:3e:7a:27:02,bridge=xenbr0" ] Jalankan xm console vm01

untuk login pada mesin virtual lagi (tipe CTRL +] jika kita berada di konsol, atau CTRL +5 jika kita menggunakan Putty untuk kembali ke dom0), atau menggunakan klien SSH untuk menyambungkan.

Untuk mendapatkan daftar tipe yang berjalan di mesin virtual xm list

Output akan terlihat seperti ini:

[root@server1 ~]# xm list

Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 771 1 r--- 283.5

vm01 1 255 1 -b---- 237.6 [root@server1 ~]#

Untuk menutup vm01, lakukan ini: xm shutdown vm01

Untuk memulai vm01 lagi, jalankan xm create /etc/xen/vm01

Jika ingin vm01 untuk memulai secara otomatis pada boot berikutnya dari sistem, kemudian melakukan ini:

ln -s /etc/xen/vm01 /etc/xen/auto

Output info xm

xm info

host : localhost.localdomain release : 2.6.18-53.el5xen

version : #1 SMP Wed Oct 10 17:06:12 EDT 2007

machine : i686 nr_cpus : 1 nr_nodes : 1 sockets_per_node : 1 cores_per_socket : 1 threads_per_core : 1 cpu_mhz : 2993 hw_caps : 0febfbff:20100000:00000000:00000180:0000a015:00000000:00000001 total_memory : 255 free_memory : 14 xen_major : 3 xen_minor : 1 xen_extra : .0-53.el5

xen_caps : xen-3.0-x86_32p xen_pagesize : 4096

platform_params : virt_start=0xf5800000 xen_changeset : unavailable

cc_compiler : gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)

cc_compile_by : brewbuilder cc_compile_domain : build.redhat.com

cc_compile_date : Wed Oct 10 16:30:55 EDT 2007 xend_config_format : 2

XenMon

ms_per_sample = 100 Initialized with 1 cpu CPU Frequency = 2993.98 Event counts: 00000000 Other 00000000 Add Domain 00000000 Remove Domain 00000000 Sleep 00022838 Wake 00022838 Block 00045666 Switch 00000000 Timer Func 00045666 Switch Prev 00045666 Switch Next 00000000 Page Map 00000000 Page Unmap 00000000 Page Transfer

processed 182674 total records in 288 seconds (634 per second) woke up 288 times in 288 seconds (1 per second)

xenmon.py:

xenmon.py --help

usage: xenmon.py [options] options:

-h, --help show this help message and exit -l, --live show the ncurses live monitoring frontend (default)

-n, --notlive write to file instead of live monitoring

-p PREFIX, --prefix=PREFIX

prefix to use for output files -t DURATION, --time=DURATION

stop logging to file after this much time has elapsed

(in seconds). set to 0 to keep logging indefinitely

-i INTERVAL, --interval=INTERVAL

interval for logging (in ms) --ms_per_sample=MSPERSAMPLE

determines how many ms worth of data goes in a sample

--cpu=CPU specifies which cpu to display data for

--allocated Display allocated time for each domain --noallocated Don't display allocated time for each domain

--blocked Display blocked time for each domain --noblocked Don't display blocked time for each domain

--waited Display waiting time for each domain --nowaited Don't display waiting time for each domain

--excount Display execution count for each domain

--noexcount Don't display execution count for each domain

--iocount Display I/O count for each domain --noiocount Don't display I/O count for each domain

XenTop

xentop --help

Usage: xentop [OPTION]

Displays ongoing information about xen vm resources -h, --help display this help and exit

-V, --version output version information and exit -d, --delay=SECONDS seconds between updates (default 3) -n, --networks output vif network data

-x, --vbds output vbd block device data

-r, --repeat-header repeat table header before each domain -v, --vcpus output vcpu data

-b, --batch output in batch mode, no user input accepted

Dokumen terkait