Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computer:proxmox_6_manual_install [2020/07/03 19:54]
tdobes
computer:proxmox_6_manual_install [2021/05/08 22:29] (current)
tdobes
Line 121: Line 121:
 # onboard interfaces on eno1-eno4 # onboard interfaces on eno1-eno4
 # PCIe interfaces on ens1f0-ens1f3 # PCIe interfaces on ens1f0-ens1f3
 +# see https://wiki.debian.org/Bonding
  
 echo >> /etc/network/interfaces echo >> /etc/network/interfaces
 echo '# Onboard 2' >> /etc/network/interfaces echo '# Onboard 2' >> /etc/network/interfaces
-echo 'allow-hotplug eno2' >> /etc/network/interfaces+echo 'allow-bond0 eno2' >> /etc/network/interfaces
 echo 'iface eno2 inet manual' >> /etc/network/interfaces echo 'iface eno2 inet manual' >> /etc/network/interfaces
 echo >> /etc/network/interfaces echo >> /etc/network/interfaces
 echo '# Onboard 3' >> /etc/network/interfaces echo '# Onboard 3' >> /etc/network/interfaces
-echo 'allow-hotplug eno3' >> /etc/network/interfaces+echo 'allow-bond0 eno3' >> /etc/network/interfaces
 echo 'iface eno3 inet manual' >> /etc/network/interfaces echo 'iface eno3 inet manual' >> /etc/network/interfaces
 echo >> /etc/network/interfaces echo >> /etc/network/interfaces
 echo '# Onboard 4' >> /etc/network/interfaces echo '# Onboard 4' >> /etc/network/interfaces
-echo 'allow-hotplug eno4' >> /etc/network/interfaces+echo 'allow-bond0 eno4' >> /etc/network/interfaces
 echo 'iface eno4 inet manual' >> /etc/network/interfaces echo 'iface eno4 inet manual' >> /etc/network/interfaces
 echo >> /etc/network/interfaces echo >> /etc/network/interfaces
 echo '# Aggregate of onboard interfaces' >> /etc/network/interfaces echo '# Aggregate of onboard interfaces' >> /etc/network/interfaces
-echo 'auto bond0' >> /etc/network/interfaces+echo 'auto bond0' >> /etc/network/interfaces # yes, both this and vmbr0 need to be auto
 echo 'iface bond0 inet manual' >> /etc/network/interfaces echo 'iface bond0 inet manual' >> /etc/network/interfaces
-echo $'\tslaves eno2 eno3 eno4' >> /etc/network/interfaces+echo $'\tbond-slaves eno2 eno3 eno4' >> /etc/network/interfaces
 echo $'\tbond-mode 4' >> /etc/network/interfaces echo $'\tbond-mode 4' >> /etc/network/interfaces
-echo $'\tpre-up ip link set dev $IFACE mtu 9000' >> /etc/network/interfaces+echo $'\tbond-lacp-rate 1' >> /etc/network/interfaces 
 +echo $'\tbond-xmit-hash-policy layer2+3' >> /etc/network/interfaces 
 +echo $'\tup ip link set dev $IFACE mtu 9000' >> /etc/network/interfaces # this can't be pre-up or the interface won't exist yet
 echo >> /etc/network/interfaces echo >> /etc/network/interfaces
-echo 'auto vmbr0' >> /etc/network/interfaces+echo 'auto vmbr0' >> /etc/network/interfaces # yes, both this and bond0 need to be auto
 echo 'iface vmbr0 inet static' >> /etc/network/interfaces echo 'iface vmbr0 inet static' >> /etc/network/interfaces
 echo $'\taddress 192.168.68.11' >> /etc/network/interfaces echo $'\taddress 192.168.68.11' >> /etc/network/interfaces
Line 155: Line 158:
   * once network is set up, ensure that we have a *real* IP address in /etc/hosts:<code>   * once network is set up, ensure that we have a *real* IP address in /etc/hosts:<code>
 ip=`ip addr show dev vmbr0 | grep 'inet ' | awk '{print $2}' | sed -e 's|/.*$||'` ip=`ip addr show dev vmbr0 | grep 'inet ' | awk '{print $2}' | sed -e 's|/.*$||'`
-sed -i -e "s/127.0.1.1\(.*\)$/$ip\1 pvelocalhsot/" /etc/hosts+sed -i -e "s/127.0.1.1\(.*\)$/$ip\1 pvelocalhost/" /etc/hosts
 unset ip</code> unset ip</code>
   * copy main.cf to /etc/postfix/ :<code>   * copy main.cf to /etc/postfix/ :<code>
Line 193: Line 196:
 # old location: sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/pve-manager/ext6/pvemanagerlib.js # old location: sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/pve-manager/ext6/pvemanagerlib.js
 # old location: sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/pve-manager/js/pvemanagerlib.js # old location: sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/pve-manager/js/pvemanagerlib.js
-sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js+sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js 
 +# auto-apply method via. apt/dpkg hook 
 +# new method: https://johnscs.com/remove-proxmox51-subscription-notice/ and https://dannyda.com/2020/05/17/how-to-remove-you-do-not-have-a-valid-subscription-for-this-server-from-proxmox-virtual-environment-6-1-2-proxmox-ve-6-1-2-pve-6-1-2/ 
 +# auto-apply ideas: https://gist.github.com/whiskerz007/53c6aa5d624154bacbbc54880e1e3b2a 
 +cat > /usr/local/sbin/remove_proxmox_subscription_nag.sh <<'EOF' 
 +#!/bin/sh 
 + 
 +dpkg -s proxmox-widget-toolkit >/dev/null 2>&1 || exit 0 
 +grep -q 'void({ //Ext.Msg.show({' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && exit 0 
 +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 --no-block --no-ask-password try-restart pveproxy.service 
 +EOF 
 +chmod +x /usr/local/sbin/remove_proxmox_subscription_nag.sh 
 +echo 'DPkg::Post-Invoke { "/usr/local/sbin/remove_proxmox_subscription_nag.sh"; };' > /etc/apt/apt.conf.d/99remove_proxmox_subscription_nag 
 +remove_proxmox_subscription_nag.sh
 </code> </code>
   * OPTIONAL: ''aptitude install nload iperf3'' # for network performance testing   * OPTIONAL: ''aptitude install nload iperf3'' # for network performance testing
computer/proxmox_6_manual_install.1593824060.txt.gz · Last modified: 2020/07/03 19:54 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS