Milestone 1 ESXi Setup - absentee-neptune/SYS-480 GitHub Wiki
My Network Assignments:
- Hypervisor:
super8
- IPMI:
192.168.3.33
- ESXi:
192.168.3.18
- vyos-480x eth0:
192.168.3.48
- vyos-480x eth1:
10.0.17.2
- xubuntu-wan:
10.0.17.100
IPMI and ESXi Configuration
Accessing the SuperMicro server over IPMI
- Navigate to the login screen by inputting
https://super-ipmi8.cyber.local
in the browser- Proceed even though the connection is not private
- Input credentials and login
Installing ESXi HyperVisor
- When logged in, under the tab Virtual Media select CD-ROM Image
- Pull up File Explorer to navigate to the
\\foster-synology.cyber.local
share host Devin created- Input the foster-synology credentials to continue
- Proceed through the 480-SHARE and select the VMware-VMvisor-Installer iso file and copy the path
- Back in the CD-ROM Image menu input the appropriate information into the text boxes
- Don't forget to add .iso at the end of the path file
- Save and then mount the image
- Under the tab Remote Control select iKVM/HTML5
- Select the link to launch it
- When launched this screen should pop up:
- Under the Power Control tab select Set Power Reset to restart the server
- When prompted press
F11
on the virtual keyboard to invoke the Boot Menu
- When prompted press
- Under the boot device menu select the Virtual CDROM option to launch the ESXi installer on the server
- When loaded press
enter
then pressF11
on the virtual keyboard to continue through the installer - A prompt will pop up to select a disk to install ESXi on, select the Micron disk then continue
- When prompted, then select to Install ESXi and overwrite the VMFS datastore, and continue
- When prompted create a root password, then continue
- Finally press
F11
on the virtual keyboard to install
- When loaded press
Configuring ESXi Hypervisor Network Settings
- When the server has fully restarted select
F2
on the virtual keyboard and enter the root password - Select the Configure Management Network option
- Select the IPv4 Configuration option
- Switch the setting to Static IP and set the appropriate IPv4 Address, then press
Enter
- Switch the setting to Static IP and set the appropriate IPv4 Address, then press
- Then select the DNS Configuration option
- The DNS servers are automatically picked up
- Change the hostname to
super8
, then pressEnter
- Select the IPv4 Configuration option
- Press
Esc
to exit the Configure Management Network menu and pressY
to apply the changes and restart the network
Logging in and Setting up VMware ESXi
- On a new tab in the browser navigate to
https://super8.cyber.local
- Proceed even though the connection is not private
- Input ESXi root credentials and login
- Select the Storage tab on the side
- Rename
datastore1
todatastore1-super8
- Select New Datastore
- Leave the default selection then press Next
- Name the new datastore
datastore2-super8
, then press Next - Leave the default selection then press Next
- Review the configurations then press Finish
- Rename
ISO, vSwitch, Port Groups, and VM Creation
Setting up datastore2-super8
- Open
datastore2-super8
and select Datastore Browser - Create a Directory and name it isos
- Making sure you are in the isos directory, select Upload to upload files
- Navigate to
\\foster-synology.cyber.local\480-SHARE\isos
- Upload the .iso files for vyOS and Xubuntu
- Navigate to
- Close the Datastore Browser when finished
Creating vSwitches
- Select the Network tab on the side, then select Virtual Switches
- Select Add standard virtual switch
- Name it
480-WAN
- Delete the Uplink, then press Add
- Name it
- Do the same creating the
480-LAN
vSwitch
Creating Port Groups
- Switch to the Port groups tab
- Select Add port group
- Name it
480-WAN
- Tie it to the
480-WAN
vSwitch, then press Add
- Name it
- Do the same creating the
480-LAN
port group, tieing it to the480-LAN
vSwitch
Creating a Virtual Machine
- Select the Virtual Machine tab on the side
- Select Create/Register VM
- Leave the default selection then press Next
- Select a name and guest OS
- Name the new VM
480-fw8
- Switch the Compatability to ESXi 6.5
- Select Linux for the Guest OS family
- Select Debian GNU/Linux 10 (64-bit) for the Guest OS version
- Press Next
- Name the new VM
- Select
datastore2-super8
as the Storage, then press Next - Customize the Settings to match this:
Make sure to change the Disk Provisioning for the Hard Disk to Thin Provisioning
and Select vyOS for the Datastore ISO file - Review the configurations then press Finish
Initial vyOS Configuration
- Power on the VM and open it
- Pick the first option when the main screen pops up to install vyOS
- After it is completed the login option should appear
- Both default username and password is
vyos
- The password will be changed
- Both default username and password is
- When logged in type:
install image
- Pick the defaults throughout
- Choose a strong password
- After the installation is completed type:
reboot
to restart the machine
Configuring vyOS to a State to be Cloned
- Log back in when the VM has restarted
- Delete the hw-id of eth0, eth1, and eth2, using the following commands:
configure
delete interfaces ethernet eth0 hw-id
delete interfaces ethernet eth1 hw-id
delete interfaces ethernet eth2 hw-id
commit
save
- Set eth0 to be DHCP, use the following commands:
set interfaces ethernet eth0 address dhcp
commit
save
- Power down the VM then take a Base snapshot
Xubuntu-WAN and vyOS Configuration
Configure vyOS Network
- Power on the machine and login
- Set eth0 to a Static IP Address, use the following commands:
configure
delete interfaces ethernet eth0 address
set interfaces ethernet eth0 address 192.168.3.48/24
commit
save
- Set eth1 to a Static IP Address, use the following commands:
set interfaces ethernet eth1 address 10.0.17.2/24
commit
save
- Set system gateway address, use the following commands:
set protocols static route 0.0.0.0/0 next-hop 192.168.3.250
commit
save
- Set DNS Servers, use the following commands:
set system name-server 192.168.4.4
set system name-server 192.168.4.5
commit
save
- Set NAT Source address, use the following commands:
set nat source rule 1 outbound-interface eth0
set nat source rule 1 source address 10.0.17.0/24
set nat source rule 1 translation address masquerade
commit
save
- Set DNS listener, use the following commands:
set service dns forwarding allow-from 10.0.17.0/24
set service dns forwarding listen-address 10.0.17.2
commit
save
- Power down the VM
Creating xubuntu-wan VM
- Select the Virtual Machine tab on the side
- Select Create/Register VM
- Leave the default selection then press Next
- Select a name and guest OS
- Name the new VM
xubuntu-wan
- Switch the Compatability to ESXi 6.5
- Select Linux for the Guest OS family
- Select Ubuntu Linux (64-bit) for the Guest OS version
- Press Next
- Name the new VM
- Select
datastore2-super8
as the Storage, then press Next - Customize the Settings to match this:
Make sure to change the Disk Provisioning for the Hard Disk to Thin Provisioning
and Select vyOS for the Datastore ISO file - Review the configurations then press Finish
Installing and Configuring Xubuntu
- While installing use the default settings
- Log in when the installation has finally completed and the VM has restarted
Configuring xubuntu-wan to a State to be Cloned
- When logged in open the terminal
- Install git
- In the terminal type
sudo apt-get install git
- In the terminal type
- Clone from GitHub repository
- In the terminal type
git clone https://github.com/gmcyber/480share
- Then navigate to it
- In the terminal type
- Run ubuntu-sealer.sh
chmod +x ubuntu-sealer.sh
./ubuntu-sealer.sh
- When finished:
cd ..
rm -rf 480share/
shutdown -h now
- When completely shutdown, take a Base Snapshot of the VM
Configure xubuntu-wan Network
- Change the network adapter setting from VM Network to 480-WAN
- Power on xubuntu-wan, and log in
- Change the network settings to the following, then save: