Skip to content
This repository was archived by the owner on Nov 18, 2017. It is now read-only.
This repository was archived by the owner on Nov 18, 2017. It is now read-only.

Vagrant up is very very slow #6

@spuder

Description

@spuder

Running vagrant up with the Vagrant file provided, takes over 10 minutes to start (not including the time it takes to download the box).

Here is the Vagrant file that I always use with my puppet manifests for reference. The box spins up within 60 seconds.

https://gist.github.com/spuder/9508ca074c3ce940be04
Here is anther example
https://github.com/spuder/puppet-gitlab/blob/master/Vagrantfile

sowen@spencers-mbp:/tmp/puppet-influxdb$ vagrant up
Bringing machine 'centos' up with 'virtualbox' provider...
Bringing machine 'ubuntu' up with 'virtualbox' provider...
==> centos: Importing base box 'centos64'...
==> centos: Matching MAC address for NAT networking...
==> centos: Setting the name of the VM: puppet-influxdb_centos_1412793678850_50361
==> centos: Clearing any previously set forwarded ports...
==> centos: Clearing any previously set network interfaces...
==> centos: Preparing network interfaces based on configuration...
    centos: Adapter 1: nat
==> centos: Forwarding ports...
    centos: 22 => 2222 (adapter 1)
==> centos: Booting VM...
==> centos: Waiting for machine to boot. This may take a few minutes...
    centos: SSH address: 127.0.0.1:2222
    centos: SSH username: vagrant
    centos: SSH auth method: private key
    centos: Warning: Connection timeout. Retrying...    # Vagrant pauses for a long time here
    centos: Warning: Connection timeout. Retrying...
    centos: Warning: Connection timeout. Retrying...
==> centos: Machine booted and ready!
==> centos: Checking for guest additions in VM...
    centos: The guest additions on this VM do not match the installed version of
    centos: VirtualBox! In most cases this is fine, but in rare cases it can
    centos: prevent things such as shared folders from working properly. If you see
    centos: shared folder errors, please make sure the guest additions within the
    centos: virtual machine match the version of VirtualBox you have installed on
    centos: your host and reload your VM.
    centos: 
    centos: Guest Additions Version: 4.2.10
    centos: VirtualBox Version: 4.3
==> centos: Setting hostname...                # Vagrant also pauses for several minutes here

Is there a reason for using the rsync to sync directories instead of using the traditional vagranty way of syning dirs ? I suspect that may be contributing to why it is so slow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions