Home
David's tidbits
Cancel

Installing Portainer in a Docker container

source: https://docs.portainer.io/start/install/server/docker/linux With some modifications #!/bin/bash sudo docker volume create portainer_data sudo docker run -d -p 8000:8000 -p 9443:9443 --nam...

Installing Terraform

source: https://computingforgeeks.com/how-to-install-terraform-on-ubuntu/ sudo apt update sudo apt install -y software-properties-common gnupg2 curl curl https://apt.releases.hashicorp.com/gpg | ...

Install client tools in a XCP-NG VM

Upload the ISO file to your ISO storage Go to the VM you created. Under disks at the bottom, is the CD drive. Select the ISO file you uploaded. In the VM, run the following commands. s...

Making cluster hosts HA

On each host: Home, Host, select host, select storage and click on the NFS storage Copy the storage UUID At a terminal window for that host, run this command: xe pool-ha-enable heartbeat-s...

Wiping a disk on Linux

Sometimes disks have data or meta data on them that prevents them from being used. This command will wipe the disk completely. wipefs -fa /dev/sd? Sometimes even this fails. Try this: sgdisk --z...

Installing the QEMM agent in a Proxmox VM

This allows Proxmox to be able to look into the VM and manage it. source: https://www.snel.com/support/nstall-qemu-guest-agent-for-debian-ubuntu/ In Proxmox, enable the agent in options. sudo ap...

Proxmox Ceph notes

Proxmox cluster needed Three number of hosts min Odd hosts needed for quorum in the cluster OSD units on each host requires the entire disk OSD disks do not need to be the same size.

Fixing a DHCP issue in Proxmox Ubuntu VMs

In Proxmox, if you create an Ubuntu VM that uses DHCP and after installation, if you clone the VMs, each VM will wind up with the same DHCP address. Here is a script to fix this. if [ "$EUID" -ne ...

Random BASH scripting notes

Note Always add this at the top of you script file so there is no confusion which interpretor you are using. #!/bin/bash To make your script executable: chmod +x filename Do not have spaces ar...

ZFS on Ubuntu

Do not install in a VM. This defeats a lot of the advantages of ZFS Get the device names sudo fdisk -l sudo apt install zfsutils-linux sudo zpool create mypool mirror /dev/sdb /dev/sdc mirror /...