Skip to content

Using a vm via vagrant

shoaibkamil edited this page Jun 6, 2011 · 4 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 our base VM to Vagrant:

     vagrant box add aspvm http://www.cs.berkeley.edu/~skamil/projects/asp/package.box
    

This will download a ~250 MB file that is the base VM. It is a bare-bones Debian Squeeze install.

  1. Download our Vagrantfile and place it in the asp_vm directory:

      wget http://www.cs.berkeley.edu/~skamil/projects/asp/Vagrantfile
    
  2. Download our Puppet script that will set up the VM:

      mkdir manifests; cd manifests; wget http://www.cs.berkeley.edu/~skamil/projects/asp/aspvm.pp; cd ..
    
  3. 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.