- Check:
egrep -c '(vmx|svm)' /proc/cpuinfo - Check:
sudo kvm-ok - Install:
sudo apt update
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager cloud-image-utils
- Add yourself to the
libvirtandkvmgroups:
| disabled_plugins = [] | |
| imports = [] | |
| oom_score = 0 | |
| plugin_dir = "" | |
| required_plugins = [] | |
| root = "/var/lib/containerd" | |
| state = "/run/containerd" | |
| temp = "" | |
| version = 2 |
egrep -c '(vmx|svm)' /proc/cpuinfosudo kvm-oksudo apt update
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager cloud-image-utils
libvirt and kvm groups:
| #!/bin/bash | |
| # Script untuk deploy kubernetes units ke multiple servers | |
| # Mengambil daftar unit dari nama file YAML di direktori /root/listunit | |
| # Format file unit: IPADDRESS:KODEUNIT | |
| UNIT_FILE="./deploy/unit" | |
| YAML_DIR="./kubernetes" | |
| # SSH options untuk mencegah hang |
| disabled_plugins = [] | |
| imports = [] | |
| oom_score = 0 | |
| plugin_dir = "" | |
| required_plugins = [] | |
| root = "/var/lib/containerd" | |
| state = "/run/containerd" | |
| temp = "" | |
| version = 2 |
| #!/bin/bash | |
| # Meminta input dari pengguna untuk nilai a (target dalam USD) | |
| echo "Masukkan nilai target (dalam USD): " | |
| read a | |
| # Meminta input dari pengguna untuk nilai b (CPM) | |
| echo "Masukkan nilai CPM: " | |
| read b |
| // https://developers.google.com/search/docs/appearance/structured-data/recipe | |
| { | |
| "@context": "https://schema.org/", | |
| "@type": "Recipe", | |
| "name": "{{ .Title }}", | |
| "image": [ | |
| "{{ .Params.thumbnail }}" | |
| ], | |
| "author": { |
| #!/bin/bash | |
| # Tanggal target (ganti dengan tanggal yang diinginkan) | |
| target_date="2024-12-31" | |
| # Hitung mundur sisa hari | |
| current_date=$(date +%Y-%m-%d) | |
| days_left=$(echo $(( ($(date -d "$target_date" +%s) - $(date -d "$current_date" +%s)) / 86400 ))) | |
| # Tampilkan pesan MOTD |
| # put this function in your .bashrc or .zshrc and call shf for easy host selection | |
| # requirements: | |
| # - grep | |
| # - fzf | |
| ssf() { | |
| host=$(grep -e "^Host " ~/.ssh/config | awk '{print $2}' | fzf) | |
| echo "SSH session started, connecting to" $host | |
| ssh $host | |
| } |