{"id":18192020,"url":"https://github.com/codekow/vagrant-files","last_synced_at":"2026-05-04T07:40:24.991Z","repository":{"id":59431044,"uuid":"400827683","full_name":"codekow/vagrant-files","owner":"codekow","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-16T00:55:05.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T18:49:38.362Z","etag":null,"topics":["vagrant","virtualbox"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/codekow.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}},"created_at":"2021-08-28T15:33:56.000Z","updated_at":"2021-12-07T02:46:41.000Z","dependencies_parsed_at":"2022-09-17T01:22:55.486Z","dependency_job_id":null,"html_url":"https://github.com/codekow/vagrant-files","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fvagrant-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fvagrant-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fvagrant-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fvagrant-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codekow","download_url":"https://codeload.github.com/codekow/vagrant-files/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247687254,"owners_count":20979426,"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":["vagrant","virtualbox"],"created_at":"2024-11-03T06:42:01.627Z","updated_at":"2026-05-04T07:40:19.970Z","avatar_url":"https://github.com/codekow.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vagrant Cheat Sheet\n\n## Prereqs\n- [Vagrant](https://www.vagrantup.com/downloads)\n- [VirtualBox](https://www.virtualbox.org/wiki/Downloads)\n- [VirtualBox Extension Pack](https://download.virtualbox.org/virtualbox/6.1.26/VirtualBoxSDK-6.1.26-145957.zip)\n\n### Mac Prereq install\n```\nbrew install \\\n  vagrant \\\n  virtualbox \\\n  virtualbox-extension-pack\n\nbrew install \\\n  podman\n```\n\n## Quickstart\n```\ncd general\n\nvagrant up\nvagrant ssh\n```\n\nA collection of vagrant VMs for general purpose use.\n\n## Creating a VM\n- `vagrant init`           -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.\n- `vagrant init \u003cboxpath\u003e` -- Initialize Vagrant with a specific box. To find a box, go to the [public Vagrant box catalog](https://app.vagrantup.com/boxes/search). When you find one you like, just replace it's name with boxpath. For example, `vagrant init ubuntu/trusty64`.\n\n## Starting a VM\n- `vagrant up`                  -- starts vagrant environment (also provisions only on the FIRST vagrant up)\n- `vagrant resume`              -- resume a suspended machine (vagrant up works just fine for this as well)\n- `vagrant provision`           -- forces reprovisioning of the vagrant machine\n- `vagrant reload`              -- restarts vagrant machine, loads new Vagrantfile configuration\n- `vagrant reload --provision`  -- restart the virtual machine and force provisioning\n\n## Getting into a VM\n- `vagrant ssh`           -- connects to machine via SSH\n- `vagrant ssh \u003cboxname\u003e` -- If you give your box a name in your Vagrantfile, you can ssh into it with boxname. Works from any directory.\n\n## Stopping a VM\n- `vagrant halt`        -- stops the vagrant machine\n- `vagrant suspend`     -- suspends a virtual machine (remembers state)\n\n## Cleaning Up a VM\n- `vagrant destroy`     -- stops and deletes all traces of the vagrant machine\n- `vagrant destroy -f`   -- same as above, without confirmation\n\n## Boxes\n- `vagrant box list`              -- see a list of all installed boxes on your computer\n- `vagrant box add \u003cname\u003e \u003curl\u003e`  -- download a box image to your computer\n- `vagrant box outdated`          -- check for updates vagrant box update\n- `vagrant boxes remove \u003cname\u003e`   -- deletes a box from the machine\n- `vagrant package`               -- packages a running virtualbox env in a reusable box\n\n## Saving Progress\n- `vagrant snapshot save [options] [vm-name] \u003cname\u003e` -- vm-name is often `default`. Allows rollback at a later time\n\n## Tips\n- `vagrant -v`                    -- get the vagrant version\n- `vagrant status`                -- outputs status of the vagrant machine\n- `vagrant global-status`         -- outputs status of all vagrant machines\n- `vagrant global-status --prune` -- same as above, but prunes invalid entries\n- `vagrant provision --debug`     -- use the debug flag to increase the verbosity of the output\n- `vagrant push`                  -- yes, vagrant can be configured to [deploy code](http://docs.vagrantup.com/v2/push/index.html)!\n- `vagrant up --provision | tee provision.log`  -- Runs `vagrant up`, forces provisioning and logs all output to a file\n\n## Links\n- [List of Vagrant Resources](https://github.com/iJackUA/awesome-vagrant) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekow%2Fvagrant-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodekow%2Fvagrant-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekow%2Fvagrant-files/lists"}