-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Expand file tree
/
Copy pathVagrantfile
More file actions
28 lines (22 loc) · 783 Bytes
/
Copy pathVagrantfile
File metadata and controls
28 lines (22 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
# Optional: specific version
# config.vm.box_version = "20240112.0.0"
# Networking example: uncomment to enable
# config.vm.network "private_network", ip: "192.168.56.10"
# Sync a host folder to guest VM (uncomment if needed)
# config.vm.synced_folder "./host_folder", "/home/vagrant/guest_folder"
# Provision using a shell script (inline)
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y nasm make build-essential grub-pc-bin qemu-system-x86 zip
SHELL
# Optional VirtualBox tweaks
config.vm.provider "virtualbox" do |vb|
vb.name = "modern_vm"
vb.memory = 2048
vb.cpus = 2
end
end