diff --git a/Virtualization/Proxmox/ProxmoxVE.md b/Virtualization/Proxmox/ProxmoxVE.md index c84d334..069285d 100644 --- a/Virtualization/Proxmox/ProxmoxVE.md +++ b/Virtualization/Proxmox/ProxmoxVE.md @@ -86,27 +86,64 @@ iface eno2 inet manual - Adjust the network interfaces to add a bond: ```jsx title="/etc/network/interfaces" +auto eno1 iface eno1 inet manual + +auto eno2 iface eno2 inet manual +auto bond0 iface bond0 inet manual - bond-slaves eno1 eno2 # Interfaces to assign to the bond - bond-miimon 100 # Enable Bond Monitoring - Suggested to Configure based on Proxmox Guidance + bond-slaves eno1 eno2 + bond-miimon 100 bond-mode 802.3ad bond-xmit-hash-policy layer2+3 auto vmbr0 iface vmbr0 inet static - address 192.168.3.4/24 - gateway 192.168.3.1 + address 192.168.0.11/24 + gateway 192.168.0.1 bridge-ports bond0 bridge-stp off bridge-fd 0 - bridge-vlan-aware yes - bridge-vids 2-4094 +# bridge-vlan-aware yes # I do not use VLANs +# bridge-vids 2-4094 # I do not use VLANs (This could be set to any VLANs you want it a member of) ``` !!! warning Be sure to include both interfaces for the (Dual-Port) 10GbE connections in the network configuration. Final example document will be updated at a later point in time once the production server is operational. -- Reboot the server again to make the networking changes take effect fully. Use iLO / iDRAC / IPMI if you have that functionality on your server in case your configuration goes errant and needs manual intervention / troubleshooting to re-gain SSH control of the proxmox server. \ No newline at end of file +- Reboot the server again to make the networking changes take effect fully. Use iLO / iDRAC / IPMI if you have that functionality on your server in case your configuration goes errant and needs manual intervention / troubleshooting to re-gain SSH control of the proxmox server. + +## Generalizing VMs for Cloning / Templating: +These are the commands I run after cloning a Linux machine so that it resets all information for the machine it was cloned from. + +!!! note + If you use cloud-init-aware OS images as described under Cloud-Init Support on https://pve.proxmox.com/pve-docs/chapter-qm.html, these steps won’t be necessary! + +```jsx title="Change Hostname" +sudo nano /etc/hostname +``` + +```jsx title="Change Hosts File" +sudo nano /etc/hosts +``` + +```jsx title="Reset the Machine ID" +rm -f /etc/machine-id /var/lib/dbus/machine-id +dbus-uuidgen --ensure=/etc/machine-id +dbus-uuidgen --ensure +``` + +```jsx title="Regenerate SSH Keys" +rm -f /etc/machine-id /var/lib/dbus/machine-id +dbus-uuidgen --ensure=/etc/machine-id +dbus-uuidgen --ensure +``` + +```jsx title="Reboot the Server to Apply Changes" +reboot +``` + +## Configure Alerting +https://technotim.live/posts/proxmox-alerts/ \ No newline at end of file