{"id":23282172,"url":"https://github.com/alilotfi23/vagrant","last_synced_at":"2025-04-06T14:15:19.214Z","repository":{"id":178255131,"uuid":"661589965","full_name":"alilotfi23/vagrant","owner":"alilotfi23","description":"VirtualBox Machine","archived":false,"fork":false,"pushed_at":"2024-12-16T08:41:02.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T20:18:06.213Z","etag":null,"topics":["ubuntu","vagrant","vagrant-box","vagrantfile","virtualbox"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alilotfi23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-07-03T08:04:36.000Z","updated_at":"2024-12-16T08:41:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"61631ed4-8009-4ffa-b249-c78a00b4ab7b","html_url":"https://github.com/alilotfi23/vagrant","commit_stats":null,"previous_names":["alilotfi23/vagrant"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fvagrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fvagrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fvagrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fvagrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alilotfi23","download_url":"https://codeload.github.com/alilotfi23/vagrant/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247492543,"owners_count":20947545,"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":["ubuntu","vagrant","vagrant-box","vagrantfile","virtualbox"],"created_at":"2024-12-20T00:14:52.396Z","updated_at":"2025-04-06T14:15:19.190Z","avatar_url":"https://github.com/alilotfi23.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vagrant VirtualBox Setup\n\nThis repository contains a Vagrant configuration for setting up an Ubuntu virtual machine (VM) using VirtualBox.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed on your system:\n\n- [Vagrant](https://www.vagrantup.com/downloads) (version 2.0 or higher)\n- [VirtualBox](https://www.virtualbox.org/wiki/Downloads) (version 5.0 or higher)\n\n## Installing the Ubuntu Box\n\nTo add the Ubuntu 20.04 box to your Vagrant environment, run the following command:\n\n```bash\nvagrant box add generic/ubuntu2004\n\n\n## Setting Up and Provisioning Your Virtual Machine\n\n1. **Initialize the Vagrant environment**:\n   This command creates a new `Vagrantfile` in your current directory.\n\n   ```bash\n   vagrant init generic/ubuntu2004\n   ```\n\n2. **Start the VM**:\n   Use the following command to start the VM and automatically provision it.\n\n   ```bash\n   vagrant up\n   ```\n\n## Accessing Your Virtual Machine\n\nTo log into your newly created virtual machine, use:\n\n```bash\nvagrant ssh\n```\n\n## Creating Multiple Virtual Machines\n\nIf you want to create multiple VMs, you can specify a count in the Vagrantfile. Here’s how to do it:\n\n1. Open the `Vagrantfile` in a text editor.\n2. Modify the configuration to include multiple instances. For example, to create 3 VMs, add the following code snippet:\n\n   ```ruby\n   Vagrant.configure(\"2\") do |config|\n     (1..3).each do |i|\n       config.vm.define \"ubuntu_vm_#{i}\" do |vm|\n         vm.box = \"generic/ubuntu2004\"\n       end\n     end\n   end\n   ```\n\n3. Run `vagrant up` again to start all defined VMs.\n\n## Conclusion\n\nYou now have a basic setup for using Vagrant with VirtualBox to create and manage Ubuntu virtual machines. For further customization and advanced configurations, refer to the [Vagrant documentation](https://www.vagrantup.com/docs).\n\nFeel free to contribute or raise issues if you encounter any problems!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falilotfi23%2Fvagrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falilotfi23%2Fvagrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falilotfi23%2Fvagrant/lists"}