Milestone 7 ‐ VMWare Review Skills Recap - jacobwilliams100/sys-350 GitHub Wiki

1. Add 2 new networks on your host- DMZ and MGMT

Creating VSwitches

image

and associated Port Groups

image

shut down pfsense firewall and add two network adapters, for 350-dmz and 350-mgmt

image

Start it back up and see if the new adapters are available

image

Once you have done this, it is easier to configure the interfaces from the pfsense web utility.

image

image

don't forget to save and apply!

You should now be able to see the interfaces on the CLI

image

2. Clone Rocky Template to 2 new servers: web01-yourname and web02-yourname

We will operate using vsphere now. Create a new Rocky8 server (web1-jake) by cloning from the template we made in an earlier lab

You can set interface using specifications

image

don't forget to put it on the dmz

image

spin it up, quick ping to gateway

image

whipping up a quick apache server

image

image

We will create a second server web2-jake by cloning the first one since its already mostly set up.

image

This stuff needs to be different

image

start up the machine and make sure its functioning like the other one

image

we need to make a quick modification to index.html

image

3. Clone Ubuntu Template for 2 new servers: Backup01-yourname and Monitor01-yourname

My template was too big so I had to make a new smaller Ubuntu VM (backup) and clone it to make monitor. But we can still use the specification created in the previous lab

image

image

basic setup...

image

image

image

Some quick tests

image

Now we can save this setup as a template

image

and we will make monitor1-jake from this template plus the specification

image

image

image

We will need to set static IPv4 for this VM manually because it was originally intended to be used with DHCP. Not a big deal.

image

Running some tests

image

4. Configure Firewall settings

Both DMZ and MGMT have been given internet access as part of setup

image

image

But we will try instead to professionalize these rules into a fully realized policy

LAN Rules

image

DMZ Rules

image

MGMT Rules

image

5. Users/Roles

We do this mostly on DC1-jake

create webdev and sysadmin groups

image

add two sample users to each

image

and add them to the corresponding groups

image

Back on vcenter...

make a webdev folder (contains web1 and web2)

and a sysadmin folder (contains backup1 and monitor1)

image

Add webdev AD group as Virtual Machine Power User to the webdev folder

image

and sysadmin AD group as Virtual Machine Power User to both folders.

image

Now try logging in as webdev1 to see what is accessible

image

As expected, webdevs can only access the DMZ webservers

try again with sysadmin1

image

It is working as expected

Reflection

The individual listed steps of this lab were all pretty straightforward and I didn't have much trouble with them because they were mostly things I've done before. However, I encountered two major problems that really slowed me down. While playing with my pyvmomi code over the weekend, I accidentally shut down all of my VMs at the same time, including my vcenter host. After starting back up, it wasn't working right, and couldn't connect to any VMs. I did a number of things including manually restarting the vcenter services with service-control --start --all however some services remained down. I spent a long time on this and eventually restored full functionality to vcenter but it became very unreliable and everything would disconnect literally every few seconds, so simple actions like starting a new VM would take upwards of 30 minutes. Also, I ran into really bad issues with storage space. My ESXi host only has 1 disk and by now it was nearly full. Even after deleting some old stuff, I still didn't have enough space to deploy Ubuntu VMs from the template I had created. Because you can't shrink a template, I needed to make a new (smaller) Ubuntu template from scratch, which added a lot of time especially combined with the ultra-slow vcenter operations.