Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I followed the given instructions on my MacOSX 10.15.7 following brew installs of vagrant and virtualbox, but running vagrant up resulted in

    ==> 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 key
        default: Warning: Remote connection disconnect. Retrying...
        ...
    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 cannot find any config.vm.boot_timeout in Vagrantfile


Default value is 300 seconds: https://developer.hashicorp.com/vagrant/docs/vagrantfile/mac...

So, just set config.vm.boot_timeout to 900 in the vagrant file, and see what happens.


Re-running vagrant up gives

    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Checking if box 'debian/bookworm64' version '12.20240212.1' is up to date...

    ==> default: Machine 'default' has a post `vagrant up` message. This is a message
    ==> default: from the creator of the Vagrantfile, and not from Vagrant itself:
    ==> default: 
    ==> default: Vanilla Debian box. See https://app.vagrantup.com/debian for help and bug reports
almost immediately. Looks like timing out was not the real issue. I can run vagrant ssh now.

Realizing there's no cc and no git, I try

    $ apt-get update
    Reading package lists... Done
    E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
Hmm, still some challenges ahead...


sudo apt-get update?


Ah, of course. Have not used Linux for so long, I forgot.


or just

sudo apt update




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: