π 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:
Understanding Virtual Machines and why they're crucial for DevOps.
Manual setup of VMs using VirtualBox:
- Installed CentOS Stream 9 and Ubuntu 24.04 LTS (Jellyfish Server).
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:
π« How to Install Chocolatey on Windows
π https://www.youtube.com/watch?v=-5WLKu_J_AEπ¦ Download & Install Vagrant Using Chocolatey
π https://www.udemy.com/course/decodingdevops/πΏ Installing VirtualBox
π https://www.virtualbox.org/wiki/Downloadsπ₯οΈ Installing CentOS in VirtualBox
π https://www.youtube.com/watch?v=AmGWCOKu0mkπ§ Installing Ubuntu 24.04 LTS in VirtualBox
π https://www.youtube.com/watch?v=Hva8lsV2nTk
π οΈ 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 found | Run choco install vagrant , restart Git Bash, and ensure it's in your PATH. |
Vagrant can't find VirtualBox | Ensure VirtualBox is properly installed and added to system environment variables. |
SSH permission denied | Delete the .vagrant directory in your project and try vagrant up again. |
VM not booting properly | Check RAM & storage allocation; use the right ISO file or Vagrant box. |
Git Bash can't run Vagrant | Use 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
Subscribe to my newsletter
Read articles from Mritunjay Tiwari directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
