Debian 12 with nginx ยท Migrated from VirtualBox to Proxmox
This web server runs Debian 12 with nginx, hosting static content, documentation, and lab status pages. Originally running on VirtualBox, it was migrated to a Proxmox VM on dedicated hardware.
kex_exchange_identification: read: Connection reset by peer Connection reset by [CLIENT_IP] port 22
Cause: SSH was hardened to only accept connections from specific clients, blocking management access.
curl: (7) Failed to connect to [DOMAIN] port 80: Connection refused
Cause: nginx was pointing to the wrong directory and had duplicate root lines in its configuration.
<body> </body>
Cause: The index.html file had no content between the body tags.
403 Forbidden
Cause: No index.html file in the /projects/ directory.
root /path/to/first; root /path/to/second; root /path/to/third;
Cause: Duplicate root lines in nginx config โ nginx used the last one, which pointed to a non-existent directory.
Unlike other VMs, the Debian migration was smooth using the IDE-first method:
โ Booted first try! Later upgraded to VirtIO for performance.
Why it worked: Debian expects /dev/sda. IDE presents as sda, while SCSI would present as vda and break GRUB.