Virtual environment: Difference between revisions

From Testar
Jump to navigation Jump to search
m Virtual machines: added dns names aaron
m Restructure paragraphs
Line 48: Line 48:


</graphviz>
</graphviz>
-->
--><br />
===OpenVPN Client configuration===
On the <code>routertestar.dsic.upv.es</code> and <code>routertestaq.dsic.upv.es</code> an OpenVPN server is installed. Users can connect to one of the routers via OpenVPN. A user certificate needs to be created and added to an OpenVPN client configuration. To create a OpenVPN client configuration please follow the following steps:
<br />
 
#Log into <code>routertestar.dsic.upv.es</code>
#Become <code>root</code> user
#Read the OpenVPN CA password in <code>/root/testar-ca-key-password.txt</code>
#Run the following command: <code>openvpn-users.sh</code>
#Follow the instructions of the script and give the CA password when asked. 2 OpenVPN configuration files will be created and the certificates will be distibuted to the 2 testar routers
#Copy the generated OpenVPN configurations files from the /root/ directory to your own computer with scp/winscp
#Distribute the OpenVPN configuration files to the end user, so they can import this in their OpenVPN client.
 
<br />


===Virtual machines===
===Virtual machines===
Line 814: Line 801:
|
|
|
|
|}
|}<br />
===OpenVPN Client certificate creation===
On the <code>routertestar.dsic.upv.es</code> and <code>routertestaq.dsic.upv.es</code> an OpenVPN server is installed. Users can connect to one of the routers via OpenVPN. A user certificate needs to be created and added to an OpenVPN client configuration. To create a OpenVPN client configuration please follow the following steps:
<br />
 
#Log into <code>routertestar.dsic.upv.es</code>
#Become <code>root</code> user
#Read the OpenVPN CA password in <code>/root/testar-ca-key-password.txt</code>
#Run the following command: <code>openvpn-users.sh</code>
#Follow the instructions of the script and give the CA password when asked. 2 OpenVPN configuration files will be created and the certificates will be distibuted to the 2 testar routers
#Copy the generated OpenVPN configurations files from the /root/ directory to your own computer with scp/winscp
#Distribute the OpenVPN configuration files to the end user, so they can import this in their OpenVPN client.
 
<br />


===DHCP address space===
===DHCP address space===

Revision as of 16:47, 4 October 2020

Virtual Environment @ UPV


Virtual machines

10.101.0.1 routertestaq DNS CPU Mem HDD MAC dhcp Remarks 10.102.0.1 routertestar DNS CPU Mem HDD MAC dhcp Remarks
10.101.0.2 Windows10 Guy01 guy10.esx.testar.org 2 8GB 128GB 00:0C:29:49:BD:79 10.102.0.2 Windows10 Ad Mulders 01 admulders01.esx.testar.org 2 8GB 128GB OK shutdown, student graduated
10.101.0.3 Windows10 Carlo Sengers 01 carlosengers01.esx.testar.org 2 8GB 128GB OK 10.102.0.3 Windows 10 Ad Mulders 02 admulder02.esx.testar.org 2 8GB 128GB OK shutdown, student graduated
10.101.0.4 Windows10 Carlo Sengers 02 carlosengers02.esx.testar.org 2 8GB 128GB 00:0C:29:78:D8:74 10.102.0.4 windows 10 master windows10-master.esx.testar.org 2 8GB 128GB OK
10.101.0.5 Windows 10 Ad Mulders 05 admulders05.esx.testar.org 2 8GB 128GB shutdown, student graduated 10.102.0.5 buhos buhos.esx.testar.org 4 8GB 128GB OK
10.101.0.6 Windows 10 Ad Mulders 06 admulders06.esx.testar.org 2 8GB 128GB shutdown, student graduated 10.102.0.6 Windows 10 Ad Mulders 03 admulders03.esx.testar.org 2 8GB 128GB OK shutdown, student graduated
10.101.0.7 Windows 10 Ad Mulders 07 admulders07.esx.testar.org 2 8GB 128GB shutdown, student graduated 10.102.0.7 Windows 10 Ad Mulders 04 admulders04.esx.testar.org 2 8GB 128GB OK shutdown, student graduated
10.101.0.8 Windows 10 Ad Mulders 08 admulders08.esx.testar.org 2 8GB 128GB shutdown, student graduated 10.102.0.8 Windows 10 Tanja Vos 2 8GB 128GB OK
10.101.0.9 Windows10 Carlo Sengers 03 carlosengers03.esx.testar.org 2 8GB 128GB OK 10.102.0.9 WIndows 10 Axel Bons 01 axelbons01.esx.testar.org 2 8GB 128GB OK
10.101.0.10 10.102.0.10
10.101.0.11 testar-demo1011 2 8GB 128GB OK 10.102.0.11 Windows10 Olivia 2 8GB 128GB OK
10.101.0.12 rdp-12 2 8GB 128GB OK shutdown 10.102.0.12 Windows 10 Amit Dua 2 8GB 128GB OK
10.101.0.13 rdp-13 2 8GB 128GB OK shutdown 10.102.0.13 windows 10 saltstack test client 2 8GB 128GB OK
10.101.0.14 rdp-14 2 8GB 128GB OK shutdown 10.102.0.14 Windows10 Christiaan de Ridder 2 8GB 128GB OK
10.101.0.15 Windows10 Nikolay 1 2 8GB 128GB OK 10.102.0.15 Windows10 Aaron 2015 aaron2015.esx.testar.org 4 8GB 400GB+512GB OK
10.101.0.16
Windows10 Nikolay 6 2 8GB 128GB OK 2020-09-07 cloned from 10.101.0.15 10.102.0.16 Windows10 Aaron 2016 aaron2016.esx.testar.org 4 8GB 400GB+512GB OK
10.101.0.17 Windows10 Nikolay 7 2 8GB 128GB OK 2020-08-07 cloned from 10.101.0.51 10.102.0.17 Windows10 Aaron 2017 aaron2017.esx.testar.org 4 8GB 400GB+512GB OK
10.101.0.18 Windows10 Nikolay 8 2 8GB 128GB OK 2020-09-07 cloned from 10.0.101.50 10.102.0.18 Windows10 Aaron 2018 aaron2018.esx.testar.org 4 8GB 400GB+512GB OK
10.101.0.19 Windows10 Nikolay 9 2 8GB 128GB OK 2020-09-07 cloned from 10.0.101.50 10.102.0.19 Windows10 Aaron 2019 aaron2019.esx.testar.org 4 8GB 400GB+512GB OK 2020-10-03 cloned from 10.102.0.18
10.101.0.20 Windows10 Nikolay 10 4 8GB 128GB OK 2020-09-07 cloned from 10.0.101.50 10.102.0.20 Windows10 Aaron 2020 aaron2020.esx.testar.org 4 8GB 400GB+512GB OK 2020-10-03 cloned from 10.102.0.18
10.101.0.21 Windows10 Nikolay 11 4 8GB 128GB OK 2020-09-07 cloned from 10.0.101.50 10.102.0.21 Windows10 Aaron 2021 aaron2021.esx.testar.org 4 8GB 400GB+512GB OK 2020-10-03 cloned from 10.102.0.18
10.101.0.22 Windows10 Nikolay 12 4 8GB 128GB OK 2020-09-07 cloned from 10.0.101.50 10.102.0.22 Windows10 Aaron 2022 aaron2022.esx.testar.org 4 8GB 400GB+512GB OK 2020-10-03 cloned from 10.102.0.18
10.101.0.23 Windows10 Nikolay 13 4 8GB 128GB OK 2020-09-07 cloned from 10.0.101.50 10.102.0.23 Windows10 Aaron 2023 aaron2023.esx.testar.org 4 8GB 400GB+512GB OK 2020-10-03 cloned from 10.102.0.18
10.101.0.24 Windows10 Aaron 1024 aaron1024.esx.testar.org 4 8GB 400GB+512GB OK 2020-10-03 cloned from 10.102.0.18 10.102.0.24 Windows10 Aaron 2024 aaron2024.esx.testar.org 4 8GB 400GB+512GB OK 2020-10-03 cloned from 10.102.0.18
10.101.0.25 Windows10 Aaron 1025 aaron1025.esx.testar.org 4 8GB 400GB+512GB OK 2020-10-03 cloned from 10.102.0.18 10.102.0.25
10.101.0.26 Windows10 Aaron 1026 aaron1026.esx.testar.org 4 8GB 400GB+512GB OK 2020-10-03 cloned from 10.102.0.18 10.102.0.26
10.101.0.27 Windows10 Aaron 1027 aaron1027.esx.testar.org 4 8GB 400GB+512GB OK 2020-10-03 cloned from 10.102.0.18 10.102.0.27
10.101.0.28 Windows10 Aaron 1028 aaron1028.esx.testar.org 4 8GB 400GB+512GB OK 2020-10-03 cloned from 10.102.0.18 10.102.0.28
10.101.0.29 Windows10 Aaron 1029 aaron1029.esx.testar.org 4 8GB 400GB+512GB OK 2020-10-03 cloned from 10.102.0.18 10.102.0.29
10.101.0.30 Windows10 Stefano 2 8GB 128GB OK 10.102.0.30
10.101.0.31 Windows10 Innspire 2 8GB 128GB OK 10.102.0.31
10.101.0.32 Windows10 Praegus1 2 8GB 128GB OK 10.102.0.32
10.101.0.33 Windows10 Praegus2 2 8GB 128GB OK 10.102.0.33
.. ..
10.101.0.50 Windows10 Nikolay 2 2 8GB 128GB OK
10.101.0.51 Windows10 Nikolay 3 2 8GB 128GB OK
10.101.0.52 Windows10 Nikolay 4 2 8GB 128GB OK
10.101.0.53 Windows10 Nikolay 5 2 8GB 128GB 00:0C:29:44:A0:27
..
10.101.0.20 Windows10 - Fernando
10.101.0.247 Windows10

Fernando

..
10.101.0.253 saltstack host salt.esx.testar.org 4 4GB 16GB
10.101.0.254 backuping host testaq
qbackup.esx.testar.org 4 4GB 16GB+512GB 10.102.0.254 backuping host testar
rbackup.esx.testar.org 4 4GB 16GB+512GB


OpenVPN Client certificate creation

On the routertestar.dsic.upv.es and routertestaq.dsic.upv.es an OpenVPN server is installed. Users can connect to one of the routers via OpenVPN. A user certificate needs to be created and added to an OpenVPN client configuration. To create a OpenVPN client configuration please follow the following steps:

  1. Log into routertestar.dsic.upv.es
  2. Become root user
  3. Read the OpenVPN CA password in /root/testar-ca-key-password.txt
  4. Run the following command: openvpn-users.sh
  5. Follow the instructions of the script and give the CA password when asked. 2 OpenVPN configuration files will be created and the certificates will be distibuted to the 2 testar routers
  6. Copy the generated OpenVPN configurations files from the /root/ directory to your own computer with scp/winscp
  7. Distribute the OpenVPN configuration files to the end user, so they can import this in their OpenVPN client.


DHCP address space

Both the routertestaq and routertestar have a DHCP server (DNSMASQ) running that will give a IP to a virtual machine according to the mac address of the virtual machine.

The mac address needs to be set to manual in the network interface settings of the virtual machine and the mac address needs to start with: 00:50:56:UV:WX:YZ where UV::WX:XY has to be set according to the mapping below. The MAC address can only be changed when the virtual machine is switched off.

In the DHCP server the mac addresses are reserved for the ranges from 10.101.0.2 until 10.101.0.200 on the routertestaq server and from 10.102.0.2 until10.102.0.200 for the routertestar server.

MAC address mapping:

00:50:56:01:0X:YZ maps to 10.101.0.XYZ on the routertestaq

00:50:56:02:0X:YZ maps to 10.102.0.XYZ on the routertestar

When the last octet is below 10 the X and Y will be set to 0. When the last octect is below 100 only the X will be set to 0.

Example:

Below you can find how the manual MAC address (00:50:56:01:00:06) is set for a virtual machine that will get the 10.101.0.6 as IP address from the DHCP. The the octet is 6 so the X=0, Y=0 and Z=6.