Skip to content

dmotte/vagrant-vagrantbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-vagrantbox

GitHub main workflow Vagrant Cloud

📦 Debian Vagrant box with Vagrant and VirtualBox for nested virtualization.

This project uses dmotte/vagrant-ansiblebox as base box.

📦 This box is also on Vagrant Cloud as dmotte/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.

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:

config.ssh.forward_x11 = true

and also install the xauth package inside the VM:

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