Skip to content

hortongn/development_machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

  1. Install Vagrant and VirtualBox on your local host.

    • Note: Vagrant 1.8.x seems to be best. Later versions seem to have problems with the NFS mounting.
  2. Clone this repository: git clone https://github.com/hortongn/development_machine.git

  3. cd development_machine

  4. vagrant plugin install vagrant-vbguest

  5. Edit the Vagrantfile to customize your settings

    • Change config.vm.hostname to a different host name if you don't like the default
    • Add more config.vm.network "forwarded_port" lines if you need more ports available
    • Change config.vm.synced_folder (the ~/Development part) to use the directory on your Mac that contains your development code
    • Change vb.memory to the amount of RAM you want to giv the VM (default is 4 GB)
  6. vagrant up --no-provision (This boots the virtual machine. On first run it creates the machine)

    • If you see errors about not being able to mount a folder, ignore that and move on to next step.
  7. vagrant provision (This runs the provision.sh script)

  8. vagrant reload

  9. vagrant ssh (This logs you in to the virtual machine command prompt)

Once you are logged into the virtual machine you should see a Development directory that contains the development code that resides on your host machine. You will be logged in as user vagrant with password vagrant. You can sudo to make root changes.

When you want to shut down the virtual machine, cd to the development_machine directory on your host and vagrant halt

If you ever want to fully delete the virtual machine, cd to the development_machine directory on your host and vagrant destroy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages