Virtual environment: Difference between revisions

From Testar
Jump to navigation Jump to search
Virtual Environment @ UPV: Add dhcp instructions
add IVVES users machines
Line 450: Line 450:
|10.102.0.11
|10.102.0.11
|testar-demo2011
|testar-demo2011
|
|
|
|
|
|-
|10.101.0.30
|Windows10 Stefano
|
|2
|8GB
|128GB
|
|
|
|
|
|
|
|
|-
|10.101.0.31
|Windows10 Innspire
|
|2
|8GB
|128GB
|
|
|
|
|
|
|
|
|-
|10.101.0.32
|Windows10 Praegus1
|
|2
|8GB
|128GB
|
|
|
|
|
|
|
|
|-
|10.101.0.33
|Windows10 Praegus2
|
|2
|8GB
|128GB
|
|
|
|
|
|
|
Line 549: Line 609:
|}
|}


=== DHCP address space ===
===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.
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.


Line 556: Line 616:
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.
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: ====
====MAC address mapping:====
00:50:56:01:0X:YZ maps to 10.101.0.XYZ on the routertestaq
00:50:56:01:0X:YZ maps to 10.101.0.XYZ on the routertestaq


Line 563: Line 623:
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.  
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: ====
====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.
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.
[[File:ESX-virtual network settings.jpg|left|300x300px]]
[[File:ESX-virtual network settings.jpg|left|300x300px]]

Revision as of 14:29, 2 October 2020

Virtual Environment @ UPV

OpenVPN Client configuration

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.


Virtual machines

10.101.0.1 routertestaq DNS CPU Mem HDD Remarks 10.102.0.1 routertestar DNS CPU Mem HDD Remarks
10.101.0.2 Windows10 Guy01 guy10.esx.testar.org 2 8GB 128GB 10.102.0.2 Windows10 Ad Mulders 01 admulders01.esx.testar.org 2 8GB 128GB shutdown, student graduated
10.101.0.3 Windows10 Carlo Sengers 01 carlosengers01.esx.testar.org 2 8GB 128GB 10.102.0.3 Windows 10 Ad Mulders 02 admulder02.esx.testar.org 2 8GB 128GB shutdown, student graduated
10.101.0.4 Windows10 Carlo Sengers 02 carlosengers02.esx.testar.org 2 8GB 128GB 10.102.0.4 windows 10 master windows10-master.esx.testar.org 2 8GB 128GB
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
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 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 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
10.101.0.9 Windows10 Carlo Sengers 03 carlosengers03.esx.testar.org 2 8GB 128GB 10.102.0.9 WIndows 10 Axel Bons 01 axelbons01.esx.testar.org 2 8GB 128GB
.. ..
10.101.0.15 Windows10 Nikolay 1 2 8GB 128GB 10.102.0.15 Windows10 Aaron 1 2 8GB 128GB
10.101.0.16
Windows10 Nikolay 6 2 8GB 128GB 2020-09-07 cloned from 10.101.0.15 10.102.0.16 Windows10 Aaron 2 2 8GB 128GB
10.101.0.17 Windows10 Nikolay 7 2 8GB 128GB 2020-08-07 cloned from 10.101.0.51 10.102.0.17 Windows10 Aaron 3 2 8GB 128GB
10.101.0.18 Windows10 Nikolay 8 2 8GB 128GB 2020-09-07 cloned from 10.0.101.50 10.102.0.18 Windows10 Aaron 4 2 8GB 128GB
10.101.0.19 Windows10 Nikolay 9 2 8GB 128GB 2020-09-07 cloned from 10.0.101.50
10.101.0.20 Windows10 Nikolay 10 4 8GB 128GB 2020-09-07 cloned from 10.0.101.50
10.101.0.21 Windows10 Nikolay 11 4 8GB 128GB 2020-09-07 cloned from 10.0.101.50
10.101.0.22 Windows10 Nikolay 12 4 8GB 128GB 2020-09-07 cloned from 10.0.101.50
10.101.0.23 Windows10 Nikolay 13 4 8GB 128GB 2020-09-07 cloned from 10.0.101.50
..
10.101.0.50 Windows10 Nikolay 2 2 8GB 128GB
10.101.0.51 Windows10 Nikolay 3 2 8GB 128GB
10.101.0.52 Windows10 Nikolay 4 2 8GB 128GB
10.101.0.53 Windows10 Nikolay 5 2 8GB 128GB
..
10.101.0.11 testar-demo1011 10.102.0.11 testar-demo2011
10.101.0.30 Windows10 Stefano 2 8GB 128GB
10.101.0.31 Windows10 Innspire 2 8GB 128GB
10.101.0.32 Windows10 Praegus1 2 8GB 128GB
10.101.0.33 Windows10 Praegus2 2 8GB 128GB
.. ..
10.101.0.20 Windows10 - Fernando
10.102.0.25 testar-demo2025


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 520GB

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.