Practical 1: Implement VMware ESXi Server
Aim
Install VMware ESXi. Set its network address. Open the VMware Host Client in a browser, upload an installation ISO file, and create and run a virtual machine.
Theory
VMware ESXi is a Type-1 hypervisor. A hypervisor creates and runs virtual machines. Type 1 means it runs directly on the physical server.
ESXi shares the server's CPU (Central Processing Unit), memory, storage and network between VMs (Virtual Machines). Its main system software is called the VMkernel. You use the Host Client web page to manage the server.
The physical server is an empty hotel building. ESXi is the hotel management system installed in the building itself. The DCUI (Direct Console User Interface) is the small reception desk screen used once to set the hotel's address. The Host Client is the manager's web dashboard where you create rooms (VMs), and the datastore is the store room where room files and installation discs (ISOs) are kept.
| Component | Role |
|---|---|
| VMkernel | The hypervisor kernel: CPU scheduling, memory management (TPS (Transparent Page Sharing), ballooning, compression), storage and network stacks |
| DCUI – Direct Console User Interface | The yellow-and-grey text screen on the server's monitor for first-time setup (IP (Internet Protocol), DNS (Domain Name System), root password, troubleshooting) |
| VMware Host Client | A browser-based HTML5 page at https://<esxi-ip>/ui to manage one host |
| vCenter Server | Central management of many ESXi hosts (clusters, vMotion, HA (High Availability), DRS (Distributed Resource Scheduler)) – not needed for this practical |
| Datastore | A storage space (VMFS (Virtual Machine File System) on a local/SAN (Storage Area Network) disk, or NFS (Network File System)) that holds VM files and ISOs |
| vSwitch / Port group | A virtual switch that connects VMs to the real network cards; VM Network is the default port group |
| VMware Tools | Drivers and a helper program inside the guest for better speed and clean shutdown |
Files that make up a VM on a datastore
| File | Contents |
|---|---|
.vmx |
The VM's settings (CPU, RAM (Random Access Memory), devices) |
.vmdk / -flat.vmdk |
The virtual disk's description / its data |
.nvram |
BIOS (Basic Input/Output System)/UEFI (Unified Extensible Firmware Interface) settings |
.vswp |
Swap file created at power-on |
vmware.log |
The VM's log |
.vmsn / -delta.vmdk |
Snapshot state / changes since the snapshot |
A snapshot or checkpoint depends on the VM disks. It is not an independent backup.
Broadcom restored a free edition of ESXi 8 (vSphere Hypervisor) for non-production use. For labs, ESXi is commonly installed nested inside VMware Workstation (a VM inside a VM), because it needs certified hardware or a VM that passes hardware virtualization to the guest.
Requirements
| Item | Minimum |
|---|---|
| CPU | 64-bit x86 with ≥ 2 cores, Intel VT-x (Virtualization Technology for x86) or AMD-V (AMD Virtualization) enabled in BIOS (for nested: "Virtualize Intel VT-x/EPT (Extended Page Tables)" ticked) |
| RAM | 8 GB (ESXi 8) |
| Disk | 32 GB boot device + space for a datastore |
| NIC (Network Interface Card) | One supported Gigabit network card |
| Software | ESXi 8.0 ISO (VMware-VMvisor-Installer-8.0…x86_64.iso), a guest OS (Operating System) ISO (for example Ubuntu Server) |
| Client | A PC on the same network with a modern browser |
Procedure
Part A – Install ESXi
- Create a VM in VMware Workstation (Guest OS: VMware ESXi 8) with 2 vCPUs, 8 GB RAM, 40 GB disk, and tick Virtualize Intel VT-x/EPT or AMD-V/RVI (Rapid Virtualization Indexing) – or boot a physical server from the ESXi USB/ISO.
- Boot from the ESXi installer ISO. You see Loading ESXi installer… and then Welcome to the VMware ESXi Installation. Press Enter.
- Accept the licence (EULA (End User License Agreement)) with F11.
- Select a disk to install on – choose the local disk and press Enter.
- Select the keyboard layout (US Default).
- Type and confirm a root password (at least 7 characters with mixed types, for example
Vlp@Esxi2026). - Confirm the installation with F11. When it finishes, remove the disc and press Enter to reboot.
Part B – Set up the management network (DCUI)
- After the reboot, the DCUI shows the host and its DHCP (Dynamic Host Configuration Protocol) address, for example
https://192.168.56.20/ (DHCP). - Press F2 – Customize System/View Logs and log in as
root. - Go to Configure Management Network → IPv4 Configuration → choose Set static IPv4 address and enter:
- IPv4 address
192.168.56.20, subnet mask255.255.255.0, default gateway192.168.56.1.
- IPv4 address
- In DNS Configuration set the primary DNS server and the hostname
esxi01.lab.local. - Press Esc and answer Y to Apply changes and restart management network.
- (Optional) Troubleshooting Options → Enable ESXi Shell / SSH (Secure Shell) for command-line access.
- Use Test Management Network to ping the gateway and DNS.
A DHCP address can change after a restart – like a house number that keeps changing. A static IP means you always find the server at the same address.
Part C – Log in to the ESXi Host Client
- On the client PC open
https://192.168.56.20/uiand accept the self-signed certificate warning. - Log in as root with the password you set.
- Look around: Host → Manage (licensing, services, time), Storage → Datastores (
datastore1) and Networking (vSwitch0, port groupsVM NetworkandManagement Network).
Part D – Upload an ISO to the datastore
- Storage → datastore1 → Datastore browser → Create directory called
ISO. - Select the folder → Upload → choose
ubuntu-24.04-live-server-amd64.iso. Wait for the upload to finish.
Part E – Create a virtual machine
- Virtual Machines → Create / Register VM → Create a new virtual machine → Next.
- Name and guest OS: Name
ubuntu-vm01, Compatibility ESXi 8.0 virtual machine, Guest OS family Linux, version Ubuntu Linux (64-bit). - Select storage:
datastore1. - Customize settings:
- CPU 2, Memory 2048 MB, Hard disk 1 20 GB (Thin created – uses real space only as data is written),
- Network adapter 1 → VM Network, adapter type VMXNET 3,
- CD/DVD Drive 1 → Datastore ISO file →
ISO/ubuntu-24.04-live-server-amd64.iso, tick Connect at power on.
- Ready to complete → check everything → Finish.
- Select
ubuntu-vm01→ Power on → Console → Open browser console and install Ubuntu. - After installation, install VMware Tools inside the guest:
sudo apt install open-vm-tools.
Part F – Manage the VM
- Take a snapshot: Actions → Snapshots → Take snapshot (
fresh-install) – a "save point" you can go back to. - Edit settings to add memory or a second disk (hot-add where supported).
- Try Power → Shut down guest OS (polite shutdown, needs VMware Tools), Power off (like pulling the plug), Restart, Suspend (pause).
- Check the graphs: Monitor → Performance (CPU, memory).
Useful ESXi shell commands
esxcli system version get # ESXi version and build
esxcli network ip interface ipv4 get # management IPs
esxcli storage filesystem list # datastores
vim-cmd vmsvc/getallvms # list VMs with their IDs
vim-cmd vmsvc/power.on 1 # power on VM with ID 1
vim-cmd vmsvc/power.getstate 1
esxtop # real-time performance monitor
Virtual lab · VMware ESXi · 40 min
Install VMware ESXi and create a VM with the Host Client
Walk through the ESXi 8 text-mode installer, give the host a static management IP in the DCUI, log in to the ESXi Host Client from an admin PC, upload an ISO to datastore1, create a thin-provisioned Ubuntu VM, install it with VMware Tools and take a snapshot.
Output / Observations
Example output for the settings in this lesson:
- The ESXi DCUI shows the static management address
https://192.168.56.20/ (STATIC). - The Host Client shows host details: version 8.0, CPU, memory and
datastore1capacity. - The VM
ubuntu-vm01appears in Virtual Machines as Powered on, guest OS Ubuntu, with the IP address reported by VMware Tools. - The datastore browser shows the VM folder with
.vmx,.vmdk,.nvramandvmware.logfiles.
Conclusion
Check that the ESXi setup screen shows the static management address. Open the Host Client and find the VM listed as Powered on. Check its storage files and try the VM controls listed in the procedure.
Viva questions
- Why is ESXi called a bare-metal / Type-1 hypervisor? It installs directly on the hardware with no host OS underneath.
- What is the DCUI? Which key opens the settings menu? The console setup screen on the server; F2.
- What is the VMkernel? ESXi's own small kernel that schedules CPU, memory, storage and network for VMs.
- What is a datastore? Name two datastore types. A storage container for VM files and ISOs – VMFS and NFS.
- Differentiate thin and thick provisioning. Thin uses real space only as data is written; thick reserves the full size at creation.
- What is the difference between Shut down guest OS and Power off? Shut down asks the guest to close cleanly (needs VMware Tools); power off cuts power immediately.
- What are VMware Tools and why are they installed? Drivers and an agent inside the guest – better performance, clean shutdown, IP reporting.
- What is the role of vCenter Server? Is it required for a single host? It manages many hosts (clusters, vMotion, HA); not required for one host.
- Name the files that make up a VM and their purpose.
.vmxsettings,.vmdkdisk,.nvramBIOS,.vswpswap,vmware.loglog. - What are vSwitches and port groups? Software switches connecting VMs to physical NICs; port groups are named groups of ports with the same settings (for example
VM Network).
Practise this topic
Hands-on virtual lab
Apply what you just read in a realistic, guided simulation. Free with a verified account.
Create a free account to track your progress and unlock virtual labs.