SSH issues for Laravel Vagrant Up

I am trying to create a Laravel application using a tramp manor. I am using the Windows 7 development environment. I am using Per Project Installation, and I am at the point of Laravel Documentation that I can disdain my project . When I make a tramp in my project, I hang over

SSH auth method: password

and I get the following message:

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.

I am using Laravel 5.3 and Vagrant 1.9.0. I used Vagrant 1.8.4, but as soon as I had problems, I installed Vagrant 1.9.0 but got the same error. I tried the following patch from here , and from vb.gui I could see the following error from a running server:

[   0.100000] Failed to access perfctr msr (MSR c0010007 is 0)
  lvmetad is not active yet, using direct activation during sysinit
  lvmetad is not active yet, using direct activation during sysinit
Scanning for Btrfs filesystems
/dev/mapper/vagrant--vg-root:clean, 127066/2559088 files, 1241443/10228736 blocks
[  10.420196] piix4_smbus 0000:00:07.0: SMBus base address uninitialized - updrade BIOS or use force_addr=0xadr
[    ] A start jon is running for Raise network interfaces (4 min 44s / 5min 5 s)

, , IP- Homestead.yaml .

Homestead.yaml:

---
ip: "192.168.10.10"
memory: 2048
cpus: 1
hostname: mysite
name: mysite
provider: virtualbox

authorize: C:/Users/xxx/.ssh/id_rsa.pub

keys:
    - C:/Users/xxx/.ssh/id_rsa

folders:
    - map: "C:/Users/xxx/www/mysite"
      to: "/home/vagrant/mysite"

sites:
    - map: homestead.app
      to: "/home/vagrant/mysite/public"

databases:
    - homestead

:

vagrant ssh-config

Host mysite
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentitiesOnly yes
LogLevel FATAL
ForwardAgent yes

:

vagrant global-status

:

id       name   provider   state   directory
-----------------------------------------------------------------------
66eb5bf  mysite virtualbox running C:/Users/xxx/www/mysite

, :

vagrant up --debug > vdebug.txt

, vdebug.txt:

Bringing machine 'mysite' up with 'virtualbox' provider...
==> mysite: Importing base box 'laravel/homestead'...

[KProgress: 20%
[KProgress: 30%
[KProgress: 60%
[KProgress: 70%
[KProgress: 90%
[K==> mysite: Matching MAC address for NAT networking...
==> mysite: Checking if box 'laravel/homestead' is up to date...
==> mysite: Setting the name of the VM: mysite
==> mysite: Clearing any previously set network interfaces...
==> mysite: Preparing network interfaces based on configuration...
    mysite: Adapter 1: nat
    mysite: Adapter 2: hostonly
==> mysite: Forwarding ports...
    mysite: 80 (guest) => 8000 (host) (adapter 1)
    mysite: 443 (guest) => 44300 (host) (adapter 1)
    mysite: 3306 (guest) => 33060 (host) (adapter 1)
    mysite: 5432 (guest) => 54320 (host) (adapter 1)
    mysite: 22 (guest) => 2222 (host) (adapter 1)
==> mysite: Running 'pre-boot' VM customizations...
==> mysite: Booting VM...
==> mysite: Waiting for machine to boot. This may take a few minutes...
    mysite: SSH address: 127.0.0.1:2222
    mysite: SSH username: vagrant
    mysite: SSH auth method: password

, ! : IP Homestead.yaml . . , . .

1

, .

2

Homestead.yaml , IP- 192.168.10.20 192.168.10.10 . , .

3

Vagrantfile, , Vagrant.configure :

config.vm.network "public_network", ip: "192.168.10.20", :bridge => "en1: Realtek PCIe GBE Family Controller #2"

, :

Specific bridge 'en1: Realtek PCIe GBE Family Controller #2' not found. You may be asked to specify
which network to bridge to.
+4
2

- , Ubuntu , , .

, , https://www.virtualbox.org/ticket/15705

Vagrantfile Vagrant.configure:

 config.vm.provider "virtualbox" do |vb|
        vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
    end

"".

+5

, .

. BIOS.

Vagrant.

+1

Source: https://habr.com/ru/post/1662773/


All Articles