Set Size Disk - Vagrant file

484 views
Skip to first unread message

Richard Stone

unread,
Mar 28, 2017, 6:28:27 PM3/28/17
to Vagrant
Hi to all,

for a university project I must create a Vagrant Machine with VirtualBox as provider. I must write a script with provisioners that setup the machine and many programs.

Because I necessary of a 200 or 250 GB of disk size, how can I set up this option in the Vagrant file.

In other word, can the Vagrant File set an arbitrary amount of disk space, at the some time how can it set memory RAM and cpu numbers?

Is the disk size a parameter of the chosen box? (In my case ubuntu/trusty64)

Thanks for your time.


Best Regards

Pietro

Alvaro Miranda Aguilera

unread,
Mar 29, 2017, 7:19:29 AM3/29/17
to vagra...@googlegroups.com
hello

Vagrant will use a base box, and start from there.

There are ways to resize the disk etc but is not very portable.

you could do it once and re-package but in the long term is better you create your own box with the size of the disk you require.

for this hashicorp have a tool that create vagrantboxes from code.


have a look at this project:

Thats a trusty box

Any question, feel free to ask.

Alvaro.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/184f8299-8244-48c5-8955-a24c780f33ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Richard Stone

unread,
Mar 29, 2017, 11:11:42 AM3/29/17
to Vagrant
Hi Alvaro,

thanks for the answer. I have find another hypothetical solution. After the download of the box, I go in the follow path:

/.vagrant.d/boxes/ubuntu-VAGRANTSLASH-trusty64/20170307.0.0/virtualbox


in this folder there is the file box.ovf. In this file I can modify the dimension of the disk. This solution isn't elegant and I don't know if it works.

My another question is: Can I make up a Vagrant Machine in another Vagrant Machine? I work in a Vagrant Machine running on a server. I must create a new Vagrant Machine in this running Vagrant Machine. Is this possible? All the operations must be made only by terminal!

What do you tell me? Which ways must I follow?

Thanks

Pietro

Alvaro Miranda Aguilera

unread,
Mar 29, 2017, 7:57:49 PM3/29/17
to vagra...@googlegroups.com
hello

if you have a hostpc and you can run vagrant

why you need vagrant inside vagrant?

can you explain more? i am not sure i understand ver clear what you want to do

thanks!
alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages