1

Pretty much what the title says: I need Kitchen to tell VirtualBox that the VM's hard drive should be 500gb. I've scoured the docs and not found anything (kitchen.ci).

Am I just not looking in the right places?

Jake
  • 906
  • 10
  • 23
  • I think you are using vagrant to launch virtualbox. So here is the docs: https://github.com/test-kitchen/kitchen-vagrant – Draco Ater Oct 21 '20 at 16:44
  • frustation - looks like this is inside VirtualBox itself. The base image I started with was built to 40GB and its too old to increase the size. So it looks like I have to create a fresh base image using the new VirtualBox format that can be resized. – Jake Oct 21 '20 at 18:40

1 Answers1

0

the disk size is given by the box that you are using. though, you can override it using vagrant-disksize.

  1. install vagrant-disksize plugin for vagrant

    vagrant plugin install vagrant-disksize
    
  2. create a Vagrantfile that looks like the following

    Vagrant.configure('2') do |config|
      config.vagrant.plugins = ['vagrant-disksize']
      config.disksize.size = '50GB'
    end
    
  3. add the Vagrantfil to the vagrantfiles in the driver configuration in .kitchen.yaml

    ---
    driver:
      vagrantfiles:
        - Vagrantfile
    
Mr.
  • 9,429
  • 13
  • 58
  • 82