πŸš€ Week 2 of My DevOps Journey: Virtual Machines & Automation

This week was all about virtualization and automation β€” diving into the world of Virtual Machines (VMs) and learning how to set them up manually and automatically using Chocolatey, Vagrant, VirtualBox, Git Bash, and SSH.


πŸ” What I Learned This Week:

  1. Understanding Virtual Machines and why they're crucial for DevOps.

  2. Manual setup of VMs using VirtualBox:

    • Installed CentOS Stream 9 and Ubuntu 24.04 LTS (Jellyfish Server).
  3. Automation using:

    • Chocolatey – to install packages in Windows.

    • Vagrant – to create and configure VMs quickly.

    • Vagrant boxes – prepackaged development environments.

    • Git Bash – to manage, create, and delete VMs through the CLI.


🧠 Resources That Helped Me:


πŸ› οΈ Tasks Completed:

  • βœ”οΈ Installed Chocolatey, Vagrant, and VirtualBox.

  • βœ”οΈ Manually created CentOS and Ubuntu VMs in VirtualBox.

  • βœ”οΈ Used Vagrant boxes to automatically spin up and provision VMs.

  • βœ”οΈ Managed VMs via Git Bash using SSH.

  • βœ”οΈ Practiced using commands like vagrant init, vagrant up, vagrant halt, vagrant destroy.


⚠️ Common Errors & Solutions:

❌ ErrorπŸ’‘ Solution
vagrant: command not foundRun choco install vagrant, restart Git Bash, and ensure it's in your PATH.
Vagrant can't find VirtualBoxEnsure VirtualBox is properly installed and added to system environment variables.
SSH permission deniedDelete the .vagrant directory in your project and try vagrant up again.
VM not booting properlyCheck RAM & storage allocation; use the right ISO file or Vagrant box.
Git Bash can't run VagrantUse Git Bash as Admin, and ensure Chocolatey, Vagrant, and VirtualBox are in the PATH.

🎯 Biggest Takeaway:

DevOps isn't just about tools β€” it's about automating everything. Manual setup teaches the β€œhow,” automation teaches the β€œwhy.”

Let’s connect if you’re also learning DevOps, or working with Vagrant & virtual machines!

#DevOps #VirtualMachines #Vagrant #Chocolatey #Ubuntu #CentOS #LearningInPublic #100DaysOfDevOps #Automation #TechJourney #Beginners #VirtualBox

0
Subscribe to my newsletter

Read articles from Mritunjay Tiwari directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Mritunjay Tiwari
Mritunjay Tiwari