-
-
Save Ammly/e8123cfb7d5bbed13917 to your computer and use it in GitHub Desktop.
Homestead 32-bit Version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Making a 32 bit version of Homestead | |
# Clone the settler repository to a directory | |
git clone https://github.com/laravel/settler.git Ubuntu32 | |
# In that directory edit the file called "Vagrantfile" to use a ubuntu 32 box instead of the 64 bit one | |
change this line: | |
config.vm.box = "ubuntu/trusty64" | |
to: | |
config.vm.box = "ubuntu/trusty32" | |
# Boot up vagrant to build the box (long wait here) | |
vagrant up | |
## Packaging the new version as a Vagrant box | |
# Stop the running vm | |
vagrant halt | |
# Find out what name the vm has | |
1. open the virtualbox gui | |
2. find your stopped vm | |
3. get the full name | |
In my case it was "Ubuntu32_default_1405697550368_94814" | |
# Have vagrant package your new install as a bew box | |
vagrant package --base Ubuntu32_default_1405697550368_94814 --output homestead32.box | |
# Add your new box to vagrant | |
vagrant box add homestead32.box --name Homestead32 | |
# Check that your new box is listed and available | |
vagrant box list | |
## Getting the Homestad file to play with your new box | |
# Get the homestead files | |
git clone https://github.com/laravel/homestead.git Homestead32 | |
# Change Homestad to use your custom box instead of the 64 bit one | |
1. edit scripts/homestead.rb | |
2. change the box to be used | |
this: | |
config.vm.box = "laravel/homestead" | |
to this: | |
config.vm.box = "Homestead32" | |
Or whatever you called your box file when you added it to vagrant | |
# Now continue setting up your Homestead file as usual editing "Homestead.yaml", etc. | |
# Start your new vm | |
vagrant up | |
## Done! Now you have a Homestead 32-bit vm. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment