Pre-Install Vagrant and VirtualBox on Build Workers

ukio's Avatar


30 Dec, 2014 01:30 PM

Vagrant + VirtualBox are a sweet combination for testing infrastructure on Windows (and other platforms too).

Here are some initial tests which download and install Vagrant / Virtualbox and then bring up an Ubuntu VM:

On azure it takes about 8-12 minutes for downloading and installing vagrant + virtualbox. On hyperv it's much faster (2-4 minutes) but still takes some precious build time.

In addition to installing vagrant + virtualbox the time for bringing up a VM varies between 4 (hyperv) and up to 15 (azure) minutes.

It would be super useful if Vagrant and VirtualBox were already preinstalled, especially on azure where this alone takes ~10 minutes.

From my experience:

  • VirtualBox can be installed only once as it writes registry entries and creates additional network adapters, which is OK because usually you update it very rarely
  • Vagrant can coexist in multiple installations / directories, you just have to add its bin directory to the path (same pattern as with the different Ruby runtimes). This would allow for switching between different vagrant versions (e.g. latest from 1.6 line vs. latest from 1.7 line)

To my knowledge AppVeyor would be the very first platform that enables infrastructure and cookbook testing that this is free for OSS! (with the performance penalty though, which would be a good chance for getting new paying customers too)

What do you think?

  1. 1 Posted by ukio on 12 Jan, 2015 10:56 PM

    ukio's Avatar

    Hi Feodor, any comments on this so far?

  2. Support Staff 2 Posted by Feodor Fitsner on 12 Jan, 2015 10:58 PM

    Feodor Fitsner's Avatar

    Well, I think we could give it a try on a test image. Though I can't give any ETA.

  3. 3 Posted by ukio on 28 Jun, 2015 09:43 PM

    ukio's Avatar

    Hi Feodor,

    I heard about the new everything Hyper-V and SSD infrastructure, and wanted to give it a try again.

    Is there any way how I could tell that my account is on the new infrastructure already?

    Cheers, Torben

    P.S: actually, this is my real account for private FOSS projects:
    I was using only for testing the Hyper-V stuff when it came out (somehow it was not possible to change the above account back then...)

  4. Support Staff 4 Posted by Feodor Fitsner on 29 Jun, 2015 04:52 AM

    Feodor Fitsner's Avatar

    Both accounts have been moved to a new environment. Let me know how it goes.

  5. 5 Posted by ukio on 29 Jun, 2015 06:35 AM

    ukio's Avatar

    Hey Feodor, the instantaneous builds are AWESOME!

    I missed that so much and fell 1000% more productive right now. To be earnest, I already discarded appveyor as "not usable in free tier", but gladfully I still read the newsletters and gave it a try again :-)

    I'll check further and see how builds are going, and if there is still a need for preinstalled vagrant / virtualbox or if it's fast enough with the new environment

  6. Support Staff 6 Posted by Feodor Fitsner on 29 Jun, 2015 06:38 AM

    Feodor Fitsner's Avatar

    Glad you like new speeds :)

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:57 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac