https://github.com/topscoder/proxmox-scripts
https://github.com/topscoder/proxmox-scripts
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/topscoder/proxmox-scripts
- Owner: topscoder
- Created: 2021-08-08T19:37:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-08T19:48:43.000Z (over 4 years ago)
- Last Synced: 2025-01-12T19:36:17.121Z (about 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# proxmox-scripts
While running some Proxmox nodes I came across some issues like unresponsive containers or images.
In some cases a `pct unlock ` or `lxt unlock ` just doesn't work.
A reboot – like in the Windows world – of the entire machine would probably solve the hanging containers,
But if you run only one node at that time, you want to minimize downtime as much as possible.
I've created some scripts to be able to use these commands when I need them.
Force restart Proxmox services
---
```bash
sh restart-services.sh
```
Unlock VM
---
If Proxmox can't access the lock file, you can't do anything with that machine. You want to force release the lock.
```bash
sh unlock-vm.sh
```
Credits go to dannyda.com as author for this script.