{"id":952,"date":"2018-07-05T10:45:10","date_gmt":"2018-07-05T03:45:10","guid":{"rendered":"https:\/\/www.whplus.com\/blog\/?p=952"},"modified":"2020-07-23T15:22:58","modified_gmt":"2020-07-23T08:22:58","slug":"instalasi-centos-7-secara-remote-via-vnc","status":"publish","type":"post","link":"https:\/\/www.whplus.com\/blog\/2018\/07\/05\/instalasi-centos-7-secara-remote-via-vnc.html","title":{"rendered":"Instalasi Centos 7 secara remote via VNC"},"content":{"rendered":"<p>Instalasi Centos 7 secara remote via VNC pada prinsipnya sama dengan instalasi Centos 6, hanya saja karena Centos 7 menggunakan versi grub yang berbeda maka ada perbedaan ssetting sbb:<\/p>\n<table>\n<thead>\n<tr>\n<th>CentOS 6<\/th>\n<th>CentOS 7<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>vnc<\/td>\n<td>inst.vnc<\/td>\n<\/tr>\n<tr>\n<td>vncpassword=<\/td>\n<td>inst.vncpassword=<br \/>\n<strong>Note:<\/strong>\u00a0minimal 8 karakter<\/td>\n<\/tr>\n<tr>\n<td>headless<\/td>\n<td>inst.headless<\/td>\n<\/tr>\n<tr>\n<td>ip=<\/td>\n<td><em>ip=ip::gateway:netmask:hostname:interface:none<\/em><br \/>\n<strong>Contoh:<\/strong><br \/>\n<code>ip=10.0.0.10::10.0.0.1:255.255.255.0:host.example.com:eth0:none<\/code>\u00a0or\u00a0<code>ip=dhcp<\/code><\/td>\n<\/tr>\n<tr>\n<td>gateway=<\/td>\n<td>Lihat IP di atas<\/td>\n<\/tr>\n<tr>\n<td>netmask=<\/td>\n<td>Lihat IP di atas<\/td>\n<\/tr>\n<tr>\n<td>dns=<\/td>\n<td>nameserver=<\/td>\n<\/tr>\n<tr>\n<td>method=<\/td>\n<td>inst.repo=<\/td>\n<\/tr>\n<tr>\n<td>lang=<\/td>\n<td>inst.lang=<\/td>\n<\/tr>\n<tr>\n<td>keymap=<\/td>\n<td>inst.keymap=<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Pastikan anda sudah mencatat\u00a0IP Address, Gateway, Netmask, dan nama interface (eth0, eth1, venet0, dsb) dengan benar.<\/p>\n<p>Langkah 1:\u00a0 Copy file bootstrap (Linux kernel image dan ramdisk image) ke partisi \/ boot Anda:<\/p>\n<pre><code>cd \/boot\r\nwget http:\/\/mirror.centos.org\/centos\/7\/os\/x86_64\/isolinux\/vmlinuz -O vmlinuz-7\r\nwget http:\/\/mirror.centos.org\/centos\/7\/os\/x86_64\/isolinux\/initrd.img -O initrd-7.img<\/code><\/pre>\n<p><!--more--><br \/>\nLangkah 2: Buat menu entry<\/p>\n<p>Paling aman anda copy isi dari file\u00a0\/boot\/grub2\/grub.cfg ke \/etc\/grub.d\/40_custom, misal isinya sbb:<\/p>\n<pre><code>menuentry 'CentOS Linux, with Linux 3.10.0-123.el7.x86_64' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-123.el7.x86_64-advanced-ac9e46e0-6de5-4e6f-baf2-cca39dffe49b' {\r\n    load_video\r\n    set gfxpayload=keep\r\n    insmod gzio\r\n    insmod part_msdos\r\n    insmod ext2\r\n    set root='hd0,msdos1'\r\n    if [ x$feature_platform_search_hint = xy ]; then\r\n      search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1'  ac9e46e0-6de5-4e6f-baf2-cca39dffe49b\r\n    else\r\n      search --no-floppy --fs-uuid --set=root ac9e46e0-6de5-4e6f-baf2-cca39dffe49b\r\n    fi\r\n    linux16 \/vmlinuz-3.10.0-123.el7.x86_64 root=UUID=ac9e46e0-6de5-4e6f-baf2-cca39dffe49b ro vconsole.keymap=us crashkernel=auto  vconsole.font=latarcyrheb-sun16 rhgb quiet LANG=en_US.UTF-8\r\n    initrd16 \/initramfs-3.10.0-123.el7.x86_64.img\r\n}<\/code><\/pre>\n<p>Edit menu entry title, linux16, initrd16, misal menjadi seperti di bawah ini<\/p>\n<pre><code>#!\/bin\/sh\r\nexec tail -n +3 $0\r\n# This file provides an easy way to add custom menu entries.  Simply type the\r\n# menu entries you want to add after this comment.  Be careful not to change\r\n# the 'exec tail' line above.\r\n\r\nmenuentry 'NetInstall' {\r\n    load_video\r\n    set gfxpayload=keep\r\n    insmod gzio\r\n    insmod part_msdos\r\n    insmod ext2\r\n    set root='hd0,msdos1'\r\n    if [ x$feature_platform_search_hint = xy ]; then\r\n      search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1'  ac9e46e0-6de5-4e6f-baf2-cca39dffe49b\r\n    else\r\n      search --no-floppy --fs-uuid --set=root ac9e46e0-6de5-4e6f-baf2-cca39dffe49b\r\n    fi\r\n    linux16 \/vmlinuz-7 inst.vnc inst.vncpassword=12345678 inst.headless ip=ip::gateway:netmask::interface:none nameserver=8.8.8.8 inst.repo=http:\/\/mirror.centos.org\/centos\/7\/os\/x86_64\/ inst.lang=en_US inst.keymap=us\r\n    initrd16 \/initrd-7.img\r\n}<\/code><\/pre>\n<p><strong>Note:<\/strong> Ganti ip=ip::gateway:netmask::interface:none sesuai parameter network server anda. sesuaikan bila menggunakan UEFI based.<\/p>\n<p>Langkah 3: Konfigurasi Grub<\/p>\n<p>Pastikan Grub menggunakan custom menu entry sekali. Edit\u00a0<code>\/etc\/default\/grub<\/code>, ubah\u00a0<code>GRUB_DEFAULT=0<\/code>\u00a0menjadi\u00a0<code>GRUB_DEFAULT=saved<\/code><\/p>\n<p>Simpan konfigurasinya, rebuild grub<\/p>\n<pre><code>grub2-mkconfig -o \/boot\/grub2\/grub.cfg<\/code><\/pre>\n<p>Cek list dari custom menu entry<\/p>\n<pre><code>awk -F\\' '$1==\"menuentry \" {print $2}' \/etc\/grub2.cfg<\/code><\/pre>\n<p>pastikan isi menu entry sudah benar, terutama parameter network<\/p>\n<pre><code>grub2-editenv list<\/code><\/pre>\n<p>Reboot menggunakan custom menu entry<\/p>\n<pre><code>grub2-reboot NetInstall<\/code><\/pre>\n<p>Pastikan koneksi internet anda stabil, jika putus ditengah jalan maka anda harus kontak DC untuk meminta install ulang atau install dari client area bila disediakan oleh provider anda.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Instalasi Centos 7 secara remote via VNC pada prinsipnya sama dengan instalasi Centos 6, hanya saja karena Centos 7 menggunakan versi grub yang berbeda maka ada perbedaan ssetting sbb: CentOS 6 CentOS 7 vnc inst.vnc vncpassword= inst.vncpassword= Note:\u00a0minimal 8 karakter headless inst.headless ip= ip=ip::gateway:netmask:hostname:interface:none Contoh: ip=10.0.0.10::10.0.0.1:255.255.255.0:host.example.com:eth0:none\u00a0or\u00a0ip=dhcp gateway= Lihat IP di atas netmask= Lihat IP di\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.whplus.com\/blog\/2018\/07\/05\/instalasi-centos-7-secara-remote-via-vnc.html\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-952","post","type-post","status-publish","format-standard","hentry","category-tutorial"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/comments?post=952"}],"version-history":[{"count":6,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/952\/revisions"}],"predecessor-version":[{"id":1257,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/952\/revisions\/1257"}],"wp:attachment":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/media?parent=952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/categories?post=952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/tags?post=952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}