Skip to content

Instantly share code, notes, and snippets.

View darBis's full-sized avatar

Martin Darebný darBis

View GitHub Profile
@darBis
darBis / proxmox-autostart.sh
Last active June 18, 2025 06:07
Proxmox autostart management script
#!/bin/bash
# Quick and dirty script to manage autostart behavior of Proxmox Containers and Virtual Machines.
#
# Useful during maintenance of a homelab Proxmox node when you plan on performing multiple system reboots
# and do not want everything to start up until you are done with server maintenance.
#
# Allows for saving autostart configuration to a file, disabling autostart on everything, restoring configuration from file
# and manually starting CTs and VMs configured for autostart.
# Run as root or using sudo.
@darBis
darBis / pct-enter.sh
Created February 25, 2024 16:55
Wrapper for Proxmox 'pct enter' to enter containers using a hostname. Supports only local node access.
#!/bin/bash
# Quick and dirty script to enter a Proxmox Container by its Name on local node.
# Loosely inspired by https://gist.github.com/Xenthys/eac5c4b46e8ad016ab8d6584883c754a
# Rewritten to use Proxmox CLI instead of parsing internal files, it was failing me with some containers.
# Does not support clustered setups, see original Gist for possible implementation.
# Disclaimer: No guaranties provided, "works on my machine" with Debian 12 and Proxmox 8. Writen with help of ChatGPT.
if [ $# -eq 0 ]; then