I have created a Windows 8 VM in VirtualBox, and have customized settings, and installed software on it.
Now I would like to turn it into a Vagrant Base Box, so that I can share with team, and also spawn many other VMs based on my cutomized windows.
It is possible to do, I have seen Windows Base boxes in vagrantcloud. Except that there is no documentation on packaging an existing windows virtualbox VM.
Please help me with instructions, or link to instructions to create a Vagrant Base Box from my existing windows VM. creating a base box documentation does not help me, as it is for linux.
Thank you in advance SO community!
You can probably do that by using the --base
argument to vagrant package
.
First, locate the name of the VM on VirtualBox's GUI. Say it's called "Windows", you issue:
vagrant package --base Windows --output /path/to/windows.box
That .box
file will be your base box. You can install it locally by using
vagrant box install /path/to/windows.box
Alternatively you can make it available on a server and put its URL on the config.box_url
parameter in your Vagrantfile
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With