Skip to content

Instantly share code, notes, and snippets.

@ten0s
Last active October 21, 2015 15:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ten0s/b9a18344aa046ca3ee3c to your computer and use it in GitHub Desktop.
Save ten0s/b9a18344aa046ca3ee3c to your computer and use it in GitHub Desktop.
Install vagrant env and build the project
1. Download and Install VirtuaBox 4.3.20
----------------------------------------
Windows
http://download.virtualbox.org/virtualbox/4.3.20/VirtualBox-4.3.20-96997-Win.exe
Linux
https://www.virtualbox.org/wiki/Linux_Downloads
2. Start Virtualbox UI and make sure you are able to create 64-bit guests
-------------------------------------------------------------------------
Enable virtualization in BIOS otherwise.
3. Download and Install Download Vagrant
----------------------------------------
Windows 1.6.5
http://www.vagrantup.com/download-archive/v1.6.5.html
Linux 1.7.x (Linux)
http://www.vagrantup.com/downloads.html
4. Open Terminal (Windows -> Run)
---------------------------------
mkdir test
cd test
vagrant init ten0s/centos6.5_mono3.2.8_x86_64 http://10.10.0.152:8000/ten0s_centos6.5_mono3.2.8_x86_64.box
vagrant up
vagrant ssh
xbuild
exit
5. Modify and Save Vagrantfile
------------------------------
after the commented line:
# config.vm.synced_folder "../data", "/vagrant_data"
add a line like
config.vm.synced_folder "DISK:\\FULL_PATH_TO_PROJECT_WITH_DOUBLE_BACK_SLASHES", "/PROJECT_NAME"
6. Reload virtual machine configuration
---------------------------------------
vagrant reload
7. Build the project
--------------------
vagrant ssh
cd /PROJECT_NAME/src/.../PROJECT.sln
xbuild /t:Clean && xbuild
@ten0s
Copy link
Author

ten0s commented Oct 21, 2015

vagrant box add ten0s/centos6.5_x86_64 http://10.10.0.152:8000/ten0s_centos6.5_x86_64.box

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment