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
@astreika
Copy link

Download Vagrant 1.6.5 (1.7.0 doesn't work correctly)
http://www.vagrantup.com/download-archive/v1.6.5.html

check NetWork properties
"Client for Microsoft Networks" should be checked

@ten0s
Copy link
Author

ten0s commented Dec 12, 2014

git clone https://github.com/PowerMeMobile/PowerAds.git
cd PowerAds/
git submodule init
git submodule update
src/PowerAds
xbuild PowerAds.sln /t:Clean && xbuild PowerAds.sln
OR
xbuild /t:Clean && xbuild

@ten0s
Copy link
Author

ten0s commented Dec 15, 2014

Problem

F:\testvbox>vagrant ssh
ssh executable not found in any directories in the %PATH% variable. Is an
SSH client installed? Try installing Cygwin, MinGW or Git, all of which
contain an SSH client. Or use your favorite SSH client with the following
authentication information shown below:

Host: 127.0.0.1
Port: 2222
Username: vagrant
Private key: C:/Users/User1/.vagrant.d/insecure_private_key

Solution

Add C:\Program Files (x86)\Git\bin to PATH

@ten0s
Copy link
Author

ten0s commented Dec 22, 2014

All available boxes:
http://10.10.0.152:8000/

ten0s_centos6.5_i386.box
ten0s_centos6.5_mono3.2.8_x86_64.box
ten0s_centos6.5_x86_64.box

@ten0s
Copy link
Author

ten0s commented Jun 18, 2015

repackage and share the box

vagrant box list
ten0s/centos6.5_x86_64 (virtualbox, 0)

vagrant box repackage ten0s/centos6.5_x86_64 virtualbox 0
mv package.box ten0s_centos6.5_x86_64.box

python -m SimpleHTTPServer

get the shared box

vagrant init ten0s/centos6.5_x86_64 http://10.10.0.87:8000/ten0s_centos6.5_x86_64.box
vagrant up
vagrant ssh

@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