PROXMOX - Giancky79/proxmox GitHub Wiki

Disable Commercial Repo

  •  sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
    

Add PVE Community Repo 5.X

  •  echo "deb http://download.proxmox.com/debian/pve stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
    

Add PVE Community Repo 6.X

  •  echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
    

Add PVE Community Repo 7.X

  •  echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
    

Remove startup message subscription

  •  sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && sed -i.bak 's/NotFound/Active/g' "/usr/share/perl5/PVE/API2/Subscription.pm" && systemctl restart pveproxy.service
    

N.B. per 1 minuto circa non potrete accedere alla shell di proxmox, attendere

Update from 5.x to 6.x

  •  sed -i 's/stretch\/updates/buster-security/g;s/stretch/buster/g' /etc/apt/sources.list
    

Update from 6.x to 7.x

  •  sed -i 's/buster\/updates/bullseye-security/g;s/buster/bullseye/g' /etc/apt/sources.list
    

Aggiungere dischi in proxmox

Partenza con un hdd formattato ext4

  •  Da Proxmox, sotto disks, selezionate l'hdd ed in fine selezionate 'Initialize Disk with GPT'
    
  •  Selezionare la tipologia da creare (LVM, LVM-Thin, Directory, ZFS)
    

Partenza con un hdd da formattare

Da proxmox, sotto disk cercare l'hdd da formattare

Da shell Proxmox, digitare:

  1.  cfdisk /dev/sdx   (inserire la lettera corrispondente al posto della x)
    
  2.  Selezionare tutte le sotto partizioni se ci sono ed eliminatele andando sulla voce < delete > uno per uno
    
  3.  Confermate con < write > 
    
  4.  Per uscire < quit >
    

Aggiungere hdd che era già inserito in Proxmox

Da shell Proxmox, digitare:

  1.  nano /etc/pve/storage.cfg
    

Come directory:

  dir: dati <-- nome hdd
    path /mnt/pve/dati  <-- percorso hdd
    content iso,snippets,images,rootdir,vztmpl,backup  <-- eventuale contenuto hdd
    is_mountpoint 1
    nodes pve  <-- nome del vostro nodo se diverso pve

Come lvm:

  lvmthin: nextcloud  <-- nome dato
          thinpool nextcloud  <-- nome dato
          vgname nextcloud  <-- nome dato
          content images,rootdir 
          nodes pve   <-- nome del vostro nodo se diverso pve

  1. pvesm status
    
  2. systemctl status mnt-pve-dati.mount 
    
  3. systemctl enable mnt-pve-dati.mount 
    
  4. systemctl start mnt-pve-dati.mount 
    
  5. systemctl restart pveproxy.service
    

Per rimuovere

  1. systemctl status mnt-pve-dati.mount 
    
  2. systemctl stop mnt-pve-dati.mount 
    
  3. systemctl disable mnt-pve-dati.mount 
    
  4.  nano /etc/pve/storage.cfg
    

cancellare la parte interessata


  dir: dati <-- nome hdd
    path /mnt/pve/dati  <-- percorso hdd
    content iso,snippets,images,rootdir,vztmpl,backup  <-- eventuale contenuto hdd
    is_mountpoint 1
    nodes pve  <-- nome del vostro nodo se diverso pve

  1.  systemctl restart pveproxy.service
    

Cambiare password CT (lxc)

  •  Da shell Proxmox, digitare:
    
  1.  pct enter (numero container)
    
  2.  passwd root
    
  3.  inserire password nuova
    

apt install ifupdown2 -y

⚠️ **GitHub.com Fallback** ⚠️