pablokbs / peladonerd

Repo con los archivos que uso para mi videos en youtube
2.03k stars 1.33k forks source link

Vagrantfile error al definir la red privada en Virtualbox #200

Closed johnclark84 closed 2 years ago

johnclark84 commented 2 years ago

Estimados

Intentando hacer un deploy del Vagrantfile que comenta el @pablokbs en su video me saltó un error en la consola:

❯ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'hashicorp/bionic64' version '1.0.282' is up to date...
==> default: Clearing any previously set network interfaces...
The IP address configured for the host-only network is not within the
allowed ranges. Please update the address used to be within the allowed
ranges and run the command again.

  Address: 192.168.100.2
  Ranges: 192.168.56.0/21

Valid ranges can be modified in the /etc/vbox/networks.conf file. For
more information including valid format see:

  https://www.virtualbox.org/manual/ch06.html#network_hostonly

Revisando la documentación, encontré esto:

On Linux, Mac OS X and Solaris Oracle VM VirtualBox will only allow IP addresses in 192.168.56.0/21 range to be assigned to host-only adapters. For IPv6 only link-local addresses are allowed. If other ranges are desired, they can be enabled by creating /etc/vbox/networks.conf and specifying allowed ranges there.

Por ende, si me lo permiten sugiero cambiar esta línea:

config.vm.network "private_network", ip: "192.168.100.2"

Por esta:

config.vm.network "private_network", ip: "192.168.56.2"

Saludos cordiales.

johnclark84 commented 2 years ago

Se la hecho un Pull request: https://github.com/pablokbs/peladonerd/pull/201 esperemos que esto sirva para otros.

Abrazo.

stale[bot] commented 2 years ago

Este issue se ha marcado automágicamente como "stale" porque no ha tenido actividad reciente. Va a ser cerrado si no se ve actividad nueva. Intentá hacer tu pregunta en Slack. Gracias por sus contribuciones.