StefanScherer / packer-windows

Windows Templates for Packer: Windows 11, Windows 10, Windows Server 2022, 2019, 2016, also with Docker
MIT License
1.28k stars 430 forks source link

Question - change disk size dynamically for vagrant machine #305

Closed iamzili closed 2 years ago

iamzili commented 3 years ago

Hello! I see that disk size is fixed for 60GB e.g on line. I started using StefanScherer/windows_2019 (btw thanks for that, nice box).

It is possible to somehow change disk size from Vagrantfile or provision scripts? For example I would like to start new vagrant machine via StefanScherer/windows_2019 but with 100GB disk. It is possible to somehow currently or I need to edit that json, and make a new vagrant box?

Thanks in advance!

StefanScherer commented 3 years ago

Hi @zili55 Thanks that you find the boxes useful 😊

I haven‘t used resizing existing VirtualBox or VMware disks, maybe this experimental feature could help https://www.vagrantup.com/docs/disks/usage

iamzili commented 2 years ago

okey, thanks for your answer, when I will have time I try it :)