Creating Ruby on Rails virtual environment based on Ubuntu 14.04 64-bit/Vagrant/VirtualBox
1. Install git
, if you don't have one yet.
Download VirtualBox 4.3.28 Build 100309 for Windows PC from FileHorse. 100% Safe and Secure Free Download (32-bit/64-bit) Software Version. Virtualbox 4.3.28 Build 100309 Download For Mac 7,7/10 5810 reviews. I'm using to test CSS 3D transforms in Android on Genymotion and I.
- Instructions for WindowsOS
- Windows users can use install git for Windows from https://windows.github.com/
- When you start installing prerequisites for github for windows and will ask you for reboot
- After reboot it will start installing
github for windows
- Once installation completes, it will pop up the windows to login with you github credentials. Enter them.
- On your Desktop you will find
Git Shell
shortcut, click on it. (Always useGit Shell
instead ofCommand Prompt
) - Move to the directory where you want to clone
https://github.com/tenzan/ror-dev-env
2. Clone repo
git clone https://github.com/tenzan/ror-dev-env.git
and cd
to the repo.3. Install latest Virtualbox
. As of Jun 9, 2015 the latest version is 4.3.28
- Windows
- Mac OS X. There're several ways, but here I write about homebrew
- Install
homebrew
if you don't have one:ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'
brew tap caskroom/cask
brew cask install virtualbox
- Ubuntu
Ref.: https://www.virtualbox.org/wiki/Linux_Downloads
- Add the following line to your /etc/apt/sources.list:
deb http://download.virtualbox.org/virtualbox/debian trusty contrib
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
- Assuming version 4.3 is the latest.
sudo apt-get update && sudo apt-get install virtualbox-4.3
- You may need to run
sudo apt-get install dkms
4. Install Vagrant
To learn more:https://www.vagrantup.com/
- Windows
Download and install from
https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2.msi
![Virtualbox 4.3.28 build 100309 download for mac windows 7 Virtualbox 4.3.28 build 100309 download for mac windows 7](/uploads/1/2/5/8/125825897/291210177.png)
- Mac OS X
brew cask install vagrant
- Ubuntu
sudo apt-get install vagrant
Note: The following steps are common for any OS
5. Add the vagrant box ubuntu-14.04-x64
vagrant box add ubuntu-14.04-x64 https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
6. Starting vagrant. Username and password for the VM: vagrant
vagrant up
Note: At some point you will need to download and mount
VBoxGuestAdditions
ISO image to your VirtualBox
:http://dlc-cdn.sun.com/virtualbox/4.3.28/VBoxGuestAdditions_4.3.28.iso7. Test if it's working
Login your VM via
vagrant ssh ubuntu
via your terminal and run the following bunch of commands by copy&pasting:- To check if
myapp
is running, on your host machine's browser, accesshttp://10.20.30.100:3000
![Build Build](http://okc-osdb.org/wp-content/uploads/2015/06/05-StartVM1.png)
Recommended for reading:http://stackoverflow.com/a/30723007/1745902
vagrant destroy --force && rm -rf .vagrant && vagrant up
As this folder is shared between Host and Guest OS, you fire up your editor/IDE on your host machine and have your code running in the Guest OS.
Hello!I want to install virtualbox on my windows 10, I tried with version: 5.1.18-114002, 5-0-22-build-108108, 4-3-28-build-100309, 4-2-12-84980.
I recived ALWAYS the same result: Fatal error! errore irreversibile durante l'installazione.
I also tried, with all these version, to disable bridged networking like someone suggested in another topic.
It didn't work. And I am a bit desperate
I searched in the forum but I could not find a solution for me, I hope you can help me...
P.s. Sorry for grammar error, I'm not english