Proxmox
Post Install
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/post-pve-install.sh)"
Docker
fixed for use in LXC console (no sudo + apt vs apt-get)
apt update
apt install ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Single Storage Drive
nodename > Disks
Select Disk > Wipe Disk
Disks > ZFS > Create ZFS
Software
HA OS (VM)
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/vm/haos-vm.sh)"
BS Garb
10.0.0.104:9696 - Prowlarr
Expand Drive
# allocate more space on hypervisor
# make the partition see the space (dev/sda3, Resize, Write, quit)
sudo cfdisk
# extend the physical volume from the partition
sudo pvresize /dev/sda3
# extend LV to use up all space from VG
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
# resize file system
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv
# check can see the space on filesystem
df -h
Passthru Disk to VM
Check drives and show model and serial
https://www.wundertech.net/how-to-passthrough-a-disk-in-proxmox/
lsblk -o +MODEL,SERIAL,WWN
grab disk id
ls -l /dev/disk/by-id
qm set 107 -scsi1 /dev/disk/by-id/ata-Samsung_SSD_870_QVO_2TB_S6R4NJ0W401819L
The SATA ribbon cable broke in my mini PC and I was able to swap out for a USB to SATA connector with the ID below I found with the found from the command above.
usb-Samsung_SSD_870_QVO_2TB_0123456789ABCDEF-0:0
You can swap this out in the conf file:
nano /etc/pve/qemu-server/###.conf
Mount CIFS/SMB
This is not working currently will update soon from other notes
https://tecadmin.net/mounting-samba-share-on-ubuntu/
apt install cifs-utils
mkdir /media/download
nano /root/.smbcredentials
Add your Samba creds
username=
password=
Chmod the creds file
chmod 400 /root/.smbcredentials
Test the connection (if you want)
mount -t cifs -o username=clomads //10.0.0.82/meds /mnt/meds/
mount -t cifs -o rw,vers=3.0,credentials=/root/.smbcredentials //10.0.0.78/meds /mnt/meds
add to
nano /etc/fstab
//10.0.0.30/Downloads /media/download cifs noperm,iocharset=utf8,rw,credentials=/root/.smbcredentials,uid=root,gid=root,file_mode=0660,dir_mode=0770 0 0
Partition has a hold
lsblk
-> find container id under numbered sdx# (sdb3)
dmsetup remove [ID]
Resize LXC disk
Just change the containder ID #
pct resize 109 rootfs 256G
Links & Refs
DB Tech - YouTube
Last updated