DEV Community

Cover image for πŸš€ Week 2 of My DevOps Journey: Virtual Machines & Automation
Mritunjay Tiwari
Mritunjay Tiwari

Posted on

πŸš€ 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 & SSH – 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

Top comments (0)