From d0fcdbec206a2b88da59b86d6a2cf33298c99e2c Mon Sep 17 00:00:00 2001 From: Till Wegmueller Date: Mon, 22 Dec 2025 19:39:15 +0100 Subject: [PATCH] Update Vagrantfile with memory configuration, synced folder, and provisioning enhancements - Added provider-specific memory allocation (8192 MB) for VirtualBox and Libvirt. - Configured synced folder using rsync with `.git/` and `target/` exclusions. - Streamlined provisioning by replacing GCC dependencies with Rust and updating package installation list. - Removed redundant provisioning script for Rust setup. --- Vagrantfile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 89e6325..e99b2d3 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -3,17 +3,22 @@ Vagrant.configure("2") do |config| config.vm.box = "openindiana/hipster" + config.vm.synced_folder ".", "/vagrant", type: "rsync", + rsync__exclude: [".git/", "target/"] + + config.vm.provider "virtualbox" do |vb| + vb.memory = "8192" + end + + config.vm.provider "libvirt" do |lv| + lv.memory = "8192" + end + config.vm.provision "shell", inline: <<-SHELL set -ex - pkg install -v system/library/gcc-4-runtime build-essential system/library/g++-4-runtime jq + pkg install -v developer/lang/rustc build-essential jq mkdir /ws chown vagrant:vagrant /ws zfs create -o mountpoint=/zones rpool/zones SHELL - - config.vm.provision "shell", privileged: false, inline: <<-SHELL - set -ex - chmod 664 $HOME/.bashrc - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- --profile complete -y - SHELL end