$script = <<-SCRIPT echo Installing Kontain... date > /etc/vagrant_provisioned_at # install utilities sudo apt install jq # install Kontain sudo mkdir -p /opt/kontain ; sudo chown -root /opt/kontain curl -s https://raw.githubusercontent.com/kontainapp/km/latest/km-releases/kontain-install.sh | sudo bash SCRIPT Vagrant.configure("2") do |config| # The most common configuration options are documented and commented below. # For a complete reference, please see the online documentation at # https://docs.vagrantup.com. # Every Vagrant development environment requires a box. You can search for # boxes at https://vagrantcloud.com/search. # config.vm.box = "generic/fedora34" config.vm.box = "hashicorp/bionic64" config.vm.synced_folder ".", "/vagrant", disabled:true config.vm.provision :docker # If you want to have docker-compose installed as well, # you need to do this first before bringing up the vagrant VM # $ vagrant plugin install vagrant-docker-compose # and uncomment the line below to have the provisioner install Docker-compose # config.vm.provision :docker_compose config.vm.provision "shell", inline: $script config.vm.provider "virtualbox" do |vb| # # Customize the amount of memory on the VM: # vb.memory = "1024" # for mac/virtualbox, enable nested virtualization vb.customize ['modifyvm', :id, '--nested-hw-virt', 'on'] end end