Skip to content

Instantly share code, notes, and snippets.

scp file2 vm dari vsphere ke proxmox

scp -r root@ip_vpshere:/vmfs/volumes/datastore1/ubuntu_18.04_template /root/vmdk

Buat VM kosongan, jangan lupa ID number-nya (misalkan 100), dilanjut convert file vm-flat.vmdk menjadi vm.qcow2

qemu-img convert /root/vmdk/ubuntu_18.04_template/ubuntu_18.04_template-flat.vmdk -O qcow2 /var/lib/vz/images/100/ubuntu_18.04_template-flat.qcow2

Managing firewalld

firewall-cmd --state     # Display whether service is running
firewall-cmd --reload    # To reload the permanent rules without interrupting existing persistent connections

list details of default and active zones

firewall-cmd --get-default-zone

From ESXI shell

[root@esxi-tesla:~] esxcli vm process list
vCenterServerAppliance
   World ID: 2102009
   Process ID: 0
   VMX Cartel ID: 2102008
   UUID: 56 4d 17 0d 3a d2 cc a1-5a 19 c9 a2 8f f4 07 54
   Display Name: vCenterServerAppliance

Set the GPU Device to vGPU Mode Using the vSphere Host Graphics Setting

A GPU card can be configured in one of two modes: vSGA (shared virtual graphics) and vGPU. The NVIDIA card should be configured with vGPU mode. This is specifically for use of the GPU in compute workloads, such as in machine learning or high performance computing applications. To enable vGPU mode on the ESXi host, use the command line to execute this command:

esxcli graphics host set --default-type SharedPassthru

Check the Host Graphics Settings

Pre-flight :))

yum install -y neovim python3-neovim

$ cat ~/.zshrc | grep vim
alias vi="nvim"
alias nano="nvim"

Monitoring and Health

Status summary

# ceph -s
  cluster:
    id:     17055c93-db33-4af8-8dbf-6b64928220df
    health: HEALTH_OK

  services:

3 OSD masing-masing 25 GB

ceph osd pool create cephfs_data 32
ceph osd pool create cephfs_meta 32
ceph fs new mycephfs cephfs_meta cephfs_data

Mount dari ceph-client

Tambahkan file nganu.zsh-themes di dalam ~/.oh-my-zsh/themes

# Copy and self modified from ys.zsh-theme, the one of default themes in master repository
# Clean, simple, compatible and meaningful.
# Tested on Linux, Unix and Windows under ANSI colors.
# It is recommended to use with a dark background and the font Inconsolata.
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white.
# http://xiaofan.at
# 2 Jul 2015 - Xiaofan

Topology

nginx access.log >> filebeat >> logstash >> elasticsearch

Agent

file /etc/filebeat/filebeat.yml

List Index / Indices

curl -X GET 'http://localhost:9200/_cat/indices?v'

Delete Index

curl -X DELETE 'http://localhost:9200/nama_index'