-
-
Save noeldiaz/0f9a2583a41579878764 to your computer and use it in GitHub Desktop.
## 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. |
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
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!!!
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
also, setter is now based off bento/ubuntu-14.04, so use
config.vm.box = "bento/ubuntu-14.04-i386"
Do I need laravel/homestead? Does homestead32 need to be in Ubuntu folder?
Hello, after all that can I remove the Ubuntu32 folder?
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.
I found this useful. Just updating for the time being, instead of
use
Since the most recent version is based on
chef/ubuntu-14.04
(64 bits)