Skip to content

Instantly share code, notes, and snippets.

How to update IP addressing on a Proxmox Cluster

When you change something in your network configuration, rather than its the gateway or the IP addressing, you may come under serious troubleshooting on your Proxmox Cluster, so this document will guide you into the necessary steps needed to update your network settings on Proxmox.

Note : You must follow these steps on every single node of your cluster to let it able to handle the synchronization between each node once.

So firstly, you will need to change the network interface configuration of the system; it is preferable for you to set a static IP:

/etc/network/interfaces
@ichisadashioko
ichisadashioko / qemu_usb.txt
Created April 22, 2021 12:29
QEMU USB passthrough user guide
USB Quick Start
===============
XHCI controller support
-----------------------
QEMU has XHCI host adapter support. The XHCI hardware design is much
more virtualization-friendly when compared to EHCI and UHCI, thus XHCI
emulation uses less resources (especially cpu). So if your guest
@judaew
judaew / keychron_k2.adoc
Last active May 4, 2024 11:15
Keychron K2 Manual

Keychron K2 Manual

Connect Bluetooth

On the side of the keyboard, switch the toggle to Bluetooth. Press fn+1 3 seconds and pair with device named Keychron K2.

  • fn+1 connect to 1st device

  • fn+2 connect to 2nd device

  • fn+3 connect to 3rd device

@mallendeo
mallendeo / syslinux.conf
Last active September 20, 2023 21:10
Unraid boot config
kernel /bzimage
append
isolcpus=2-7,10-15
pcie_acs_override=downstream,multifunction
pci-stub.ids=14e4:43a0
vfio-pci.ids=8086:a348,10de:10f8,10de:1ad8,1b73:1100,8086:24f3,14e4:43a0
pci=noaer
modprobe.blacklist=amdgpu,wl,bluetooth,b43
kvm.ignore_msrs=1
vfio_iommu_type1.allow_unsafe_interrupts=1
@ngoldenberg
ngoldenberg / drop_multiple_tables.sql
Created July 11, 2019 16:14
Delete/Drop multiple tables based on multiple prefixes - PostgreSQL
-- Inspect the generated statements before you actually execute: comment RAISE and uncomment the EXECUTE
DO
$do$
DECLARE
_tbl text;
BEGIN
FOR _tbl IN
SELECT c.oid::regclass::text -- escape identifier and schema-qualify!
FROM pg_catalog.pg_class c
JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
@valferon
valferon / postgres_manager.py
Created March 29, 2018 02:35
Python script to take care of postgres backup and restore of data
#!/usr/bin/python3
import argparse
import logging
import subprocess
import os
import tempfile
from tempfile import mkstemp
import configparser
import gzip
@ruxi
ruxi / xgboost_gpu_build.txt
Last active December 5, 2020 08:08
how to build xgboost with gpu support
# install latest nvidia driver
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
# then go to device manager and dl newest driver
# nvidia-390 for linux >4.13.32 | there is a bug with <nvidia-390 & >linux 4.13.25
import numpy as np
from keras import backend as K
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from keras.preprocessing.image import ImageDataGenerator
from sklearn.metrics import classification_report, confusion_matrix
#Start
train_data_path = 'F://data//Train'
@AtulKsol
AtulKsol / psql-error-fix.md
Last active April 10, 2024 07:41
Solution of psql: FATAL: Peer authentication failed for user “postgres” (or any user)

psql: FATAL: Peer authentication failed for user “postgres” (or any user)

The connection failed because by default psql connects over UNIX sockets using peer authentication, that requires the current UNIX user to have the same user name as psql. So you will have to create the UNIX user postgres and then login as postgres or use sudo -u postgres psql database-name for accessing the database (and psql should not ask for a password).

If you cannot or do not want to create the UNIX user, like if you just want to connect to your database for ad hoc queries, forcing a socket connection using psql --host=localhost --dbname=database-name --username=postgres (as pointed out by @meyerson answer) will solve your immediate problem.

But if you intend to force password authentication over Unix sockets instead of the peer method, try changing the following pg_hba.conf* line:

from