Cheatography
                https://cheatography.com
            
        
        
    
                   
                            
    
                    Vagrant Setup | Useful Commands
                    
                 
                    
        
        
            
    
        
                                    This is a draft cheat sheet. It is a work in progress and is not finished yet.
                    
        
                
        
            
                                
            
                
                                                | Connecting to Vagrant Box
                        
                                                                                    
                                                                                            | vagrant ssh | | connects to box in your path |  
                                                                                            | vagrant ssh config | | displays ssh config |  
                                                                                            | run from path, prior to login |  
                                                                                            | vagrant rdp | | I have not tested this yet |  **if more than one machine in configured within the Vagrantfile, use machine name for SSH i.e. vagrant ssh web Vagrant Box Maintenance
                        
                                                                                    
                                                                                            |  see adjacent screen shots |  
                                                                                            | vagrant box list | |lists all available vagrant boxes on this endpoint |  
                                                                                            | vagrant box add <name> or <url> | | downloads box image to your end point |  
                                                                                            | vagrgant box remove <name> | | deletes box from end point |  
                                                                                            | vagrant box prune  | | status of all boxes; dropping invalid entries |  
                                                                                            | vagrant status | | displays status for box in current directory |  
                                                                                            | vagrant box outdated | | checks if box is up to date |  
                                                                                            |  above must run from a box path |  
                                                                                            | vagrant global-status | | displays status for all local boxes |  
                                                                                            | vagrant package | | packages a running environment in a reusable box |  Vagrant Box Management
                        
                                                                                    
                                                                                            | vagrant  --version |  
                                                                                            | vagrant suspend |  
                                                                                            | vagrant resume | | resumes the vagrant box |  
                                                                                            | vagrant halt | | stops the vagrant box |  
                                                                                            | vagrant reload | | restarts box w/ new configuration |  
                                                                                            | vagrant destroy | | destroys current endpoint not the base box |  
                                                                                            | vagrant validate run from box path
 | | |  
                                                                                            | vagrant vbguest run from box path
 | | installs VirtualBox Guest Editions |  Vagrant Plugins
                        
                                                                                    
                                                                                            | https://vagrant-lists.github.io/ |  
                                                                                            | vagrant plugin | | manages all plugins |  
                                                                                            | [expunge, install, license, list, repair, uninstall, update] |  
                                                                                            | vagrant plugin install [plugin name] |  
                                                                                            |  vbguest, vbinfo, hostmanager, vagrant-winnfsd, vagrant-netinfo, vagrant-env, vagrant-git |  
                                                                                            | Additional vagrant plugins to consider/research |  
                                                                                            | vagrant-node, vagrant-web, vagrant-persistent-storage, vagrant-hostsupdater, vagrant-dns |  Customize the VagrantfileVagrant Network Management
                        
                                                                                    
                                                                                            | vagrant@debian11:/ ip -c link show | | displays network devices |  
                                                                                            | vagrant@debian11:/ sudo cp /etc/network/interfaces ~/ | | creates a copy of the network file |  
                                                                                            | vagrant@debian11:/ sudo nano /etc/network/interfaces | | opens the network file for editing i.e. creating a static IP |  |  | Notes / Alerts
                        
                                                                                    
                                                                                            | By default ./ on your computer is shared as /vagrant on the vm |  
                                                                                            | vagrant cannot run simultaneously with |  
                                                                                            | ctrl d | exits the vagrant box |  
                                                                                            | If a PC goes to sleep, vagrant boxes will be forcibly shutdown but no data should be lost |  Vagrant Box Outdated [run from box path]Vagrant Box Add [i.e.] hashicorp/precise64Vagrant Quick Set-Up
                        
                                                                                    
                                                                                            | Vagrant installs at c:\hashicorp\vagrant | c:\>cd hashicorp\vagrant |  
                                                                                            | Make a directory for each separate vm | c:\>mkdir precise64 |  
                                                                                            |  | c:\>cd hashicorp\vagrant\precise64 |  
                                                                                            | c:\hashicorp\vagrant\precise64
 | c:\>hashicorp\vagrant\precise64
 |  
                                                                                            | c:\hashicorp\vagrant\debian10
 | vagrant init hashicorp/precise64 |  
                                                                                            | c:\hashicorp\vagrant\ansible
 |  initializes a new vagrantfile
 |  
                                                                                            |  | vagrant up [ starts the box
 ] |  Vagrant Box Sites [working as of  01/2023]
                        
                                                                                    
                                                                                            | Windows Boxes |  
                                                                                            |  |  
                                                                                            |  |  
                                                                                            |  |  
                                                                                            |  |  
                                                                                            | Linux Boxes |  
                                                                                            |  |  
                                                                                            |  |  
                                                                                            |  |  |