Create Windows Vagrant Box

Create Windows Vagrant Box 3,9/5 1327 votes

I'm trying to create a Windows Server 2012 R2 Vagrant box from a VirtualBox instance. Most of the tutorials I follow just say to run. Vagrant package -base packer-virtualbox-iso- -output windows-2012r2.box. Installing Windows 10 Once your Virtual Switch has been created, you can start the process of installing creating a Windows 10 VM. Initiate a new VM creation from the Hyper-V Manager. You will be guided through a list of screens in which you can use to configure your VM. Creation of the Base Box. Instead of signing in to your Microsoft account click “Create a new account” and then “Sign in without a Microsoft account”. Create user vagrant with password vagrant. After the installation is complete boot the Windows 8.1 machine. Once up and running select “Devices - Insert Gust Additions CD image ” from the VirtualBox menu. I have iso image of windows 7. How can i create windows vagrant box using this iso image. I tried 'vagrant box add name fileLocation of iso'. But box wasn't created. Oct 18, 2017  Vagrant is an open-source software product for building and maintaining portable virtual software development environments, e.g. For VirtualBox, Hyper-V, Docker, VMware, and AWS.

Active10 months ago

I have iso image of windows 7. How can i create windows vagrant box using this iso image.

bablubablu
3861 gold badge5 silver badges19 bronze badges

1 Answer

Vagrant works with box not OS ISO

You can read more on box at https://docs.vagrantup.com/v2/boxes.html but basically Boxes are the package format for Vagrant environments. A box can be used by anyone on any platform that Vagrant supports to bring up an identical working environment.

The easiest to start with is to download an existing box (.box file) both https://app.vagrantup.com/boxes/search and http://www.vagrantbox.es are good resources to find a box that should match your need.

If really you want to start with the ISO and build your own box (this is more advanced topic, I would only recommend for specific usage), you would need to look at the packer tool (https://www.packer.io) and getting existing templates for your target OS (like https://github.com/joefitzgerald/packer-windows for windows box)

Frédéric HenriFrédéric Henri
37.8k5 gold badges65 silver badges96 bronze badges

Not the answer you're looking for? Browse other questions tagged vagrantvagrantfilevagrant-windowsvagrant-plugin or ask your own question.

Viewed 508 times

Create Windows Vagrant Box Ubuntu

I'm trying to create a Windows Server 2012 R2 Vagrant box from a VirtualBox instance. Most of the tutorials I follow just say to run

vagrant package --base packer-virtualbox-iso-1450701695 --output windows-2012r2.box

and then run

vagrant box add windows-2012r2 windows-2012r2.box

but this results in

Create A Windows 2016 Vagrant Box

Ap human geography notes pdf. Any suggestions? Also I'm trying to do this because I need to run a Powershell command on the box before saving it, so a pointer to how I'd be able to update and save an existing vagrant box so that it can be reused would be good too.

Create Vagrant Box

Steve JohnstoneSteve Johnstone

Create Windows Vagrant Box Add

Browse other questions tagged vagrantvirtualboxwindows-server-2012-r2packer or ask your own question.