Milestone Bare Metal 1 ‐ ESXi Setup - Jacob-Mayotte/SYS480 GitHub Wiki
Welcome to the SYS480 wiki!
Goal of the assignment:
💡You have been assigned your own physical server, located in a fully functional but tiny data center in Joyce. You will be assigned either the odd or even rack depending on your section. Your job will be to access and install ESXi 8x on this server and deploy basic services such as networking, firewall and a management virtual machine.
Install Steps:
- Connected to the IPMI address:
192.168.7.66
via google - Plugged-in USB with ESXI installed into my server (24) actual hardware here!
- Was able to return to my server virtually: Note credentials were obtained from an email that I received.
- Reset the server from the GUI
- Navigated to Remote Control and selected: iKVM/HTML5
- Enter the KVM shell, and select the USB, which has ESXi & Rufus installations.
- I went through the install and let it download (f11 while the system boots up will enter the boot menu):
- select UEFI Drive, the installer will load, scan for the largest drive available, and select,
ATA
as the drive to improve // set a password you will remember! - Skipped through the error/accepted it
- Selected install which prompted a new installation:
- Expected: Can connect through: 192.168.7.66
(Must set the IP's and move the ethernet cable to a new interface)
Configuration Steps // Accessing the ESXi web interface:
- Reboot the machine after removing the boot media (USB), press f2 & use the credentials that were set during the install! username will be
root
- Meander into
Configure mgmt network
, thennetwork adapters
, should see:
- De-select the
vmnic0
adapter (space bar) & select the connected adapter,vmnic1
:
- Press enter (this is: ok) then press escape, then
y
to restart the network. Expected results:
-
Unplug the IPMI interface if you want.
-
Now reenter
Configure mgmt network
&DNS config
and select the following:
- Now reenter
Configure mgmt network
&IPv4 Config
then set it staticly using theESXi address
:192.168.7.34
this is assigned in the network assignments!
- Expected results:
- Navigate to the static ESXi interface now:
root
!!! Use the creds that we set, username: Remove the IPMI interface connection & Configure any secondary datastores available
- To be honest I didn't remove the IPMI interface after hearing peers say they as well did not. I also did not see this done in any of the videos.
- I did not have any secondary datastores available:
ISOs Pulled and Database config:
- Selected datastore, then went to actions, change the name to:
datastore1-super24
-
Note: Created a directory named:
isos
-
Okay to retrieve the ISOs is easy... depending on location:
- If in the lab, you can simply press upload from the ESXi interface under storage, then navigate to the following file path and select the pfSense and Xubuntu ISOs to upload:
- If you are at home, connect via viewportal to Champlain's network, then using the following spreadsheet to find a Joyce PC to RDP into.
- Username: [email protected]
- password:
You wish pal!
// No but it is cyber.local pw
FINALLY, it should look like this:
Networking Config + Creating a virtual 480-WAN:
- Select
Networking
on the ESXi interface,virtual switch
--> then press:Add a standard virtual switch
:
- Delete the uplink, VYOS FW will deal w that as Devin said. IN OUR CASE IT IS GOING TO BE PFSENSE!
- Rename to: 480-WAN
- Create Port Group: Under
Networking
, go to port groups and add a new port group with the following config:
Creating + Configuring 480-fw:
- Via ESXi interface navigate to
Virtual Machines
then press:Create / Register a new VM
' - The
New Virtual Machine
wizard should populate the screen. The following is my config:
Select a name and guest OS:
Select Storage:
Customize Settings:
- PRESS:
Add Network Adapter
once, nothing will really happen but do it, then make the following changes:
Select the pFsense
ISO we downloaded earlier!
pFSense installer:
- Start our new VM we just made and let it boot. Go through the pfSense installer, select UFS, then entire disk, and lastly select finish, then reboot the machine
- No to vlans.
- Make the interfaces the following w/ addresses:
- We will finish this later once xubuntu mgmt is configured because the web version of pFsense is amazing!
Creating + Configuring 480-WAN xubuntu VM:
- Via ESXi interface navigate to
Virtual Machines
then press:Create / Register a new VM
' - The
New Virtual Machine
wizard should populate the screen. The following is my config:
- Select thin provision!
xubuntu Install:
- For this install, I just did the minimal version. I erased the disk then installed + created a account.
- Once on the computer I navigated to canvas and ran a
wget https://raw.githubusercontent.com/gmcyber/RangeControl/main/src/scripts/base-vms/ubuntu-desktop.sh
the xubuntu Script that was provided - to run the script navigate to its location and:./filename
- Before running the script though navigate to the web version of pFsense:
https://10.0.17.2/
- Go through the setup wizard, ideally your config will look something like this:
Note! This script does download remote chrome desktop. Once the computer is configured set this up.
- I then shut the machine down and changed the adapter to 480-WAN if it is not on this adapter already
- Once I started the VM I changed the hostname:
hostnamectl set-hostname xubuntu-mgmt
- Then I edited the wired connection:
- Note the search domain is what you set it on your fw.
Deliverables:
- Tracepath:
- IP Config:
- Successful browse to champlain: