Create and Configure Multiple Virtual Machines (Using VMware ESXi)
Introduction
Virtual Machines (VMs) allow multiple operating systems to run on a single physical server. Using VMware ESXi (Type 1 hypervisor), we can create and manage multiple VMs efficiently.
Prerequisites
Before creating VMs, ensure:
- ESXi is installed and running
- You can access ESXi via web browser (https://ESXi-IP)
- ISO files of operating systems (Windows/Linux) are uploaded
- Sufficient RAM, CPU, and storage available
Steps to Create Multiple Virtual Machines
Step 1: Login to ESXi Web Interface
- Open browser.
- Enter ESXi IP address.
- Login using root credentials.
Step 2: Upload ISO File
- Go to Storage → Select datastore.
- Click Datastore Browser.
- Upload OS ISO file (Windows/Linux).
Step 3: Create First Virtual Machine
- Click Virtual Machines → Create / Register VM.
- Select Create a new virtual machine.
- Enter VM name (Example: VM1).
- Select compatibility and Guest OS type.
- Select datastore for storage.
- Allocate hardware:
- CPU (e.g., 2 cores)
- RAM (e.g., 4 GB)
- Hard Disk (e.g., 40 GB)
- Network Adapter
- Attach ISO file to CD/DVD drive.
- Click Finish.
Step 4: Install Operating System
- Select VM → Click Power On.
- Open console.
- Follow OS installation steps.
Step 5: Create Additional Virtual Machines
Repeat the same process:
- VM2 (Example: Linux Server)
- VM3 (Example: Windows Server)
Ensure proper resource allocation so the host does not overload.
Configuration of Virtual Machines
After OS installation:
1) Configure Network
- Assign static or DHCP IP
- Check internet connectivity
- Configure DNS if needed
2) Install VMware Tools
- Improves performance
- Enables better graphics
- Allows time synchronization
3) Configure Resources
- Adjust CPU & RAM if required
- Set memory limits
- Enable auto-start if needed
4) Snapshots
- Create snapshots before major changes
- Useful for backup and rollback
Example VM Setup
| VM Name | OS | CPU | RAM | Storage |
|---|---|---|---|---|
| VM1 | Windows 10 | 2 Core | 4 GB | 40 GB |
| VM2 | Ubuntu | 2 Core | 2 GB | 25 GB |
| VM3 | Windows Server | 2 Core | 6 GB | 60 GB |
Best Practices
- Do not allocate all physical RAM to VMs
- Use separate networks for testing
- Regularly update VMs
- Monitor CPU and memory usage
Advantages of Multiple VMs
- Resource optimization
- Isolation between systems
- Easy testing and development
- Cost-effective infrastructure
Conclusion
Creating and configuring multiple virtual machines in VMware ESXi allows efficient use of hardware resources. By properly allocating CPU, RAM, and storage, multiple operating systems can run simultaneously on one physical server.
Viva Questions with Answers
1. What is a Virtual Machine?
A software-based computer that runs an operating system.
2. Which hypervisor is used in this example?
VMware ESXi.
3. Why should VMware Tools be installed?
To improve VM performance.
4. What is a snapshot?
A backup of VM state at a specific time.
5. Why should resources be allocated carefully?
To prevent host system overload.
