neerajmangal commented on issue #3533: Vagrant box goes out of disk quickly
URL: 
https://github.com/apache/incubator-openwhisk/issues/3533#issuecomment-381154231
 
 
   @chetanmeh I was trying to resize the disk  using VBoxManage but yes it is 
tedious. 
   I tried with a plugin vagrant-disksize, which provides a configuration 
option in vagrant file to specify the disk size. 
   
   1. On host installed vagrant-disksize
   `
   vagrant plugin install vagrant-disksize
   `
   2. Modified the vagrant file, added disk size during config stage. 
   
   `Vagrant.configure('2') do |config|
       config.vm.box = BOX
       config.vm.network :private_network, ip: MACHINE_IP
   +  config.disksize.size = '20GB'`
   
   3. run vagrant up
   
   I can see the disk size of the VM created now is 20GB. 
   
   `
   vagrant@ubuntu-xenial:~$ df -kh
   Filesystem              Size  Used Avail Use% Mounted on
   udev                    2.0G     0  2.0G   0% /dev
   tmpfs                   396M   12M  384M   3% /run
   /dev/sda1                20G  9.5G  9.9G  49% /
   tmpfs                   2.0G     0  2.0G   0% /dev/shm
   tmpfs                   5.0M     0  5.0M   0% /run/lock
   tmpfs                   2.0G     0  2.0G   0% /sys/fs/cgroup
   tmpfs                   396M     0  396M   0% /run/user/1000
   vagrant                 238G  161G   77G  68% /vagrant
   home_vagrant_openwhisk  238G  161G   77G  68% /home/vagrant/openwhisk
   `
   
   @csantanapr is already doing some optimizations over size issues but I think 
that would be good if we can use this plugin as configurable option if someone 
needs it.  
   WDYT?
   
   > This plugin works fine on xenial though and not tested on 17.10 (Artful), 
though.
    
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to