Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Vagrant Disksize | 407 | 2 | 4 years ago | 4 | October 26, 2018 | 24 | mit | Ruby | ||
Vagrant plugin to resize disks in VirtualBox | ||||||||||
Spacecore | 223 | 19 days ago | 2 | Kotlin | ||||||
SpaceCore is a virtual Android system engine that can engage users clone and run dual applications,this engine can also support device simulation, fake GPS and many other features.SpaceCore是一个虚拟引擎内核,提供在Android上克隆和运行虚拟应用程序,并且已支持设备模拟、模拟定位以及其他更多的功能。 | ||||||||||
Vagrant Alpine | 137 | 1 | 4 years ago | 6 | November 19, 2018 | 7 | mit | Ruby | ||
Vagrant plugin for Alpine Linux Guest | ||||||||||
Wordpress | 97 | 4 days ago | 16 | July 24, 2016 | 34 | gpl-3.0 | PHP | |||
The WordPress project layout used by many of Seravo's customers, suitable also for local development with Vagrant and git deployment | ||||||||||
Vagrant Elasticsearch Cluster | 58 | 5 years ago | 3 | mit | HTML | |||||
[NOT MAINTAINED] Create an ElasticSearch cluster with a simple single bash command. Config through environment variables: RAM, cluster name, number of nodes, network ip,... | ||||||||||
Provisioning Gradle Plugin | 38 | 9 years ago | Groovy | |||||||
Gradle Plugin for Driving Server Provisioning Through Configuration | ||||||||||
Virtualbox Plugin | 31 | 4 years ago | 3 | Java | ||||||
Jenkins virtualbox plugin | ||||||||||
Volatility Plugin Tutorial | 21 | 6 years ago | ||||||||
Development guide for Volatility Plugins | ||||||||||
Packer Post Processor Virtualbox To Hyperv | 20 | 5 years ago | May 25, 2021 | 1 | apache-2.0 | Go | ||||
Packer plugin to create Hyper-V vagrant boxes from VirtualBox artifacts | ||||||||||
Vagrant Mosh | 13 | 8 years ago | 1 | May 10, 2015 | 1 | mit | Ruby | |||
Vagrant plugin to use Mosh to connect to box |
A Vagrant plugin to resize disks in VirtualBox
vagrant plugin install vagrant-disksize
Set the size you want for your disk in your Vagrantfile. For example
Vagrant.configure('2') do |config|
config.vm.box = 'ubuntu/xenial64'
config.disksize.size = '50GB'
end
You can specify the size as a raw number (in bytes) or using KB, MB, GB or TB (though I'd be interested to learn more if you are using Vagrant to create multi-terabyte disks). Internally the size will be converted to megabytes, for ease of interaction with VirtualBox. If the value you specify isn't a whole number of megabytes, it will be rounded up, to ensure you have at least the capacity you requested. Note that the plugin uses the original definitions so, for example, 1 GB = 1024 MB; we don't have to use hardware manufacturer marketing maths here and it makes the internal maths easier.
At present only the first disk will be resized. That seems to be OK for typical boxes such as the official Ubuntu images for Xenial, but there may well be other configurations where the first disk found isn't the main HDD.
The plugin only works with VirtualBox but it will issue an error message and then disable itself if you try to use it with another provider.
Disks can only be increased in size. There is no facility to shrink a disk.
Depending on the guest, you may need to resize the partition and the filesystem from within the guest. At present the plugin only resizes the underlying disk.
This hasn't been tested on a wide variety of versions of Vagrant or VirtualBox. It works for, at least, Vagrant 1.8.5 and VirtualBox 5.1.x, but any feedback about other versions, particularly older ones, would be much appreciated.
After checking out the repo, run bin/setup
to install dependencies.
You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
To release a new version, update the version number in version.rb
, and then
run bundle exec rake release
, which will create a git tag for the version,
push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at sprotheroe/vagrant-disksize.
The gem is available as open source under the terms of the MIT License.