Muszę uruchomić vagranta (nie dockera). Mam błąd:
m@my:~/Desktop/MV$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'peterrehm/xenial-php71' is up to http://www.php.net/date... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private http://www.php.net/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) http://www.php.net/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. m@my:~/Desktop/MV$ vagrant init peterrehm/xenial-php71
(...) # documentation for more information about their specific syntax and use. # config.vm.provision "shell", inline: <<-SHELL # apt-get update # apt-get install -y apache2 # SHELL http://www.php.net/end config.vm.boot_timeout 1000
m@my:~/Desktop/MV$ vagrant up There was an error loading a Vagrantfile. The http://www.php.net/file being loaded and the error message are shown below. This is usually caused by a syntax error. Path: /home/m/Desktop/MV/Vagrantfile Line number: 73 Message: NameError: undefined local variable or method `config' for main:Object m@my:~/Desktop/MV$
wstaw przed `end`
m@my:~/Desktop/VM$ sudo apt install virtualbox virtualbox-ext-http://www.php.net/pack
m@my:~/Desktop/VM$ cat Vagrantfile; vagrant up Vagrant.configure("2") do |config| config.vm.box = "peterrehm/xenial-php71" config.vm.boot_timeout = 1000 config.vm.provider "virtualbox" do |vb| vb.gui = true http://www.php.net/end http://www.php.net/end Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'peterrehm/xenial-php71' is up to http://www.php.net/date... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private http://www.php.net/key default: Warning: Connection http://www.php.net/reset. Retrying... default: Warning: Remote connection disconnect. Retrying... default: Warning: Connection http://www.php.net/reset. Retrying... default: Warning: Remote connection disconnect. Retrying... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders... default: /vagrant => /home/m/Desktop/VM ==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` ==> default: flag to force provisioning. Provisioners marked to run always will still run. m@my:~/Desktop/VM$
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)