A better alternative to Vagrant
Asked Answered
H

9

32

We use Vagrant for dev environment automation and provisioning. It works smoothly. But sometimes, if vagrant has some problem(we faced LOT of them starting from SSH to networking config), the new developers who join us and are supposed to just boot up the box and start working, have a really hard time coping up with that. So I was just wondering, ain't there some easier way(like having a GUI like VirtualBox to start and end an env) of managing these virtual environments?
maybe my question should be, What are the best practices on this area, other than Vagrant?

Haunt answered 2/9, 2011 at 8:22 Comment(1)
I hear you. Vagrant is a 250MB download for Windows. I thought OK it must contain VirtualBox but no it doesn't, so it's another few hundreds megs on top of that. Then there is the image, I'm around 1GB and haven't started any work yet. No.Algonquian
O
36

Vagrant uses virtualbox as the virtualization layer, so you can start a vagrant vm using the gui. Add the following to your VagrantFile.

config.vm.boot_mode = :gui

Also take a look at sahara as it lets you treat it more like a sandbox with quick rollbacks, etc.

Organology answered 29/10, 2011 at 15:23 Comment(1)
personally my problems are with vagrant, starting a gui doesn't really help, vagrant isn't doing what I need to do.Tevet
C
9

I'll echo the other comment here. If you already have a setup that works smoothly make sure you have everyone using the same versions of VirtualBox, Vagrant and the basebox.

As for a UI and more distribution options you might find Wanton of interest: https://github.com/maestrodev/wanton

Contrabandist answered 22/10, 2011 at 20:20 Comment(0)
N
6

The nix package manager is really worth checking out: http://nixos.org/nix

It provides the command nix-shell, which starts a shell based on the file shell.nix, which corresponds to the Vagrantfile in the nix-world. In contrast to Vagrant however there is no costly virtualization involved. What makes the magic happen is the functional approach to package management using cryptographic hashes of the build inputs.

Nonillion answered 7/11, 2016 at 18:43 Comment(0)
U
5

The configuration was updated in v1.1 for GUI mode:

config.vm.provider "virtualbox" do |v|
  v.gui = true
end

From: http://docs.vagrantup.com/v2/virtualbox/configuration.html

Besides that, I am very happy with the new version, I would give it a try

Unwelcome answered 5/4, 2013 at 20:23 Comment(1)
The question isn't about having a GUI for your guests. It's about having a GUI to manage your guests, in the way that VirtualBox does.Midwinter
A
4

I'm not sure there is an alternative. Vagrant is a relatively new software. Problems with ssh on Vagrant seems to appear when virtualbox addons version on the VM is different from the Virtualbox version on the host machine, and I'm not sure there is a solution apart from reinstalling correct versions.

edit virtualbox addons are named VirtualBox Guest Additions

Ammann answered 28/9, 2011 at 8:29 Comment(3)
I assume you're talking about the VirtualBox Guest Additions? It might be clearer to a new user to use its full name. The file name is (depending on version, of course) something like VBoxGuestAdditions_4.1.16.isoFourdimensional
Yes in fact, I'm talking about VirtualBox Guest Additions. I'll edit my previous comment.Ammann
An old comment, but possibly useful. There is a plugin called vagrant-vbguest which will check on startup to see if the current version of the guest additions is up to date, and automatically download and compile them if not.Apian
V
4

Add "config.ssh.forward_x11 = true" to your Vagrantfile then you can easily use X-Windows.

Voronezh answered 15/1, 2014 at 4:6 Comment(0)
W
2

I used vagrant in the past and I also switched to a pure docker solution because it was too heavy / difficult to setup / slow to star (that is my personal point of view). I usually build my files with docker compose and when I don't want to do it manually I use stakkr (a lightweight wrapper made in python : https://github.com/edyan/stakkr).

Cheers

Whiffletree answered 19/8, 2017 at 14:11 Comment(0)
C
1

You could use Docker if you don't mind the configuration overhead https://www.docker.com/

Censure answered 1/4, 2017 at 16:51 Comment(0)
C
0

I suggest to use devilbox that using docker as backend

Cheese answered 30/11, 2022 at 7:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.