Skip to content

samuelshih/vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VM

My personal virtual machine for rails development

Requirements

SSH Keys

If you intend on using git from inside the VM, Make sure your ssh-agent is forwarding your keys (

  • Run ssh-add -L on your host, and make sure your Github private key is in there.
  • Match it against the Github fingerprint (ssh-keygen -l -f /path/to/your/ssh/pubkey). The standard key location is ~/.ssh/id_rsa.pub.
  • If not, ssh-add -K /path/to/your/private/key (standard location is ~/.ssh/id_rsa)
  • On successful add, it will report Identity added: /your/ssh/private/key
  • If you have no keys at all, read SSH key help for directions on creating and adding keys to Github.

Vagrant commands

  • vagrant up will start the vagrant server (if suspended / halted).
  • vagrant halt will shut down the VM entirely.
  • vagrant suspend will hibernate the VM.
  • vagrant status will show the current VM status.
  • vagrant provision will redo the VM setup (without cloning the repositories OR creating databases).
  • vagrant reload --provision will force provision your VM.

Troubleshooting

Port Conflicts

  • lsof -i :3000 Checks for current processes on 3000
  • kill -9 <PID> Kill the process by PID

About

My vagrant VM for rails dev

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published