Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ryank30's avatar

Homestead installation issues

Hi,

I have come across errors while installing homestead. I have checked out similar topics on this forum but none of them gave me the answer I wanted.

What I have done so far is below:

  1. composer installed on my local machine (windows 7) and running.
  2. Laravel has been downloaded and installed via composer on my desktop
  3. I downloaded and installed virtualbox and vagrant
  4. I ran the command line: "vagrant box add laravel/homestead"

I have got the error message below:

C:\Users\Design4\Desktop\laravel>vagrant box add laravel/homestead The box 'laravel/homestead' could not be found or could not be accessed in the remote catalog. If this is a private box on HashiCorp's Atlas, please verify you're logged in via vagrant login. Also, please double-check the name. The expanded URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/laravel/homestead"] Error: SSL certificate problem: unable to get local issuer certificate More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.

Could you show me step by step how to resolve this issue please?

Thanks in advance.

0 likes
11 replies
ryank30's avatar

I just have found a cool instruction of homestead. Please see here: http://www.sitepoint.com/quick-tip-get-homestead-vagrant-vm-running/

I have followed the instruction and worked fine on my machine. In this tutorial, they suggested that I should point to my localhost ip address (i.e: 127.0.0.1 myapp.com) instead of what Laravel documentation recommends (i.e: 192.168.10.10 myapp.com).

Surprisingly, it worked when I used the localhost ip address (127.0.0.1). Does anyone know why it works with this?

Thanks in advance.

pixelpeter's avatar

@ryank30 Have you re-installed curl ?

In the hosts file you have to point to the ip address of your homestead machine that is defined in the Homestead.yaml file. Have a look at this file to see whats defined there. Maybe you have defined it as 127.0.0.1

ryank30's avatar

@pixelpeter I re-installed it with ip address 192.168.10.10 this time. When I ran "vagrant up" I got an error message. Please see below.

The name of your virtual machine couldn't be set because VirtualBox is reporting another VM with that name already exists. Most of the time, this is because of an error with VirtualBox not cleaning up properly. To fix this, verify that no VMs with that name do exist (by opening the VirtualBox GUI). If they don't, then look at the folder in the error message from VirtualBox below and remove it if there isn't any information you need in there.

VirtualBox error:

VBoxManage.exe: error: Could not rename the directory 'C:\Users\ryan\VirtualBox VMs\settler_default_1434987271004_24349_1435110896707_56475' to 'C:\Users\ryan\V irtualBox VMs\homestead' to save the settings file (VERR_ALREADY_EXISTS) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component SessionMachi ne, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "SaveSettings()" at line 2788 of file VBoxManage ModifyVM.cpp

saintvictoria's avatar

I am having the following issue "The name of your virtual machine couldn't be set because VirtualBox is reporting another VM with that name already exists. Most of the time, this is because of an error with VirtualBox not cleaning up properly. To fix this, verify that no VMs with that name do exist (by opening the VirtualBox GUI). If they don't, then look at the folder in the error message from VirtualBox below and remove it if there isn't any information you need in there." I have removed the VM in the VirtualBox GUI, but still I get the same error. How do I get to the folder to remove the line? is my basic question, I am wary of messing around too much in iTerm2. I am using a mac running Yosemite(10.10.4) and the newest version of VirtualBox(4.3.3), everything else - Laravel, Homestead was installed yesterday.

alquesadilla's avatar

vagrant box add --insecure laravel/homestead

You are getting this because your certificate file cannot be located. You can set your certs up correctly and it will fix it or run the command above to download it without SSL.

theever's avatar

There might be several things going on as part of this process. I'm on Win 8. I believe this will work for Win 10.

Make sure you have Git Bash installed.

Make sure virtualization is turned on in your BIOS. If you have Hyper-V installed you need to disable it, not just Disabled in Services:

Open CMD with Administrator privs.

dism.exe /Online /Disable-Feature:Microsoft-Hyper-V

Reboot

To re-enable, change Disable-Feature to Enable-Feature. Reboot.

Ok, next, you need to make sure you have installed Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) at this URL:

https://www.microsoft.com/en-us/download/confirmation.aspx?id=8328

If you have it installed, reinstall it. If it says "repair" then do the repair.

Then make sure to create SSH keys in CMD > c:\users\data:

ssh-keygen -t rsa -C “[email protected]

Just hit enter for everything

Go to your Homestead directory and open Homestead.yaml

authorize: ~/.ssh/id_rsa.pub

keys:

— ~/.ssh/id_rsa

folders:

— map: ~/Code

to: /home/vagrant/Code

sites:

— map: homestead.app

to: /home/vagrant/Code/Laravel/public

You don't have to change anything now, but if the vagrant build fails you may need to come back here and replace ~/ with the full path on where these directories are. Don't forget forward slashes and CASE MATTERS! Example of mine. NOTE: I created a new projects folder on my D: drive.

authorize: c:/users/data/.ssh/id_rsa.pub

keys: - c:/users/data/.ssh/id_rsa

folders: - map: d:/projects/homestead_projects to: /home/vagrant/Code

sites: - map: homestead.app to: /home/vagrant/Code/Laravel/public

NEXT STEP:

Go into C:\Users\Data\Homestead\scripts\homestead.rb

Go to line 90 and comment it out, then replace with the following:

config.vm.network "forwarded_port", guest: guest, host: host, host_ip: "127.0.0.1", auto_correct: true

That's it for some major pain in the necks.

Please or to participate in this conversation.