I have been using Laravel Homestead for a few years and never really had an issue with the installation and setup process until now, and I think it may have something to do with the latest version of macOS Sequoia 15.0 that I installed the other day. When I run the vagrant up
command, the Homestead machine successfully boots as expected, but then it gets stuck trying to establish an SSH connection until it eventually times out.
homestead: SSH address: 10.211.55.24:22
homestead: SSH username: vagrant
homestead: SSH auth method: private key
homestead: Warning: Host unreachable. Retrying...
homestead: Warning: Host unreachable. Retrying...
homestead: Warning: Host unreachable. Retrying...
I can however open the Parallels Desktop GUI and log in from the terminal to run the ip a
command.
1: 10: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue
• state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host 10
valid_lft forever preferred_lft forever
inet6 :: 1/128 scope host
valid_ift forever preferred_lft forever
2: etho: ‹BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fa_codel state UP group default qlen 1000
link/ether 00:1c:42:d1:c0:bb brd ff:ff:ff:ff:ff:ff
altname enpos5
inet 10.211.55.24/24 metric 100 brd 10.211.55.255 scope global dynamic etho
valid_1ft 1064sec preferred_1ft 1064sec
inet6 fdb2:2c26:44:0:21c:42ff:fed1:c0bb/64 scope global dynamic mngtmpaddr noprefixroute
valid_1ft 2591471sec preferred_1ft 604271sec
inet6
fe80::21c:42ff:fed1:c0bb/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
state DOWN group default qlen 1000
link/ether 00:1c:42:a9:a5:e4 brd ff:ff:ff:ff:ff:ff
altname enpos6
4: dockero: <NO-CARRIER, BROADCAST, MULTICAST, UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:2c:e9:da:c7 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 brd 172.17.255.255 scope global dockero
valid_1ft forever preferred_1ft forever
The only file that I have edited is the Homestead.yaml file which now looks like this.
---
ip: "192.168.56.56"
memory: 12288
cpus: 8
provider: parallels
name: homestead
authorize: ~/.ssh/id_ed25519.pub
keys:
- ~/.ssh/id_ed25519
folders:
- map: ~/code
to: /home/vagrant/code
sites:
- map: my-project.test
to: /home/vagrant/code/my-project/public
php: "8.1"
databases:
- my-project
features:
- mysql: true
- mariadb: false
- postgresql: false
- ohmyzsh: false
- webdriver: false
services:
- enabled:
- "mysql"
# - disabled:
# - "postgresql@11-main"
ports:
- send: 33060 # MySQL/MariaDB
to: 3306
# - send: 4040
# to: 4040
# - send: 54320 # PostgreSQL
# to: 5432
# - send: 8025 # Mailhog
# to: 8025
# - send: 9600
# to: 9600
# - send: 27017
# to: 27017
I am using Parallels Desktop 20.0.1 (55659), Vagrant 2.4.1, and laravel/homestead (parallels, 14.0.2, (arm64)). I have also installed the Parallels Vagrant plug-in as instructed by the official documentation.
- I have completely uninstalled and reinstalled Parallels Desktop
- I have tried an older version of Parallels Desktop 19.4.1 (54985)
- I have completely uninstalled and reinstalled Vagrant through Homebrew
- I have removed my Homestead directory and cloned the project from GitHub
- I have removed my Vagrant box and provisioned it again
- I ran the
vagrant up --debug
command to gain more insight into the problem
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: D, [2024-09-23T11:07:50.319078 #54345] DEBUG -- net.ssh.transport.session[c008]: establishing connection to 10.211.55.24:22
DEBUG ssh: == Net-SSH connection debug-level log END ==
INFO ssh: SSH not ready: #<Vagrant::Errors::SSHNoRoute: While attempting to connect with SSH, a "no route to host" (EHOSTUNREACH)
error was received. Please verify your network settings are correct
and try again.>
INFO subprocess: Starting process: ["/usr/local/bin/prlctl", "list", "cf688f07-7df1-4f56-9a3c-cdbf1f19db4f", "--no-header", "-o", "status"]
DEBUG subprocess: Command not in installer, not touching env vars.
INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
INFO subprocess: Starting process: ["/usr/local/bin/prlctl", "list", "cf688f07-7df1-4f56-9a3c-cdbf1f19db4f", "--info", "--no-header", "--json"]
DEBUG subprocess: Command not in installer, not touching env vars.
INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
DEBUG ssh: Checking key permissions: /Users/mihkelpajunen/.vagrant.d/insecure_private_keys/vagrant.key.ed25519
DEBUG ssh: Checking key permissions: /Users/mihkelpajunen/.vagrant.d/insecure_private_keys/vagrant.key.rsa
INFO ssh: Attempting SSH connection...
INFO ssh: Attempting to connect to SSH...
INFO ssh: - Host: 10.211.55.24
INFO ssh: - Port: 22
INFO ssh: - Username: vagrant
INFO ssh: - Password? false
INFO ssh: - Key Path: ["/Users/mihkelpajunen/.vagrant.d/insecure_private_keys/vagrant.key.ed25519", "/Users/mihkelpajunen/.vagrant.d/insecure_private_keys/vagrant.key.rsa"]
DEBUG ssh: - connect_opts: {:auth_methods=>["none", "hostbased", "publickey"], :config=>false, :forward_agent=>true, :send_env=>false, :keys_only=>true, :verify_host_key=>:never, :password=>nil, :port=>22, :timeout=>15, :user_known_hosts_file=>[], :verbose=>:debug, :logger=>#<Logger:0x0000000109f95538 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x0000000109f954e8 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x0000000109f95448 @shift_period_suffix=nil, @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<StringIO:0x0000000109f955d8>, @binmode=false, @mon_data=#<Monitor:0x0000000109f953f8>, @mon_data_owner_object_id=49180>>, :keys=>["/Users/mihkelpajunen/.vagrant.d/insecure_private_keys/vagrant.key.ed25519", "/Users/mihkelpajunen/.vagrant.d/insecure_private_keys/vagrant.key.rsa"], :remote_user=>"vagrant", :keepalive=>true, :keepalive_interval=>5}
I have also looked into the network configuration in Parallels Desktop, and as far as I can tell, this is the default configuration.
Shared
Host-Only
I am all ears should anyone have any suggestions as to how I could further troubleshoot the issue. Thank you.
Mihkel Pajunen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.