No description
Find a file
2017-07-30 23:23:09 +03:00
db separate cpu/mem/hdd tuple 2017-07-30 23:23:09 +03:00
.gitignore First. 2016-02-15 12:30:43 +02:00
config.ini.dist add clientemail owner to grid.queryvm. deprecate mac and ipv4 generators 2017-07-19 22:15:51 +03:00
grid.py logger update 2017-07-19 22:28:26 +03:00
humanjson.sh separate cpu/mem/hdd tuple 2017-07-30 23:23:09 +03:00
ioconfig.py First. 2016-02-15 12:30:43 +02:00
LICENSE.md MPLv2 2016-04-28 01:53:05 +03:00
nginx-vhost-ssl.txt vnc ssl support 2016-11-11 16:56:35 +02:00
nginx-vhost.txt vnc ssl support 2016-11-11 16:56:35 +02:00
novnc.py iptables rule 2016-02-15 13:04:29 +02:00
plugin.py separate cpu/mem/hdd tuple 2017-07-30 23:23:09 +03:00
proxmaster.py small fixes to prepare for ipv4 gen deprecation 2017-06-01 18:48:05 +03:00
README.md add clientemail owner to grid.queryvm. deprecate mac and ipv4 generators 2017-07-19 22:15:51 +03:00
requirements.txt add vm_host to system log 2017-03-01 02:56:03 +02:00
runwebsockify.py First. 2016-02-15 12:30:43 +02:00
start.sh fix 2016-12-08 03:11:34 +02:00
utils.py fixing various bugs 2016-04-01 02:37:21 +03:00

#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. apt install letsencrypt
7. generate letsencrypt cert using letsencrypt tool and add
00 00   1 * *   root    /etc/init.d/nginx stop && letsencrypt renew && /etc/init.d/nginx start
to /etc/crontab
8. chmod 705 /etc/letsencrypt/archive ; chmod 705 /etc/letsencrypt/live

start:
1. crontab -e
2. @reboot /usr/bin/screen -dmS proxmaster /home/master/proxmaster/start.sh

##Proxmox slave install instructions:

  1. Datacenter -> Permissions -> Add -> User Permission
  2. Path: / User: masteradmin@pve / Role: PVEAdmin
  3. $IPT -A tcp_inbound -p TCP -s $PROXIP -j ACCEPT #enable proxmaster
  4. Datacenter -> Storage -> Add -> LVM
  5. ID: lvm / Volume Group: vm / Content: Disk image, Container
  6. Datacenter -> Storage -> Add -> NFS
  7. ID: skyblue / Server: 1.2.3.5 / Export: /srv/proxmox/slavename / Content: ISO Image, VZDump backup site
  8. echo 1 > /proc/sys/kernel/dmesg_restrict