No description
db | ||
.gitignore | ||
config.ini.dist | ||
grid.py | ||
humanjson.sh | ||
ioconfig.py | ||
LICENSE.md | ||
nginx-vhost-ssl.txt | ||
nginx-vhost.txt | ||
novnc.py | ||
plugin.py | ||
proxmaster.py | ||
README.md | ||
requirements.txt | ||
runwebsockify.py | ||
start.sh | ||
utils.py |
#Proxmaster Python RESTful API for managing a grid of vm slaves
##Installation instructions:
1. sudo pip3 install -r requirements.txt
2. create config.ini with the following format:
3. chmod +x start.sh
4. create nginx vhost via the provided template files:
- config.ini.dist
- nginx_example_vhost.txt
5. make sure this iptables rule is included:
iptables -A tcp_inbound -p TCP --match multiport --dports 6900:8000 -j ACCEPT #vnc range
6. generate self signed cert for ssl:
openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem
7. o/
start:
1. crontab -e
2. @reboot /usr/bin/screen -dmS proxmaster /home/master/proxmaster/start.sh
##Proxmox slave install instructions:
- Datacenter -> Permissions -> Add -> User Permission
- Path: / User: masteradmin@pve / Role: PVEAdmin
- $IPT -A tcp_inbound -p TCP -s $PROXIP -j ACCEPT #enable proxmaster
- Datacenter -> Storage -> Add -> LVM
- ID: lvm / Volume Group: vm / Content: Disk image, Container
- Datacenter -> Storage -> Add -> NFS
- ID: skyblue / Server: 1.2.3.5 / Export: /srv/proxmox/slavename / Content: ISO Image, VZDump backup site
- echo 1 > /proc/sys/kernel/dmesg_restrict