1- add an Archlinux box ( for virtualbox )
vagrant box add archlinux/archlinux
vagrant box list
Code Block |
---|
title | vagrant box add archlinux/archlinux |
---|
collapse | true |
---|
|
PS C:\Users\jkriker\Documents\vagrant\veos.box2> vagrant box add archlinux/archlinux
==> box: Loading metadata for box 'archlinux/archlinux'
box: URL: https://vagrantcloud.com/archlinux/archlinux
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.
1) libvirt
2) virtualbox
Enter your choice: 2
==> box: Adding box 'archlinux/archlinux' (v2018.09.05) for provider: virtualbox
box: Downloading: https://vagrantcloud.com/archlinux/boxes/archlinux/versions/2018.09.05/providers/virtualbox.box
box: Progress: 4%100% (Rate: 183k249k/s, Estimated time remaining: 0:48:40))--:--:--)
==> box: Successfully added box 'archlinux/archlinux' (v2018.09.05) for 'virtualbox'!
PS C:\Users\jkriker\Documents\vagrant\veos.box2>
PS C:\Users\jkriker\Documents\vagrant\veos.box2> vagrant box list
arch (virtualbox, 0)
archlinux/archlinux (virtualbox, 2018.09.05)
bento/centos-7.3 (virtualbox, 2.3.4)
. . . |
2- install the disksize plugin
vagrant plugin install vagrant-disksize
vagrant plugin list
3- Modify the vagrantfile
Code Block |
---|
title | Vagrantfile |
---|
collapse | true |
---|
|
Vagrant.configure("2") do |config|
config.vm.box = "archlinux/archlinux"
#config.disksize.size = "20GB"
end |
#vagrant up
#vagrant ssh
(at the end #vagrant suspend / resume or #vagrant destroy )
Image Added