Skip to main content

Command Palette

Search for a command to run...

Day 3 โ€“ Setting Up Virtual Machines Manually

Installing and configuring Ubuntu Server and CentOS on VirtualBox, then connecting via SSH

Published
โ€ข2 min read
Day 3 โ€“ Setting Up Virtual Machines Manually

Objective

Today is my third day of learning DevOps, and I focused on setting up virtual machines manually and accessing them remotely via SSH. I used VirtualBox to install both Ubuntu Server 22.04 and CentOS 7, which helped me understand more about Linux system setup and networking.


๐Ÿงฑ What I Did

1. Downloaded ISO Images

2. Created Virtual Machines in VirtualBox

  • Allocated 2 GB RAM and 1-2 CPUs

  • Created a virtual hard disk (20 GB)

  • Mounted the ISO

  • Installed the OS manually (partitioning, hostname, user setup)

3. Enabled Networking

  • Set network adapter to Bridged Adapter for each VM

  • Ensured the VM receives an IP address via DHCP

4. Installed OpenSSH Server

Ubuntu:

SSH is usually installed by default. If not:

sudo apt update
sudo apt install openssh-server

FOR CentOS:

bashCopyEditsudo yum install openssh-server
sudo systemctl enable sshd --now

5. Found IP Address of VM

ip a

Or used:

ip addr show

6. Connected via SSH from my host machine

ssh username@ip-address

๐Ÿ› ๏ธ Problems I Faced & Fixed

  • ๐Ÿ” Couldn't SSH into CentOS: SSH service was not running. Fixed it with:

      bashCopyEditsudo systemctl enable sshd --now
    
  • ๐ŸŒ No IP Address on CentOS: Used nmtui to activate the network interface.


๐Ÿ’ก Key Takeaways

  • Manual VM installation improves understanding of OS internals.

  • SSH is a critical tool for remote management.

  • Networking setup (bridged/NAT + port forwarding) is crucial when working with VMs.


๐Ÿ”ฎ What's Next

Tomorrow, I plan to explore shared folder setup, hostname configuration, or maybe even automate VM provisioning using Vagrant.

DevOps overview as a beginner

Part 3 of 50

Sharing my journey of learning DevOps as a beginner โ€” covering essential tools, cloud setup, CI/CD, Docker, monitoring, and more, step by step with practical examples.

Up next

Day 4 โ€“ Using Vagrant and VirtualBox to Automate virtual machine setup

Automating virtual machine setup with Vagrant and VirtualBox on Windows