Table of Contents
Proxmox Setup
A list of some things I did/do when I set up a new Proxmox instance so I can keep track for future problem solving/etc.
Create zpool
/sbin/zpool create -o ashift=12 pool1 raidz /dev/disk/by-id/scsi-35000cca012204e74 /dev/disk/by-id/scsi-35000c50095fd533f /dev/disk/by-id/scsi-35000c5009603e45f
Add the -f tag if the drives are slightly different capacities or whatever.
Nginx Proxy
So I don't have to go to port 8006 anymore.
https://pve.proxmox.com/wiki/Web_Interface_Via_Nginx_Proxy
upstream proxmox {
server "pedge.syninf.net";
}
server {
listen 80 default_server;
rewrite ^(.*) https://$host$1 permanent;
}
server {
listen 443 ssl;
server_name pedge.syninf.net;
ssl_certificate /etc/nginx/wildcard.crt;
ssl_certificate_key /etc/nginx/wildcard.key;
proxy_redirect off;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass https://localhost:8006;
proxy_buffering off;
client_max_body_size 0;
proxy_connect_timeout 3600s;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
send_timeout 3600s;
}
}
update apt sources
https://pve.proxmox.com/wiki/Package_Repositories
Disable entries in pve-enterprise.list and ceph.list in sources.list.d/
Add no-subscription to sources.list
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
chrony config
Modify to my liking - not much to say.
server 172.16.0.2 server time-a.nist.gov server time-a-wwv.nist.gov server time-a-b.nist.gov driftfile /var/lib/chrony/chrony.drift ntsdumpdir /var/lib/chrony # leave this here in case I want logs later #log tracking measurements statistics logdir /var/log/chrony maxupdateskew 100.0 rtcsync makestep 1 3 leapsectz right/UTC
remove subscription warning
https://johnscs.com/remove-proxmox51-subscription-notice/
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
remove local-lvm
https://forum.proxmox.com/threads/need-to-delete-local-lvm-and-reuse-the-size.34087/
https://www.reddit.com/r/toordotone/comments/souiub/remove_locallvm_from_proxmox/
- Click on “Datacenter” and then click on “Storage”.
- Click on “local-lvm” and click on “Remove”
- Enter the following commands:
lvremove /dev/pve/data && lvresize -l +100%FREE /dev/pve/root && resize2fs /dev/mapper/pve-root
Update grub for PCIe passthru
Find
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
Modify to:
GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on iommu=pt"
Update /etc/modules
vfio vfio_iommu_type1 vfio_pci vfio_virqfd
Update initramfs
update-initramfs -u -k all
