Timed out while waiting for the machine to boot. This means that Vagrant was unable to communicate with the guest machine within the configured (“config.vm.boot_timeout” value) time period.
1、Timed out while waiting for the machine to boot. This means that Vagrant was unable to communicate with the guest machine within the configured (“config.vm.boot_timeout” value) time period.。如图1
Lenovo@DESKTOP-QLPK8QM MINGW64 ~/Homestead (v12.1.0) $ vagrant reload --provision ==> homestead: Attempting graceful shutdown of VM... homestead: Guest communication could not be established! This is usually because homestead: SSH is not running, the authentication information was changed, homestead: or some other networking issue. Vagrant will force halt, if homestead: capable. ==> homestead: Forcing shutdown of VM... ==> homestead: Checking if box 'lc/homestead' version '11.0.0' is up to date... ==> homestead: Clearing any previously set forwarded ports... ==> homestead: Clearing any previously set network interfaces... ==> homestead: Preparing network interfaces based on configuration... homestead: Adapter 1: nat homestead: Adapter 2: hostonly ==> homestead: Forwarding ports... homestead: 80 (guest) => 8000 (host) (adapter 1) homestead: 443 (guest) => 44300 (host) (adapter 1) homestead: 3306 (guest) => 33060 (host) (adapter 1) homestead: 4040 (guest) => 4040 (host) (adapter 1) homestead: 5432 (guest) => 54320 (host) (adapter 1) homestead: 8025 (guest) => 8025 (host) (adapter 1) homestead: 9600 (guest) => 9600 (host) (adapter 1) homestead: 27017 (guest) => 27017 (host) (adapter 1) homestead: 22 (guest) => 2222 (host) (adapter 1) ==> homestead: Running 'pre-boot' VM customizations... ==> homestead: Booting VM... ==> homestead: Waiting for machine to boot. This may take a few minutes... homestead: SSH address: 127.0.0.1:2222 homestead: SSH username: vagrant homestead: SSH auth method: private key Timed out while waiting for the machine to boot. This means that Vagrant was unable to communicate with the guest machine within the configured ("config.vm.boot_timeout" value) time period. If you look above, you should be able to see the error(s) that Vagrant had when attempting to connect to the machine. These errors are usually good hints as to what may be wrong. If you're using a custom box, make sure that networking is properly working and you're able to connect to the machine. It is a common problem that networking isn't setup properly in these boxes. Verify that authentication configurations are also setup properly, as well. If the box appears to be booting properly, you may want to increase the timeout ("config.vm.boot_timeout") value.
2、虽然 map 已经修改为 E:/wwwroot/vagrant,之前为:~/Code。仍然决定新建目录:~/Code
folders: - map: E:/wwwroot/vagrant to: /home/vagrant/Code
Lenovo@DESKTOP-QLPK8QM MINGW64 ~ $ cd ~ Lenovo@DESKTOP-QLPK8QM MINGW64 ~ $ pwd /c/Users/Lenovo Lenovo@DESKTOP-QLPK8QM MINGW64 ~ $ mkdir Code
3、再次运行:vagrant reload –provision,不再报错。
Lenovo@DESKTOP-QLPK8QM MINGW64 ~/Homestead (v12.1.0) $ vagrant reload --provision ==> homestead: Attempting graceful shutdown of VM... homestead: Guest communication could not be established! This is usually because homestead: SSH is not running, the authentication information was changed, homestead: or some other networking issue. Vagrant will force halt, if homestead: capable. ==> homestead: Forcing shutdown of VM... ==> homestead: Checking if box 'lc/homestead' version '11.0.0' is up to date... ==> homestead: Clearing any previously set forwarded ports... ==> homestead: Clearing any previously set network interfaces... ==> homestead: Preparing network interfaces based on configuration... homestead: Adapter 1: nat homestead: Adapter 2: hostonly ==> homestead: Forwarding ports... homestead: 80 (guest) => 8000 (host) (adapter 1) homestead: 443 (guest) => 44300 (host) (adapter 1) homestead: 3306 (guest) => 33060 (host) (adapter 1) homestead: 4040 (guest) => 4040 (host) (adapter 1) homestead: 5432 (guest) => 54320 (host) (adapter 1) homestead: 8025 (guest) => 8025 (host) (adapter 1) homestead: 9600 (guest) => 9600 (host) (adapter 1) homestead: 27017 (guest) => 27017 (host) (adapter 1) homestead: 22 (guest) => 2222 (host) (adapter 1) ==> homestead: Running 'pre-boot' VM customizations... ==> homestead: Booting VM... ==> homestead: Waiting for machine to boot. This may take a few minutes... homestead: SSH address: 127.0.0.1:2222 homestead: SSH username: vagrant homestead: SSH auth method: private key homestead: Warning: Connection aborted. Retrying... homestead: Warning: Connection reset. Retrying... homestead: homestead: Vagrant insecure key detected. Vagrant will automatically replace homestead: this with a newly generated keypair for better security. homestead: homestead: Inserting generated public key within guest... homestead: Removing insecure key from the guest if it's present... homestead: Key inserted! Disconnecting and reconnecting using new SSH key... ==> homestead: Machine booted and ready! ==> homestead: Checking for guest additions in VM... ==> homestead: Setting hostname... ==> homestead: Configuring and enabling network interfaces... ==> homestead: Mounting shared folders... homestead: /vagrant => C:/Users/Lenovo/Homestead homestead: /home/vagrant/Code => E:/wwwroot/vagrant ==> homestead: Detected mount owner ID within mount options. (uid: 1000 guestpath: /home/vagrant/Code) ==> homestead: Detected mount group ID within mount options. (gid: 1000 guestpath: /home/vagrant/Code) ==> homestead: Running provisioner: file... homestead: C:/Users/Lenovo/Homestead/aliases => /tmp/bash_aliases ==> homestead: Running provisioner: shell... homestead: Running: inline script ==> homestead: Running provisioner: shell... homestead: Running: inline script homestead: homestead: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDYbShMjEO5Jw9GNXNh7Nh7kqXtzuMRsj6EzOkaYY8u7niE/kd4M+YuVIuoImY2U1Huo1bQgsqIiHuyKobRLCFv/56W+rAD1d9wR2BNW1mjejwSLzKRVbr8HYnLpkqSJYom8UoZ4zkbuUz6wPvauCm/hKTLKYkCmWxt8LZjC7Y25JHAQflZFmhBI5jjcNQ4150yPobR+PmnJxrOmKDiAbLZVz5R+TfBF7cTO+KQbjDi4Ce1tzJM8u/ZTSMS6ESQN9FYMZUnhAqNS1STRex06l91Y+Tu496C/wC2CGWf1Ymqet6rmX8i0HnR/VEPa6ICTbsNfrbOGba98YVpnzJmGI4KFFiMc9DFwtkDR2th4+IdgBzW/FDGQFbzNll9jJR9bG2KfZpeUQiRC4BEgJxck4neXyEB5CdpR6X1Ej8jfyfynQrwrW4SPrgTwx+jMEiiG/8zhGigNqAWLyn0CUawlB4OHo8lLsiHCpq5WxWQkc42yPQD926FPFGxXxujVuWq2ps= wangqiang@fanxiapp.com homestead: ==> homestead: Running provisioner: shell... homestead: Running: inline script ==> homestead: Running provisioner: shell... homestead: Running: inline script ==> homestead: Running provisioner: shell... homestead: Running: inline script ==> homestead: Running provisioner: shell... homestead: Running: inline script ==> homestead: Running provisioner: shell... homestead: Running: inline script homestead: Invalid feature: mysql ==> homestead: Running provisioner: shell... homestead: Running: inline script homestead: Ignoring feature: mariadb because it is set to false ==> homestead: Running provisioner: shell... homestead: Running: inline script homestead: Ignoring feature: postgresql because it is set to false ==> homestead: Running provisioner: shell... homestead: Running: inline script homestead: Ignoring feature: ohmyzsh because it is set to false ==> homestead: Running provisioner: shell... homestead: Running: inline script homestead: Ignoring feature: webdriver because it is set to false ==> homestead: Running provisioner: shell... homestead: Running: C:/Users/Lenovo/AppData/Local/Temp/vagrant-shell20220829-23008-14upnya.sh ==> homestead: Running provisioner: shell... homestead: Running: C:/Users/Lenovo/AppData/Local/Temp/vagrant-shell20220829-23008-1iuztyd.sh ==> homestead: Running provisioner: Creating Certificate: laravel-8-shop-homestead.test (shell)... homestead: Running: script: Creating Certificate: laravel-8-shop-homestead.test homestead: Updating certificates in /etc/ssl/certs... homestead: rehash: warning: skipping duplicate certificate in ca.homestead.homestead.pem homestead: 1 added, 0 removed; done. homestead: Running hooks in /etc/ca-certificates/update.d... homestead: homestead: Adding debian:ca.homestead.homestead.pem homestead: done. homestead: done. ==> homestead: Running provisioner: Creating Site: laravel-8-shop-homestead.test (shell)... homestead: Running: script: Creating Site: laravel-8-shop-homestead.test ==> homestead: Running provisioner: shell... homestead: Running: inline script ==> homestead: Running provisioner: shell... homestead: Running: C:/Users/Lenovo/AppData/Local/Temp/vagrant-shell20220829-23008-540zib.sh ==> homestead: Running provisioner: Checking for old Schedule (shell)... homestead: Running: script: Checking for old Schedule ==> homestead: Running provisioner: Clear Variables (shell)... homestead: Running: script: Clear Variables ==> homestead: Running provisioner: Restarting Cron (shell)... homestead: Running: script: Restarting Cron ==> homestead: Running provisioner: Restart Webserver (shell)... homestead: Running: script: Restart Webserver ==> homestead: Running provisioner: Creating MySQL / MariaDB Database: laravel-8-shop-homestead (shell)... homestead: Running: script: Creating MySQL / MariaDB Database: laravel-8-shop-homestead homestead: We didn't find a PID for mariadb, skipping $DB creation ==> homestead: Running provisioner: shell... homestead: Running: C:/Users/Lenovo/AppData/Local/Temp/vagrant-shell20220829-23008-1q1lw98.sh ==> homestead: Running provisioner: Update motd (shell)... homestead: Running: script: Update motd ==> homestead: Running provisioner: shell... homestead: Running: C:/Users/Lenovo/AppData/Local/Temp/vagrant-shell20220829-23008-1006a48.sh
近期评论