Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dmotte/vagrant-vagrantbox

📦 Debian Vagrant box with Vagrant and VirtualBox for nested virtualization
https://github.com/dmotte/vagrant-vagrantbox

actions amd-v amdv ansible automation base box debian github github-actions inside intel nested nested-virtualization playbook vagrant virtualbox virtualization vt-x vtx

Last synced: 12 days ago
JSON representation

📦 Debian Vagrant box with Vagrant and VirtualBox for nested virtualization

Awesome Lists containing this project

README

        

# vagrant-vagrantbox

[![GitHub main workflow](https://img.shields.io/github/actions/workflow/status/dmotte/vagrant-vagrantbox/main.yml?branch=main&logo=github&label=main&style=flat-square)](https://github.com/dmotte/vagrant-vagrantbox/actions)
[![Vagrant Cloud](https://img.shields.io/badge/vagrant-dmotte/vagrantbox-blue?logo=vagrant&style=flat-square)](https://app.vagrantup.com/dmotte/boxes/vagrantbox)

:package: **Debian Vagrant box** with **Vagrant** and **VirtualBox** for nested virtualization.

This project uses [dmotte/vagrant-ansiblebox](https://github.com/dmotte/vagrant-ansiblebox) as base box.

> :package: This box is also on **Vagrant Cloud** as [`dmotte/vagrantbox`](https://app.vagrantup.com/dmotte/boxes/vagrantbox).

## Usage

See https://github.com/dmotte/misc/blob/main/examples/vagrant-ansible-provisioner for inspiration on how you could use this box.

Remember to give your VM a decent amount of **RAM** and **CPU**, because it has to run other VMs inside.

```ruby
config.vm.provider "virtualbox" do |vb|
vb.memory = 8192
vb.cpus = 8
end
```

If you want to be able to access the **VirtualBox GUI**, you must set the Vagrant **X11 forwarding** flag:

```ruby
config.ssh.forward_x11 = true
```

and also install the `xauth` package inside the VM:

```ruby
config.vm.provision "shell", inline: <<-SHELL
apt-get update; apt-get install -y xauth
SHELL
```