ref.VDBX.io
  • Welcome
  • Terminal (sh)
    • MacOS (zsh)
    • Disk Recovery
  • Klipper
    • Install Firmware
    • Input Shaper
  • Docker
  • Software
    • ESPHome
      • Web Installer
    • Lists & Sources
    • Brew
    • Flood for Transmission
      • Mac
    • UTM
  • Raspberry Pi
  • VenusOS
  • Proxmox
  • Unifi
  • Mullvad
  • Speedify
  • Mikrotik
  • Home Assistant
Powered by GitBook
On this page
  • Post Install
  • Docker
  • Single Storage Drive
  • Software
  • HA OS (VM)
  • BS Garb
  • Expand Drive
  • Passthru Disk to VM
  • Mount CIFS/SMB
  • Partition has a hold
  • Resize LXC disk
  • Links & Refs

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

  1. Select Disk > Wipe Disk

  2. 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

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

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

PreviousVenusOSNextUnifi

Last updated 1 year ago

https://www.wundertech.net/how-to-passthrough-a-disk-in-proxmox/
https://tecadmin.net/mounting-samba-share-on-ubuntu/
https://tteck.github.io/Proxmox/
Expand logical volume - Ubuntu on ProxmoxUnix & Linux Stack Exchange
Logo