Jumat, 17 Mei 2019

Cara Enable Akses SSH dan Generate Support Bundle di Server vCenter



Setelah berhasil melakukan reset password root server vcenter yang sudah saya tulis disini saat ini saya akan sedikit share bagaimana cara nya untuk enable akses remote via ssh di server vcenter dan juga melakukan generate support bundle untuk kebutuhan troubleshoot ke support vmware nya

Pertama kali kita harus login ke VAMI (vCenter Server Appliance Management Interface) dari server vcenter nya, akses nya dari web browser :

https://192.168.0.100:5480/



Setelah itu untuk generate support bundle yang digunakan untuk troubleshoot bagi support vmware nya, setelah masuk dan login ke VAMI, maka kita bisa melihat dari gambar diatas ada menu di atas kanan, menunya adalah "Create Support Bundle" 

Tinggal klik aja menu "Create Support Bundle" maka otomatis akan mendownload file support bundle nya, nama filenya adalah : vm-support.tgz

Ukuran file nya cukup besar, dan ini akan di download ke lokal PC/Laptop kita kemudian bisa kita upload ke web support vmware nya jika memang di minta

Sekarang kita akan enable akses remove via ssh ke server vcenter ini, cara nya dari menu sebelah kiri ada menu "Access" klik saja, dan kemudian klik menu "Edit" yang ada di kanan atas.

                  

Setelah itu pastikan saja Enable ssh login dan Enable bash shell nya aktif dengan di contreng di menu nya, dan kemudian di OK saja, jangan lupa tentukan juga timeout bash nya mau berapa lama, timeout ini fungsinya untuk menentukan mau berapa lama kita enable bash nya

Sekarang kita sudah bisa login ke ssh server vcenter dan masuk ke bash shell nya dengan mengetikan :


$ ssh root@192.168.0.100

VMware vCenter Server Appliance 6.5.0.20000

Type: vCenter Server with an embedded Platform Services Controller

root@192.168.0.100's password: 
Last login: Thu May 16 09:32:18 UTC 2019 from 192.168.0.11 on pts/0
Last login: Fri May 17 01:46:33 2019 from 192.168.0.11
Connected to service

    * List APIs: "help api list"
    * List Plugins: "help pi list"
    * Enable BASH access: "shell.set --enabled True"
    * Launch BASH: "shell"

Command> 

Kalau sudah muncul command prompt diatas, tinggal ketik saja perintah berikut :

Command> shell.set --enabled True
Command> shell


    ---------- !!!! WARNING WARNING WARNING !!!! ----------

Your use of "pi shell" has been logged!

The "pi shell" is intended for advanced troubleshooting operations and while
supported in this release, is a deprecated interface, and may be removed in a
future version of the product.  For alternative commands, exit the "pi shell"
and run the "help" command.

The "pi shell" command launches a root bash shell.  Commands within the shell
are not audited, and improper use of this command can severely harm the
system.

Help us improve the product!  If your scenario requires "pi shell," please
submit a Service Request, or post your scenario to the
https://communities.vmware.com/community/vmtn/vcenter/vc forum and add
"appliance" tag.

localhost:~ # 


Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017


Tidak ada komentar: