Proxmox-NUT Homelab HOWTO – Step 3 : Install Win Srv 2022 / Configure Shutdown from Proxmox/QEMU GA
Article: https://www.alanbonnici.com/2024/08/proxmox-nut-homelab-howto-step-3.html
Links
(Microsoft) Please select your Windows Server 2022 download: https://www.microsoft.com/en-us/evalcenter/download-windows-server-2022
Windows VirtIO Drivers: https://pve.proxmox.com/wiki/Windows_VirtIO_Drivers
Fedora (VirtIO drivers): https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/?C=M;O=D
Qemu/KVM Virtual Machines: https://pve.proxmox.com/wiki/Qemu/KVM_Virtual_Machines
How to handle ACPI events on Linux: https://linuxconfig.org/how-to-handle-acpi-events-on-linux
—————————————————————————————————————————————————
The series includes this article, a 7-part video series, and a VMWare archive. This is Part 4/7.
In this HowTo, I cover the following steps:
1. Configure a VM on VMWare Workstation Pro to install Proxmox on it;
2. Install a Windows Server 2022 VM as a VM in Proxmox;
3. Install the NUT (Network UPS Tools) UPS Software.
I also configure Proxmox, Windows Server 2022, and NUT to use a Gmail SMTP relay. This will be used by Proxmox and Windows server to send emails when they start and stop. Proxmox and NUT will provide additional status information.
Windows Server is configured to start automatically when Proxmox starts and will shut down cleanly without manual intervention when Proxmox is shutdown or rebooted.
Every stage is tested out to verify that everything is working as expected. Any limitations are highlighted.
A snapshot of the VM state after every Step is taken. You can download the entire archive and run it on your own hardware.
If you decide you run the VMWare Image on your own hardware, you need to change the email address and password to your values, otherwise the SMTP relay will not work. The places that need to be modified are:
– Proxmox notifications related to root@pam;
– Postfix SMTP settings (/etc/postfix/sasl_passwd). You need to hash the file afterwards;
– Windows startup and shutdown batch file (C:sendEmail-v 156Email.cmd);
– NUT script /etc/nut/upssched.conf.
by Alan C. Bonnici
linux smtp server