{"id":25419493,"url":"https://github.com/iambotcoder/vagrant-automation-centos","last_synced_at":"2025-10-25T03:02:34.178Z","repository":{"id":276444675,"uuid":"929311656","full_name":"iambotcoder/vagrant-automation-centos","owner":"iambotcoder","description":"This project automates Virtual Machine (VM) provisioning using Vagrant with CentOS Stream 9.","archived":false,"fork":false,"pushed_at":"2025-02-08T08:56:59.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T18:48:52.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iambotcoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-08T08:48:07.000Z","updated_at":"2025-02-08T08:57:02.000Z","dependencies_parsed_at":"2025-02-08T09:36:53.590Z","dependency_job_id":"5c0c9e1a-6f30-45f2-946f-a128472d330e","html_url":"https://github.com/iambotcoder/vagrant-automation-centos","commit_stats":null,"previous_names":["iambotcoder/vagrant-automation-centos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iambotcoder%2Fvagrant-automation-centos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iambotcoder%2Fvagrant-automation-centos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iambotcoder%2Fvagrant-automation-centos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iambotcoder%2Fvagrant-automation-centos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iambotcoder","download_url":"https://codeload.github.com/iambotcoder/vagrant-automation-centos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253767486,"owners_count":21961116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-16T18:48:54.885Z","updated_at":"2025-10-25T03:02:29.129Z","avatar_url":"https://github.com/iambotcoder.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🖥️ Vagrant Automation - CentOS Stream 9\n\n---\n\n## 📖 Overview\n\nThis project automates Virtual Machine (VM) provisioning using Vagrant with CentOS Stream 9. It simplifies the process of setting up a virtualized development environment with predefined configurations.\n\n---\n\n## 📑 Table of Contents\n\n- [Prerequisites](#prerequisites) 🔑  \n- [Architecture](#architecture) 🏗️  \n- [Setup \u0026 Installation](#setup--installation) 🛠️  \n- [Vagrant Setup](#vagrant-setup) 🐾  \n- [Cleaning Up Resources](#cleaning-up-resources) 🧹  \n- [Conclusion](#conclusion) ✅  \n\n---\n\n## 🔑 Prerequisites\n\nBefore you start, ensure you have the following installed:\n\n- [Vagrant](https://www.vagrantup.com/downloads)  \n- [VirtualBox](https://www.virtualbox.org/wiki/Downloads)  \n- Basic understanding of Linux and virtualization  \n\n---\n\n## 🏗️ Architecture\n\nThis project uses Vagrant to automate VM provisioning with the following configurations:\n\n- **OS**: CentOS Stream 9  \n- **Networking**: Private network with IP `192.168.56.14`  \n- **Resources**: 1600MB RAM, 2 CPU cores  \n- **SSH Configuration**: Custom SSH key setup  \n- **Provisioning (optional)**: Install and configure Apache web server  \n\n---\n\n## 🛠️ Setup \u0026 Installation\n\n### 1⃣ Initialize Vagrant:\n```bash\nvagrant init eurolinux-vagrant/centos-stream-9\n```\n\n\n\n## 🐾 Vagrant Setup 🖥️\n\nBelow is the `Vagrantfile` configuration used:\n\n```ruby\n# -*- mode: ruby -*-\n# vi: set ft=ruby :\n\nVagrant.configure(\"2\") do |config|\n  # Use the CentOS Stream 9 box\n  config.vm.box = \"eurolinux-vagrant/centos-stream-9\"\n\n  # Private network for host-only access (you can modify the IP)\n  config.vm.network \"private_network\", ip: \"192.168.56.14\"\n\n  # Synced folder from host to guest\n  # config.vm.synced_folder \"D:\\\\scripts\\\\shellscripts\", \"/opt/scripts\", type: \"virtualbox\"\n\n  # VirtualBox provider-specific configurations\n  config.vm.provider \"virtualbox\" do |vb|\n    # Allocate memory and CPUs\n    vb.memory = \"1600\"\n    vb.cpus = 2\n    vb.gui = false  # Run the VM in headless mode (without GUI)\n  end\n\n  # Disable the default insecure SSH key and use newly generated keys\n  config.ssh.insert_key = false\n\n  # Ensure SSH keys are properly configured\n  config.ssh.private_key_path = \"~/.vagrant.d/insecure_private_key\"\n  \n  # Provision the VM with necessary updates and package installations\n  #config.vm.provision \"shell\", inline: \u003c\u003c-SHELL\n    # Update and install necessary packages\n    # You can comment below commands to just have a simple Centos standard VM\n    sudo dnf -y update\n    sudo dnf -y install httpd\n    sudo systemctl enable httpd\n    sudo systemctl start httpd\n  #SHELL\nend\n\n```\n\n### 2⃣ Start the Virtual Machine:\n```bash\nvagrant up\n```\n\n### 3⃣ Check VM Status:\n```bash\nvagrant status\n```\n\n### 4⃣ SSH into the VM:\n```bash\nvagrant ssh\n```\n\n### 5⃣ Check Network Configuration:\n```bash\nip addr show\n``` \n\n### 6⃣ Exit the VM:\n```bash\nexit\n``` \n\n### 🧹 Cleaning Up Resources\n\nTo remove the VM and free up system resources, run the following commands in order:\n\n### 1⃣ Destroy the Virtual Machine:\n   ```bash\n   vagrant destroy\n   ```\n### 2⃣ Remove Unused Vagrant Instances:\n   ```bash\n   vagrant global-status --prune\n   ```\n---\n\n## ✅ Conclusion\n\nThis project demonstrates how to automate VM provisioning using Vagrant and VirtualBox, making it easier to manage development and testing environments efficiently.\n\n---\n\n## 👨‍🏫 Instructor\n\nThis project was guided by Imran Teli, who provided valuable mentorship throughout the process.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiambotcoder%2Fvagrant-automation-centos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiambotcoder%2Fvagrant-automation-centos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiambotcoder%2Fvagrant-automation-centos/lists"}