proxmaster/README.md

31 lines
1.1 KiB
Markdown
Raw Normal View History

2016-02-15 05:30:43 -05: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
2016-02-15 06:04:29 -05:00
5. make sure this iptables rule is included:
2016-11-11 09:56:35 -05:00
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/
2016-12-07 20:11:34 -05:00
start:
1. crontab -e
2. @reboot /usr/bin/screen -dmS proxmaster /home/master/proxmaster/start.sh
2016-02-15 05:30:43 -05:00
```
2016-11-03 10:01:11 -04:00
##Proxmox permissions:
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
2016-11-03 10:48:47 -04:00
6. Datacenter -> Storage -> Add -> NFS
7. ID: skyblue / Server: 1.2.3.5 / Export: /srv/proxmox/slavename / Content: ISO Image, VZDump backup site