All Projects → carlosefr → vagrant-templates

carlosefr / vagrant-templates

Licence: MIT license
Vagrantfiles for self-contained development/test environments.

Programming Languages

shell
77523 projects
Vim Script
2826 projects

Projects that are alternatives of or similar to vagrant-templates

Robox
The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
Stars: ✭ 303 (+982.14%)
Mutual labels:  freebsd, vagrant, debian, fedora, centos
Postinstall
💻 Bash Script to automate post-installation steps
Stars: ✭ 104 (+271.43%)
Mutual labels:  freebsd, debian, fedora, centos
Vagrant Box Templates
Stars: ✭ 100 (+257.14%)
Mutual labels:  vagrant, debian, fedora, centos
wsl-distrod
Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
Stars: ✭ 1,637 (+5746.43%)
Mutual labels:  debian, fedora, centos
Openvpn Install
OpenVPN road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora
Stars: ✭ 14,199 (+50610.71%)
Mutual labels:  debian, fedora, centos
Kvm Install Vm
Bash script to build local virtual machines using KVM/libvirt and cloud-init.
Stars: ✭ 248 (+785.71%)
Mutual labels:  debian, fedora, centos
Openvpn Install
Set up your own OpenVPN server on Debian, Ubuntu, Fedora, CentOS or Arch Linux.
Stars: ✭ 7,142 (+25407.14%)
Mutual labels:  debian, fedora, centos
Invidious-Updater
Automatic install and update script for Invidious
Stars: ✭ 181 (+546.43%)
Mutual labels:  debian, fedora, centos
Packer Boxes
Jeff Geerling's Packer build configurations for Vagrant boxes.
Stars: ✭ 495 (+1667.86%)
Mutual labels:  vagrant, debian, centos
Democratic Csi
csi storage for container orchestration systems
Stars: ✭ 120 (+328.57%)
Mutual labels:  freebsd, debian, centos
Ansible Role Hardening
Ansible role to apply a security baseline. Systemd edition.
Stars: ✭ 188 (+571.43%)
Mutual labels:  vagrant, debian, centos
insaneworks-packer-template
CentOS 7-8 8Stream / AlmaLinux 8 / FreeBSD 12 - 13 x64 + VirtualBox / VMWare for Packer Template + FreeBSD 13 / AlmaLinux 9 + Parallels
Stars: ✭ 38 (+35.71%)
Mutual labels:  freebsd, vagrant, centos
Anlinux Resources
Image and Script for LinuxOnAndroid App
Stars: ✭ 135 (+382.14%)
Mutual labels:  debian, fedora, centos
Anlinux Adfree
AnLinux, Ad free version.
Stars: ✭ 127 (+353.57%)
Mutual labels:  debian, fedora, centos
Serverfarmer
Manage multiple servers with different operating systems, configurations, requirements etc. for many separate customers in an outsourcing model.
Stars: ✭ 122 (+335.71%)
Mutual labels:  freebsd, debian, centos
Fpm Within Docker
Leverage fpm inside pre-baked docker images in order to build and test native DEB and RPM packages.
Stars: ✭ 80 (+185.71%)
Mutual labels:  debian, fedora, centos
Packer Templates
Stars: ✭ 90 (+221.43%)
Mutual labels:  vagrant, debian, fedora
Atilo
Linux installer for termux
Stars: ✭ 629 (+2146.43%)
Mutual labels:  debian, fedora, centos
Wireguard Install
WireGuard road warrior installer for Ubuntu, Debian, CentOS and Fedora
Stars: ✭ 650 (+2221.43%)
Mutual labels:  debian, fedora, centos
Iredmail
Full-featured, open source mail server solution for mainstream Linux/BSD distributions.
Stars: ✭ 343 (+1125%)
Mutual labels:  freebsd, debian, centos

Vagrant Templates

The point of this repository is to hold Vagrantfile templates that I personally use as starting points for self-contained development/testing environments.

These are not minimal templates. They include configuration tweaks, workarounds for common issues that I bumped into, and provisioning scripts that install a few extra packages and customize the shell environment a bit. Check the appropriate Vagrantfile and the vagrant/provision.sh script, they should be fairly easy to modify. Some usage examples:

  • Use them as is to spin up readily usable VMs where you can log into and test random stuff.
  • Add the necessary steps to provision your application inside the VM, maybe removing some redundant things.
  • Just use them as a reference to write your own minimal environments with tweaked settings.

These templates usually support "official" vagrant boxes, but some default to my own (mostly bento-based) boxes at app.vagrantup.com/carlosefr for convenience (i.e. pre-installed guest additions).

Dependencies

You'll need VirtualBox and Vagrant. Some templates require the vagrant-vbguest plugin installed (to share folders with the host) and may also require the vagrant-reload plugin (to allow the VM to be immediately rebooted after provisioning).

Notes

Host-Only Networking

Starting with version 6.1.28, VirtualBox restricts the address ranges usable in host-only networks which causes vagrant up to fail as it tries to create an host-only network using a disallowed address range.

To work around this, the templates in this repository force vagrant up to use the vboxnet0 network, which must be created beforehand. Go to File -> Host Network Manager in VirtualBox and create the vboxnet0 network if it doesn't already exist, also making sure it has the DHCP server enabled.

Local Customization

The default VM size is defined in the Vagrantfile but, sometimes, it's useful to locally override these settings without affecting other users of the same repo. Do this by creating a .vagrant_size.json next to the Vagrantfile with the following (example) contents:

{
    "cpus": 2,
    "memory": 4096
}

Guest Additions

By default, the vagrant-vbguest plugin tries to install/update the VirtualBox Guest Additions on every vagrant up. I find this annoying and recommend you to disable this behavior by adding something like the following to your ~/.vagrant.d/Vagrantfile:

Vagrant.configure(2) do |config|
    ...

    if Vagrant.has_plugin?("vagrant-vbguest")
        config.vbguest.auto_update = false
        config.vbguest.allow_downgrade = false
    end

    ...
end

The templates that need to install/update the VirtualBox Guest Additions already (re)enable auto_update explicitly.

Clock Drift

On older hosts the (VM) clocks may drift quite significantly with paravirtualization enabled, and I never quite figured out how to fix it. If you notice this happening, just add the following to your ~/.vagrant.d/Vagrantfile:

Vagrant.configure(2) do |config|
    ...

    config.vm.provider "virtualbox" do |v, override|
        v.customize ["modifyvm", :id, "--paravirtprovider", "legacy"]
    end

    ...
end
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].