Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marrobHD/proxmox-tools
📦 A collection of stuff that I and others wrote for Proxmox 📦
https://github.com/marrobHD/proxmox-tools
backup cluster maintenance proxmox proxmox-api proxmox-apis proxmox-backup proxmox-cluster proxmox-restore proxmox-scripts proxmox-tools proxmox-ve
Last synced: 5 days ago
JSON representation
📦 A collection of stuff that I and others wrote for Proxmox 📦
- Host: GitHub
- URL: https://github.com/marrobHD/proxmox-tools
- Owner: marrobHD
- License: apache-2.0
- Created: 2020-02-27T11:00:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-16T09:37:28.000Z (9 months ago)
- Last Synced: 2024-08-01T19:56:45.990Z (3 months ago)
- Topics: backup, cluster, maintenance, proxmox, proxmox-api, proxmox-apis, proxmox-backup, proxmox-cluster, proxmox-restore, proxmox-scripts, proxmox-tools, proxmox-ve
- Language: Shell
- Homepage:
- Size: 62.5 KB
- Stars: 267
- Watchers: 14
- Forks: 26
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-proxmox-ve - proxmox-tools
README
# ProxmoxTools
📦 A collection of stuff that I and others wrote for Proxmox 📦[![License][license-shield]](LICENSE.md)
![Project Maintenance][maintenance-shield]
[![GitHub Activity][commits-shield]][commits][![Github][github]][github]
### Features
-<--->-
____________________________________________________________________________________________
Remove Proxmox Nag
Remove Proxmox Nag | Tested 5.1-3 - 7.1-12
To remove the Proxmox Nag, run the following in the Proxmox Shell
```yaml
bash -c "$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/ProxmoxNag.sh)"
```
____________________________________________________________________________________________🔸Remove ProxmoxVE Nag & Add Community Repo
Remove ProxmoxVE Nag & Add Community Repo | Tested 5.1-3 - 7.2-7
To remove the Proxmox Nag & add Community Repo, run the following in the Proxmox Shell
```yaml
bash -c "$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/proxmoxve_community.sh)"
```____________________________________________________________________________________________
🔸Remove ProxmoxBS Nag & Add Community Repo
Remove ProxmoxBS Nag & Add Community Repo | Tested 2.2-1 - NAN
To remove the Proxmox Nag & add Community Repo, run the following in the Proxmox Shell
```yaml
bash -c "$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/proxmoxbs_community.sh)"
```____________________________________________________________________________________________
Proxmox CPU Scaling Governor
Proxmox CPU Scaling Governor
CPU Scaling Governor enables the operating system to scale the CPU frequency up or down in order to save power or improve performance.
[Generic Scaling Governors](https://www.kernel.org/doc/html/latest/admin-guide/pm/cpufreq.html?#generic-scaling-governors)
Run the following in the Proxmox Shell.
```yaml
bash -c "$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/scaling-governor.sh)"
```____________________________________________________________________________________________
Backup Proxmox Config
Backup Proxmox Config Manual
To create a new Proxmox Node Config Backup, do the following in the Proxmox Shell
```yaml
* Download the [script](https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/prox_config_backup.sh)
```cd /root/; wget -qO- https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/prox_config_backup.sh > prox_config_backup.sh```
* Set the permanent backups directory ```export BACK_DIR="/root/proxmox_backups/"```
* Create a proxmox_backups folder and make the script executable ```mkdir /root/proxmox_backups/; chmod +x ./prox_config_backup.sh```
* Shut down ALL VMs + LXC Containers if you want to go the save way. (Not required) ```service pve-manager stop```
* Run the script ```./prox_config_backup.sh```
```____________________________________________________________________________________________
Restore Proxmox Config
Restore Proxmox Config
On machine, you end up with a GZipped file of about 1-10 MB with a name like "proxmox_backup_proxmoxhostname_2017-12-02.15.48.10.tar.gz".
Depending upon how you schedule it and the size of your server, that could eventually become a space issue so don't
forget to set up some kind of archive maintenance.To restore, move the file back to proxmox with cp, scp, webmin, a thumb drive, whatever.
I place it back into the /var/tmp directory from where it came.```
# Unpack the original backup
tar -zxvf proxmox_backup_proxmoxhostname_2017-12-02.15.48.10.tar.gz
# unpack the tared contents
tar -xvf proxmoxpve.2017-12-02.15.48.10.tar
tar -xvf proxmoxetc.2017-12-02.15.48.10.tar
tar -xvf proxmoxroot.2017-12-02.15.48.10.tar# If the services are running, stop them:
for i in pve-cluster pvedaemon vz qemu-server; do systemctl stop $i ; done# Copy the old content to the original directory:
cp -avr /var/tmp/var/tmp/etc/* /etc/
cp -avr /var/tmp/var/tmp/var/* /var/
cp -avr /var/tmp/var/tmp/root/* /root/# And, finally, restart services:
for i in qemu-server vz pvedaemon pve-cluster; do systemctl start $i ; done
```If nothing goes wrong, and you have separately restored the VM images using the default ProxMox process.
You should be back where you started. But let's hope it never comes to that.____________________________________________________________________________________________
Leave Proxmox Cluster
Leave Proxmox Cluster
To leave a Proxmox-Cluster, run the following in the Proxmox Node shell, which should leave the cluster.
```yaml
bash -c "$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/leave-cluster.sh)"
```____________________________________________________________________________________________
Proxmox API - Guest Actions
Guest Actions
The Proxmox API scripts are located in the API folder.
```
/api/lxc: startlxc.sh, stoplxc.sh, shutdownlxc.sh, restartlxc.sh, suspendlxc.sh and resumelxc.sh
/api/vm: startvm.sh, stopvm.sh, shutdownvm.sh, restartvm.sh, resetvm.sh, suspendvm.sh and resumevm.sh
```____________________________________________________________________________________________
🔸Proxmox LXC Updater
Proxmox LXC Updater
Update All LXC's Fast & Easy
Run the following in the Proxmox Shell.```yaml
bash -c "$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/upgrade-lxcs.sh)"
```____________________________________________________________________________________________
Home Assistant OS VM
Home Assistant OS VM
To create a new Proxmox Home Assistant OS VM, run the following in the Proxmox Shell
```yaml
bash -c "$(wget -qLO - https://raw.githubusercontent.com/marrobHD/proxmox-tools/master/install-HAOS.sh)"
```âš¡ Default Settings: 4GB RAM - 32GB Storage - 2vCPU âš¡
After the script completes, click on the VM, then on the **_Summary_** tab to find the VM IP.**Home Assistant Interface - IP:8123**
____________________________________________________________________________________________
### Sources
http://ziemecki.net/content/proxmox-config-backupsFeel free to post issues
## Authors & contributors
The original setup of this repository is by [Marlon][TechHome].
For a full list of all authors and contributors,
check [the contributor's page][contributors].[Troubleshooting]()
[commits-shield]: https://img.shields.io/github/commit-activity/y/marrobHD/proxmox-tools.svg?style=for-the-badge
[commits]: https://github.com/marrobHD/proxmox-tools/commits/master
[contributors]: https://github.com/marrobHD/proxmox-tools/graphs/contributors
[license-shield]: https://img.shields.io/github/license/marrobHD/proxmox-tools.svg?style=for-the-badge
[maintenance-shield]: https://img.shields.io/badge/maintainer-TechHome-blue.svg?style=for-the-badge
[TechHome]: https://github.com/marrobHD
[releases-shield]: https://img.shields.io/github/release/marrobHD/proxmox-tools.svg?style=for-the-badge
[releases]: https://github.com/marrobHD/proxmox-tools/releases
[contributors]: https://github.com/hassio-addons/addon-ssh/graphs/contributors
[license-shield]: https://img.shields.io/github/license/marrobHD/proxmox-tools.svg?style=for-the-badge
[maintenance-shield]: https://img.shields.io/badge/maintainer-Marlon-blue.svg?style=for-the-badge
[releases-shield]: https://img.shields.io/github/release/marrobHD/proxmox-tools.svg?style=for-the-badge
[releases]: https://github.com/marrobHD/proxmox-tools/releases
[github]: https://img.shields.io/github/followers/marrobHD.svg?style=social