diff --git a/Installation.md b/Installation.md index b973ff8..e52e8d3 100644 --- a/Installation.md +++ b/Installation.md @@ -28,12 +28,15 @@ If there are nodes that should get managed by this master server, then the follo ```su nlvmi```
```ssh-keygen``` -without a password
+If you want to use https, novnc will not work out of the box because of the websocket. NLVMI includes a tiny nginx config generator to overcome this issue. Just create a directory like /etc/nginx/nlvmi/, add "include /etc/nginx/nlvmi/*.conf;" to your https server config and edit /etc/nlvmi/nlvmi.conf to set NGINXCONFIGPATH="/etc/nginx/nlvmi". There is also a NGINXRSTARTCOMMAND which can be used to reload the generated configs automatically. + + If this host should also act as node, then the following packages are also needed as dep:
-qemu
-usermode-utilities
-bridge-utils
-socat
- +You should edit /etc/nlvmi/nlvmi.conf and set the local directories used for images. For multiple iso or image directories, use a semicolon as seperator. **KVM node**
This is a remote server that gets managed by the master.
@@ -46,5 +49,18 @@ The following deps are needed there:
-openssh
Quick install:
+```become root```
+```cd /usr/local```
+```git clone https://git.nativenet.ch/nativenet.ch/nlvmi.git``` - you could also just copy everything (expect the webfolder) from the masterserver, but keep the nlvmi bash script in sync!
+```useradd nlvmi```
+```ln -sf ${PWD}/nlvmi/nlvmi /usr/bin/```
+```ln -sf ${PWD}/nlvmi/wrap-nlvmi /usr/bin/```
+```chown root:nlvmi nlvmi/*nlvmi```
+```chmod +s nlvmi/wrap-nlvmi```
+```mkdir /etc/nlvmi```
+```cp nlvmi/nlvmi.conf /etc/nlvmi/```
+Now edit /etc/nlvmi/nlvmi.conf and set the IP of the masterserver and the local directories used for images. For multiple iso or image directories, use a semicolon as seperator. +You also need to copy /etc/nlvmi/nlvmi_sign.crt from the master server to the node. +You should also add the generated ssh key from the masters /home/nlvmi/.ssh/id_rsa.pub to the nodes /home/nlvmi/.ssh/authorized_keys.