Skip to content

Using a vm via vagrant

chick edited this page Dec 17, 2013 · 8 revisions

ASP Development Using a VM

We've built a VM using the Vagrant system for easy installation and use. After setting up the VM, you'll be able to edit files in your native OS and run them on the VM. This VM is suitable for installing on Windows, Mac OS, and Linux.

Installation

  1. Install Vagrant using their instructions.

  2. Create a new directory:

     mkdir asp_vm; cd asp_vm
    
  3. Add a vagrantfile to the current directory:

     vagrant init aspvm
    
  4. Add our base VM to Vagrant (this will download a ~360 MB file):

     vagrant box add aspvm https://bitbucket.org/ddinh/asp-vms/downloads/base.ovapackage.box
    
  5. Start the VM.

      vagrant up
    

See Vagrant's documentation for more, but you can ssh to the VM using vagrant ssh. In addition, the asp_vm directory is shared between the host and the VM; in the VM, it's located in /vagrant. This allows you to edit files in your native OS, and run things within the VM.

To shut down the VM run vagrant suspend or vagrant halt.

Clone this wiki locally