A worked example, rendered from real sample data. Sign in to run the tool on your own input.
web-vm
ubuntu/jammy64
2048
2Generated Vagrantfile
──────────────────────────────────────────────────
# -*- mode: ruby -*-
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/jammy64"
config.vm.hostname = "web-vm"
config.vm.provider "virtualbox" do |vb|
vb.name = "web-vm"
vb.memory = 2048
vb.cpus = 2
end
config.vm.network "private_network", ip: "192.168.56.10"
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y curl wget git
SHELL
config.vm.synced_folder ".", "/vagrant", disabled: false
end
Usage:
vagrant up - Start and configure VM
vagrant ssh - SSH into VM
vagrant halt - Stop VM
vagrant destroy - Remove VM
Generate Vagrant configuration files for VM setup and provisioning. Part of the DevTools Surf developer suite. Browse more tools in the Developer Utilities collection.