Posts

Showing posts from August, 2024

Chrony - Proxmox

### Configuring Chrony on Proxmox: A Step-by-Step Guide In the latest versions of Proxmox, Chrony is included by default, which provides an efficient and accurate network time protocol (NTP) service. This guide will walk you through the process of configuring Chrony on your Proxmox server to ensure proper time synchronization. #### Step 1: Edit the Chrony Configuration File To begin, you'll need to modify the Chrony configuration file. Open the configuration file with a text editor using the following command: ```bash sudo nano /etc/chrony/chrony.conf ``` #### Step 2: Update Configuration Settings In the configuration file, locate the section for local NTP server configuration and make the following changes: ```plaintext # Local NTP server configuration local stratum 8 manual allow 192.168.1.0/24 ``` - `local stratum 8` sets the stratum level for the local server. - `manual` allows for manual configuration of time. - `allow 192.168.1.0/24` permits NTP requests from the specified IP...

Install NFS Client

 sudo apt update && sudo apt upgrade -y sudo apt install nfs-common -y sudo mkdir -p /mnt/nfs sudo mount 192.168.1.113:/mnt/hdd /mnt/nfs df -h #for permanent sudo nano /etc/fstab 192.168.1.113:/mnt/hdd /mnt/nfs nfs defaults 0 0 or 192.168.1.113:/mnt/hdd /mnt/nfs nfs defaults,rsize=32768,wsize=32768,noatime 0 0 #Test sudo mount -a #Write test cd /mnt/nfs touch testfile.txt

NFS server

sudo apt update  sudo apt install nfs-kernel-server -y #Make dir sudo mkdir -p /mnt/hdd #Set permission sudo chown nobody:nogroup /mnt/hdd sudo chmod 777 /mnt/hdd or sudo chown -R dietpi:dietpi /mnt/hdd sudo chmod -R 775 /mnt/hdd #Add entry sudo nano /etc/exports /mnt/hdd 192.168.1.1/24(rw,sync,no_subtree_check) or /mnt/hdd *(rw,sync,no_subtree_check) or /mnt/hdd *(rw,async,no_subtree_check) or /mnt/hdd *(rw,fsid=1,no_subtree_check,insecure,no_root_squash) sudo exportfs -r sudo systemctl restart nfs-server sudo exportfs -v Verify showmount -e 192.168.1.113 showmount -a 192.168.1.113 showmount -d 192.168.1.113

Passthrough hdd

Passthrough hdd, make sure to unmount in proxmos before purging VM https://www.youtube.com/watch?v=U-UTMuhmC1U #Find id (PVE terminal) ls -n /dev/disk/by-id/ #Result lrwxrwxrwx 1 0 0  9 Aug 26 12:39 ata-ST6000VX001-2BD186_WSC1K1PF -> ../../sdb /sbin/qm set [VM-ID] -virtio2 /dev/disk/by-id/[DISK-ID] qm set 101 -virtio2 /dev/disk/by-id/ata-ST6000VX001-2BD186_WSC1K1PF or qm set 101 -scsi2 /dev/disk/by-id/ata-ST6000VX001-2BD186_WSC1K1PF sudo apt update && sudo apt install gdisk sudo gdisk /dev/sdb1 o to create empty GPT then n to create new, enter for all default w to save, confirm by y #Install xfsprogs and format drive then mount sudo apt-get update && sudo apt-get install xfsprogs sudo mkfs.xfs /dev/sdb1 sudo mkdir -p /mnt/hdd sudo mount /dev/sdb1 /mnt/hdd df -h # Get id sudo blkid /dev/sdb1 /dev/sdb1: UUID="47b59062-6f91-440b-87c5-f8972335b4a9" BLOCK_SIZE="512" TYPE="xfs" PARTLABEL="Linux" PARTUUID="12434b55-6d45-469a-a448...

Attach storage

 first add as hdd via proxmox #list lsblk #check size sudo fdisk -l /dev/sdb #Recreate the Partition // use n/d then p and w to save sudo fdisk /dev/sdb  #unmount sudo umount /mnt/aria2_data/ sudo umount /dev/sdb1 #format it sudo mkfs.ext4 /dev/sdb1 #mount -  sudo mkdir -p /mnt/aria2_data/ sudo mount /dev/sdb1 /mnt/aria2_data/ #Get the UUID of the partition sudo blkid /dev/sdb1 #add it nano /etc/fstab UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /mnt/aria2_data ext4 defaults 0 2 #Test sudo mount -a #Verify the Mount df -h #check error dmesg | grep sdb #Review Mount Status findmnt /mnt/aria2_data #Reboot and Verify

Install docker

 Install docker bash <(curl -sSfL https://get.docker.com ) add user to docker group sudo usermod -aG docker dietpi check docker version docker --version #install or Update docker compose //  /usr/local/bin/docker-compose sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose #check docker-compose version docker-compose --version apt install nano cd /home/dietpi sudo nano docker-compose.yaml after update docker-compose up -d

Install webmin

echo "deb [signed-by=/usr/share/keyrings/webmin.asc] http://download.webmin.com/download/repository sarge contrib" | sudo tee /etc/apt/sources.list.d/webmin.list sudo apt update && sudo apt install webmin -y

Install dietpi

Install dietpi bash <(curl -sSfL https://raw.githubusercontent.com/dazeb/proxmox-dietpi-installer/main/dietpi-install.sh) Source - https://github.com/dazeb/proxmox-dietpi-installer Enable SFTP apt install openssh-client apt install openssh-sftp-server

Add storage

Add storage Go to pve, Disks, Directory, Create Directory If the drive does not shows up, wipe then internalize

Start Guide

 https://www.derekseaman.com/2023/10/home-assistant-proxmox-ve-8-0-quick-start-guide-2.html https://www.derekseaman.com/2024/07/proxmox-ve-8-2-windows-11-vgpu-vt-d-passthrough-with-intel-alder-lake.html https://smarthomescene.com/guides/how-to-install-home-assistant-on-proxmox-the-easy-way/ https://github.com/Meliox/PVE-mods