Skip to content

Instantly share code, notes, and snippets.

@noeldiaz
Created July 18, 2014 15:56
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save noeldiaz/0f9a2583a41579878764 to your computer and use it in GitHub Desktop.
Save noeldiaz/0f9a2583a41579878764 to your computer and use it in GitHub Desktop.
Homestead 32-bit Version
## 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.
@rulrok
Copy link

rulrok commented Jul 6, 2015

I found this useful. Just updating for the time being, instead of

config.vm.box = "ubuntu/trusty32"

use

config.vm.box = "chef/ubuntu-14.04-i386"

Since the most recent version is based on chef/ubuntu-14.04 (64 bits)

@jucamanve
Copy link

Hi guys! I followed instructions but got this error:

jucaman@jucaman-vit:~/dev/ubuntu32$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The 'reload' provisioner could not be found.
* The 'reload' provisioner could not be found.

The one line I changed:

5     config.vm.box = 'chef/ubuntu-14.04-i386'

I reinstalled virtualbox and vagrant with the same result. Any idea of what can be wrong?
Please help! :) Thanks in advance!

Vagrant version
Installed Version: 1.7.4
Latest Version: 1.7.4

VirtuaBox version
5.0.0 r101573

@markchino
Copy link

Hi I comment this part of the Vagrant File

Run The Base Provisioning Script

config.vm.provision 'shell', path: './scripts/update.sh'
config.vm.provision :reload
config.vm.provision 'shell', path: './scripts/vmware_tools.sh'
config.vm.provision :reload
config.vm.provision 'shell', path: './scripts/provision.sh'

for this

Run The Base Provisioning Script

config.vm.provision 'shell', path: './scripts/update.sh'

config.vm.provision :reload

config.vm.provision 'shell', path: './scripts/vmware_tools.sh'

config.vm.provision :reload

config.vm.provision 'shell', path: './scripts/provision.sh'

and add

config.vm.boot_timeout = 300

and all fine!!!

Copy link

ghost commented Oct 1, 2015

According to build.sh from the settler git repo it seems that the message "The 'reload' provisioner could not be found." should be resolved by running

vagrant plugin install vagrant-reload

before vagrant up

Copy link

ghost commented Oct 2, 2015

also, setter is now based off bento/ubuntu-14.04, so use

config.vm.box = "bento/ubuntu-14.04-i386"

Copy link

ghost commented Oct 8, 2015

Do I need laravel/homestead? Does homestead32 need to be in Ubuntu folder?

@starmatt
Copy link

Hello, after all that can I remove the Ubuntu32 folder?

@rmff
Copy link

rmff commented Feb 5, 2016

I've just made an new homestead32Bit, based bento/ubuntu-14.04-i386, using last Laravel settler.

Available at github rmff/laravel-homestead-32bit

Get Laravel Homestead 32Bit:

git https://github.com/rmff/laravel-homestead-32bit.git Homestead32Bit
cd Homestead32Bit
vagrant up

Enjoy it.

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