User Tools

Site Tools


proxmox_setup


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
proxmox_setup [2023/09/11 22:24] – [Proxmox Setup] adminproxmox_setup [2024/11/14 02:30] (current) – external edit 127.0.0.1
Line 1: Line 1:
-~~NOTOC~~ 
- 
 ====== Proxmox Setup ====== ====== 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. 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.
  
-==== Configure Nginx Proxy ====+==== Create zpool ==== 
 +<code> 
 +/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 
 +</code> 
 + 
 +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. So I don't have to go to port 8006 anymore.
  
 https://pve.proxmox.com/wiki/Web_Interface_Via_Nginx_Proxy https://pve.proxmox.com/wiki/Web_Interface_Via_Nginx_Proxy
  
-==== adjust apt sources ==== +<code>upstream proxmox { 
-Disable entries in `pve-enterprise.listand `ceph.listin `sources.list.d/`+    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; 
 +    } 
 +
 +</code> 
 +==== 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 Add no-subscription to sources.list
  
-`deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription`+''deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription''
  
-==== chrony.conf ====+==== chrony config ====
 Modify to my liking - not much to say.  Modify to my liking - not much to say. 
  
Line 37: Line 73:
 makestep 1 3 makestep 1 3
 leapsectz right/UTC leapsectz right/UTC
 +</code>
 +
 +==== remove subscription warning ====
 +https://johnscs.com/remove-proxmox51-subscription-notice/
 +
 +<code>
 +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
 +</code>
 +
 +==== 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:
 +<code>
 +lvremove /dev/pve/data &&
 +lvresize -l +100%FREE /dev/pve/root &&
 +resize2fs /dev/mapper/pve-root
 +</code>
 +
 +==== Update grub for PCIe passthru ====
 +Find
 +<code>
 +GRUB_CMDLINE_LINUX_DEFAULT="quiet"
 +</code>
 +
 +Modify to:
 +<code>
 +GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on iommu=pt"
 +</code>
 +
 +Update /etc/modules
 +<code>
 +vfio
 +vfio_iommu_type1
 +vfio_pci
 +vfio_virqfd
 +</code>
 +
 +Update initramfs
 +<code>
 +update-initramfs -u -k all
 </code> </code>
proxmox_setup.1694471045.txt.gz · Last modified: 2024/11/14 02:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki