Problema al levantar Vagrant
Hola a todos,
Les comento a todos que eh migrado a Debian Stretch y estoy teniendo
unos problemas con Vagrant.
Sistema operativo: Debian 9.0 (Stretch) AMD64
Vagrant: 1.9.5
Virtual: Virtual Box OS versión 5.1
El problema que me aparece es que el vagrant no esta levantando el
adaptador de red de la virtual box (vboxnet0).
Dejo la información que me da la consola:
hmontero@HP-HMONTERO:~/Proyectos/portal-laravel$ vagrant up
Bringing machine 'portal-laravel' up with 'virtualbox' provider...
==> portal-laravel: Box 'educar/portal-laravel' could not be found.
Attempting to find and in
stall...
portal-laravel: Box Provider: virtualbox
portal-laravel: Box Version: >= 0
==> portal-laravel: Loading metadata for box
'http://packages.educ.gov.ar/educar-boxes/portal
-laravel/last/portal-laravel.json'
portal-laravel: URL:
http://packages.educ.gov.ar/educar-boxes/portal-laravel/last/portal-
laravel.json
==> portal-laravel: Adding box 'educar/portal-laravel' (v0.3) for
provider: virtualbox
portal-laravel: Downloading:
http://packages.educ.gov.ar/educar-boxes/portal-laravel/vers
iones/0.3/portal-laravel-0.3.box
==> portal-laravel: Box download is resuming from prior download progress
==> portal-laravel: Successfully added box 'educar/portal-laravel'
(v0.3) for 'virtualbox'!
==> portal-laravel: Importing base box 'educar/portal-laravel'...
==> portal-laravel: Matching MAC address for NAT networking...
==> portal-laravel: Checking if box 'educar/portal-laravel' is up to date...
==> portal-laravel: Setting the name of the VM:
portal-laravel_portal-laravel_1498352247358_6
659
==> portal-laravel: Clearing any previously set network interfaces...
==> portal-laravel: Preparing network interfaces based on configuration...
portal-laravel: Adapter 1: nat
portal-laravel: Adapter 2: hostonly
==> portal-laravel: Forwarding ports...
portal-laravel: 22 (guest) => 2222 (host) (adapter 1)
==> portal-laravel: Running 'pre-boot' VM customizations...
==> portal-laravel: Booting VM...
==> portal-laravel: Waiting for machine to boot. This may take a few minutes...
portal-laravel: SSH address: 127.0.0.1:2222
portal-laravel: SSH username: vagrant
portal-laravel: SSH auth method: private key
==> portal-laravel: Machine booted and ready!
==> portal-laravel: Checking for guest additions in VM...
portal-laravel: No guest additions were detected on the base box
for this VM! Guest
portal-laravel: additions are required for forwarded ports, shared
folders, host only
portal-laravel: networking, and more. If SSH fails on this machine,
please install
portal-laravel: the guest additions and repackage the box to continue.
portal-laravel:
portal-laravel: This is not an error message; everything may
continue to work properly,
portal-laravel: in which case you may ignore this message.
==> portal-laravel: Configuring and enabling network interfaces...
==> portal-laravel: Exporting NFS shared folders...
==> portal-laravel: Preparing to edit /etc/exports. Administrator
privileges will be required
...
[sudo] password for hmontero:
● nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled;
vendor preset: enabled)
Active: active (exited) since Sat 2017-06-24 20:23:22 -03; 1h 35min ago
Process: 667 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited,
status=0/SUCCESS)
Process: 652 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Main PID: 667 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/nfs-server.service
==> portal-laravel: Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -o vers=3,udp
192.168.10.1:/home/hmontero/Proyectos/portal-laravel /vagrant
Stdout from the command:
Stderr from the command:
mount.nfs: Connection timed out
VagrantFile:
# Versión de la API de Vagrant
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Definir máquina virtual
config.vm.define :'portal-laravel'
# Configurar caja
config.vm.box = "educar/portal-laravel"
config.vm.box_url =
"http://packages.educ.gov.ar/educar-boxes/portal-laravel/last/portal-laravel.json"
# Configurar proveedor
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end
# Configurar carpeta compartida
config.vm.synced_folder ".", "/vagrant", type: "nfs"
# Configurar dirección de IP
config.vm.network "private_network", ip: "192.168.10.2"
end
Desde ya, muchas gracias
--
Saludos
**Hernan**
Reply to: