-
-
Save ten0s/b9a18344aa046ca3ee3c to your computer and use it in GitHub Desktop.
| 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 |
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
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
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
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
vagrant box add ten0s/centos6.5_x86_64 http://10.10.0.152:8000/ten0s_centos6.5_x86_64.box
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