From 5e84f08c4a41ba10a2b23e2b44f90ed8eb0e8e0a Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Tue, 3 Jan 2023 20:08:32 +0900 Subject: [PATCH] Vagrantfile: fix disk resize error with VirtualBox Fix the following error with VirtualBox: ``` VirtualBox Provider: * The following settings shouldn't exist: disk ``` Signed-off-by: Akihiro Suda --- Vagrantfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index fde65c884..5a4f1fff9 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -24,10 +24,11 @@ Vagrant.configure("2") do |config| memory = 4096 cpus = 2 disk_size = 60 - config.vm.provider :virtualbox do |v| + config.vm.provider :virtualbox do |v, o| v.memory = memory v.cpus = cpus - v.disk :disk, size: "#{disk_size}GB", primary: true + # Needs env var VAGRANT_EXPERIMENTAL="disks" + o.vm.disk :disk, size: "#{disk_size}GB", primary: true end config.vm.provider :libvirt do |v| v.memory = memory