mono-aspnetvnext Vagrant box
The GitHub repository hosts the Vagrantfile used to create the box at https://vagrantcloud.com/akoeplinger/mono-aspnetvnext. Do not clone the repository, just follow the instructions below
The box contains everything needed to play with ASP.NET vNext projects on Mono.
By using Vagrant, you can run a VM with everything set up correctly without messing with your Windows, Linux or Mac OSX host.
- VirtualBox: https://www.virtualbox.org/wiki/Downloads
- Vagrant: http://www.vagrantup.com/downloads.html
Setup Vagrant box
To use the box and run the included "Hello World" sample, follow these steps:
vagrant init akoeplinger/mono-aspnetvnextin an empty directory, this creates a new Vagrantfile
config.vm.network "forwarded_port", guest: 5000, host: 5000to the newly created Vagrantfile to forward your local port 5000 to the VM
vagrant upto download the Vagrant box and boot the VM
vagrant sshto connect to the VM
kpm restoreto restore the necessary packages
- Start the test web server by running
The "Hello World" web application should now be running, access it by browsing to http://localhost:5000.
The folder containing the Vagrantfile is automatically mapped to the VM path
/vagrant. This is a simple way to share your own projects with the VM.