VMWare: Install Ubuntu 24.04
Below is a comprehensive, step‐by‐step guide for performingdeploying a clean installation ofan Ubuntu 24.04 headless server as a headlessvirtual server.machine in VMware vCenter (version 7 or 8). This guidetutorial covers everything from preparationobtaining the ISO and uploading it to post-installationyour configurationdatastore, withoutcreating a desktopnew environment.VM, Note: A clean installation will erase existing data onperforming the targetinstallation, drive.and Becarrying sureout tobasic backpost-deployment configuration.
Important:
- Ensure you have administrative privileges in vCenter.
- Back up any important data before
proceeding.making changes.- A headless server does not include a desktop GUI.
1. Pre-InstallationDeployment Preparations
a. Verify System Requirements
Processor:vCenter Access:2VMwareGHzvCenterdual-core7/8orenvironmentbetterwith rights to create VMs.MemoryHardware(RAM):Resources:MinimumEnsure4theGBhost/cluster(morehasrecommendedenough CPU, RAM, and storage forserveryourworkloads)VM.DiskISOSpace:Image:Minimum 20 GB (adjust based on your intended server usage)Network:Ethernet or Wi-Fi adapter (wired is preferred for servers)Console Access:Either direct physical access or remote (via IPMI/KVM) since no GUI will be available
b. Backup Your Data
Warning:A clean installation willerase all dataon the chosen drive. Back up important files and configurations.
2. Download the Ubuntu 24.04 Server ISO
Visit the Official Ubuntu Website:Navigate tofrom Ubuntu Server Downloads.-
Log In to vCenter:
Open the vSphere Client and log in to your vCenter instance. -
Select
Ubuntua24.04 LTS:Datastore:ClickNavigateonto Storage and choose theUbuntudatastore24.04whereLTSyou’dServerlikedownloadtobutton.store the ISO. -
DownloadUpload the ISO:Save the ISO file to your computer. Verify the Download (Optional but Recommended):- Right-click the datastore and select
OnUploadLinux/macOS:Files.
- Right-click the datastore and select
- Browse for the downloaded
file and upload it.sha256sum path/to/ubuntu-24.04-live-server-amd64.iso On Windows:Use a tool such asQuickHashto verifyNote thechecksumdatastoreprovidedpathonforthelaterUbuntu website.use.-
DownloadRight-Click Host/Cluster:
In the vSphere Client inventory, right-click your desired host or cluster andInstallselectRufus:New Virtual MachineVisitrufus.ieand download the latest version.. -
InsertChoose Creation Method:- Select Create a
USBnewDrive:virtual machineEnsureit’and click Next.
- Select Create a
-
Name and Location:
- Name: Enter a meaningful name (e.g.,
Ubuntu24-Server
). - Folder/Resource Pool: Choose the appropriate folder or resource pool.
- Name: Enter a meaningful name (e.g.,
-
Select a Compute Resource:
- Choose the host or cluster where the VM will run.
-
Select a Storage:
- Choose the datastore where the VM’s virtual disk will reside.
-
Compatibility & Guest OS:
- Compatibility: Use the default or choose one that fits your environment.
- Guest OS:
- Family: Linux
- Version: Ubuntu Linux (64-bit)
Note: Ubuntu 24.04 may not be explicitly listed; select the closest match (Ubuntu 64-bit).
-
Configure Virtual Hardware:
- CPU: Allocate at least 1–2 vCPUs.
- Memory: Allocate at least 2 GB (
allmoredataif your workloads require it). - Disk: Create a virtual disk of 20 GB or more (adjust based on
theyourUSB will be erased)needs). - Network:
OpenAddRufusa network adapter (VMXNET3 is recommended) andConfigure:ensure it’s connected. - CD/DVD Drive:
Device:yourDatastoreUSBISOdrive.File.BootBrowseselection:toClickthe“SELECT”locationandwherechooseyou uploaded the Ubuntu 24.04ServerISO.PartitionCheckscheme:theChooseoptionGPTConnect At Power Onfor UEFI systems (most modern PCs).ChooseMBRif you need BIOS/Legacy support.
File System:Typically “FAT32” (default).
-
StartFinish theProcess:Wizard:ClickReview“START”your settings andconfirmclickanyFinishwarnings. Rufus will nowto createyour bootable USB drive.
Download Etcher:Go tobalenaEtcherand downloadtheversion for your OS.VM.Install and Run Etcher:Select the Ubuntu 24.04 Server ISO.Choose your USB drive.Click “Flash!” and wait for the process to finish.
Identify the USB Drive:lsblkWrite the ISO to the USB:Replace/dev/sdXwith your USB device (do not include a partition number, e.g., use/dev/sdbinstead of/dev/sdb1):sudo dd if=/path/to/ubuntu-24.04-live-server-amd64.iso of=/dev/sdX bs=4M status=progress conv=fdatasync- Start the VM:
Right-click the newly created VM and select Power On. - Launch Console:
Open the VM console from theUSBvSphereDriveClient to interact with the installation. -
The installation wizard is text-basedLanguage andwill guide you through the setup. Use the keyboard (arrow keys, Tab, and Enter) to navigate the menus.Keyboard:a. Select Your LanguageScreen:Select“Welcome to Ubuntu Server Installer”Action:Language: Choose your preferredlanguagelanguage.- Keyboard
pressLayout:Enter.Confirm or adjust the layout.
andb. Select Your Keyboard LayoutScreen:“Keyboard Configuration”-
Action:Choose your layout (often “English (US)” or your regional setting) and pressEnter.
c. Configure the NetworkScreen:“NetworkConnections”Action:Configuration:- The installer will attempt to configure networking via DHCP.
- If
usingyou need a staticIP or additional network interfaces,IP, follow the prompts to setupit manually. Tip:Ensure your network connection is active so that installation can download updates and packages if needed.
-
d.Storage
Configure the Proxy (If Applicable)Configuration:Screen:Partitioning“HTTP Proxy”Action:Enter your proxy settings if required, or leave blank if not using one.
e. Choose a Mirror for Package UpdatesScreen:“Ubuntu Archive Mirror”Action:Select the appropriate mirror (usually detected automatically) and pressEnter.
f. Storage ConfigurationScreen:“Partition Disks”- Options:
- Choose Guided – use entire
disk:diskForfora fully automatic partitioning schemesimplicity (this will eraseallanydata)data on the virtual disk). - Optionally, choose
Manual:ManualForifcustomyoupartitioningwish(fortoexample,customizecreating separate partitions for/,/var, or swap).partitions.
- Choose Guided – use entire
Action:EFI Partition:Choose your preferred option, confirm any warnings, and proceed.- For
UEFIUEFI-basedsystems,VMs, ensure an EFI System Partition is created (≈usually around 300–500 MB, formatted as FAT32)is created if not already present. Set up the root partition (/) (at least 10–20 GB recommended).Optionally configure a swap area (or use a swap file post-installation).
- For
g. -
SetupUser and SSH Setup:
Screen:Profile“Who Are You?”Action:Setup:- Enter your full name,
ausername, and a secure password. Configure
whether to enable SSH access during installation (highly recommended for headless servers).- Enter your full name,
Tip:SSH Server:Many- When
installersprompted,offerchoose to install and enable the OpenSSHserverserver.automatically—confirmThisthisistoessentialallowfor remotemanagement.management of your headless server.
server- When
h. -
SelectionFinalizing
(Optional)Installation:Screen:“Featured Server Snaps” or “Additional Software”Action:You might have options to install services like LXD, Docker, or other server applications.Select the ones you need, or skip if you plan to install them later.
i. Finalize the InstallationScreen:“Summary”Action:- The installer will
nowcopy files and configureyourthe system. Thisprocessmay take several minutes.
7. Finishing Up -
InstallationCompleteComplete:Installation:- Once the
processinstallation isfinished,complete, you’ll be prompted to remove the installation media. - In
RestartvCenter,Your Server:Removeedit theUSBVM’s settings to disconnect the ISO from the CD/DVD drive.PressEnterto reboot.
First Boot:Your server will boot into a command-line login prompt.Log in usingReboot theusername and password you created during installation.VM.
- Once the
- Log In
viato Your New Server- Console or SSH:
If you enabledUse theSSHVMserver,consoleyou can nowor connectremotely.via SSH (if configured during installation) using:ssh yourusername@<vm_ip_address>
b. Update and Upgrade Packages
- Update Package
Lists and Upgrade Packages:Lists:sudo apt update
- Upgrade Packages:
sudo apt upgrade -y
c. Secure Your Server
CleanDisableUpRootUnusedSSHPackages:Login (if not already done):sudo
aptnanoautoremove -y
b. Secure Remote AccessSSH Configuration:The server installer should have set up SSH, but you can further harden it:Edit/etc/ssh/sshd_config
- Find the line
PermitRootLogin
and set it todisableno
. - Save and
considerexitchanging(Ctrl+X,thethendefaultY, then Enter).
root login- Find the line
- Restart SSH
port. Restart SSH:Service:
sudo systemctl restart ssh
- Console or SSH:
- Configure the Firewall
SetupwithUFW:UFWEnableAllowUFW:SSH Connections:sudo ufw allow ssh
- If you changed the SSH port, allow that port instead (e.g.,
sudo ufw allow 2222/tcp
).
- If you changed the SSH port, allow that port instead (e.g.,
- Enable UFW:
sudo ufw enable
- Check Firewall Status:
sudo ufw status verbose
InstallForutilitiesbasicandsystemtoolsadministration,thatinstallarepackagescommonlysuchused:as:sudo apt install build-essential curl git vim htop -y
Note:Since this is a headless server, you won’t install any desktop environments.Use commands likeip aorifconfigto check your network settings.For advanced networking, edit configuration files in/etc/netplan/(Ubuntu’s default on recent releases) and apply changes using:sudo netplan applyConsider installing and configuring backup tools (e.g.,rsnapshotorborgbackup) to safeguard your server data.Configure a regular backup schedule via cron jobs.Documentation:Snapshots:
UseFamiliarizevCenter’syourselfsnapshotwithfeatureUbuntutoServercreatedocumentationaforrestoreadvancedpointconfigurationafterandconfiguringtroubleshooting.your server.Community:Monitoring & Backups:
ConsiderUbuntu Forums and Ask Ubuntu are excellent resources for support and tips.Monitoring:Setsetting upsystemmonitoring tools(e.g.,andnetdata,regularnagios, orprometheus)backups tokeepsafeguardanyoureyeVM.- Further Customization:
Explore additional packages and configurations based onserveryourhealth.server’s intended role.
b. Upload the Ubuntu ISO to a Datastore
3.2. Create a BootableNew USBVirtual DriveMachine in vCenter
a. UsingLaunch Rufusthe (Windows)New VM Wizard
b. Configure VM Settings
b. Using balenaEtcher (macOS/Linux/Windows)
c. Using the dd
Command (Linux/macOS)
Warning:The
ddcommand is powerful. Ensure you’ve selected the correct drive to avoid data loss.
4.3. Booting and Installing Ubuntu 24.04 Server
a. Power On the VM and Open the Console
b. Boot from the ISO and Begin Installation
5. Starting the Ubuntu Server Installation
6.c. Follow the ServerText-Based Installation Wizard
8.4. Post-Installation Configuration
a. Update the System
d.
c.e. Install Essential Server PackagesTools
d. Configure Networking (If Needed)
e. Set Up Automated Backups
9.5. Final Thoughts
Congratulations! Your Ubuntu 24.04 headless server is now installed,deployed updated,on VMware vCenter and configuredready for remotefurther managementcustomization and furtherapplication customization.deployment. Enjoy your new virtual server environment!