![]() I also went into Control Panel > Programs and Features > Turn Windows features on or off and installed.Restart if prompted and disconnect any DVD drives still connected. Install VirtualBox Guest Additions on your base box from the VirtualBox menu.These operations should be performed on the newly installed guest Windows 10 OS inside VirtualBox. Now we need to open up Windows so Vagrant can connect automatically and provision software for us on the box. Already made the incorrect choice? There is a fix. Choose private, otherwise you will get issues with winrm in the next step. When connecting to the network windows will ask you if the network you are connected to is public or private. Go ahead and login to the Windows 10 desktop. Let the Windows setup complete, you will be presented with a login prompt for your user vagrant. This is required if you want Vagrant to automatically connect to and provision machines on your base box. You want to create a local admin account on your clean install named vagrant with password also vagrant. Towards the end of the install you will be prompted to sign into your Microsoft account, again skip this. After this, installation is straight forward, if you want Windows to be installed activated, you can enter a license key now, otherwise skip prompts to enter a license key and this can always be entered later through Control Panel. It will ask you for an ISO file to boot from and you should have your Windows 10 ISO ready at hand. Next boot up your virtual machine in VirtualBox. Users of your base box can always modify these options in their Vagrantfile, using the VirtualBox specific configuration. Settings > General > Audio: Disable audio.Settings > General > System > Motherboard: Disable Floppy boot.Settings > General > Advanced: Enable bidirectional shared clipboard and drag-drop support.When creating a new machine in VirtualBox in the wizard a lot of options are auto-configured so you may need to edit the machine after it is created, going into Settings, to change some options. The idea behind these choices is to create your base box as light on resources as possible with as much room for expansion later as possible. Disable any unnecessary hardware like audio.Again this is something users can override in their Vagrantfile, so try not to require a higher number to start with. I chose 2048MB, but 1024MB would do as well. Memory: Choose a lowish value here, reason being users that use the base box can always increase the memory in their Vagrantfile.The default max-size is pretty low (32GB!) and won’t be much use for anyone and the disk will max out pretty quickly. Disk Space: Choose a virtual hard disk (VDI) dynamically allocated and choose a high upper limit for the size.You want to follow most of the advice given in the Vagrant documentation regarding base boxes 1 Vagrant: Creating a Base Box ( ). Name it whatever you like, though keep it simple and make a mental note of it as you will need to type this name out later. Start virtual box and create a new Windows 10 virtual machine. Package and Export the box through Vagrant.Making a windows Vagrant box in VirtualBox is four steps: You will need a valid license key for the version of windows you are installing if you plan to continue using the machine. You will need to locate one or get an evaluation version. I got mine from MSDN as part of my subscription. You will need a Windows 10 ISO file or disc.You will need Vagrant, again get the latest version.You will need VirtualBox, get the latest version and the corresponding extension pack.Vagrants documentation tries to put you off creating your own base boxes, rightly so this is a time consuming process and ideally you would save a lot of time simply using a base box someone else has created. If you are a complete newbie to Vagrant, wondering what it does, this topic is likely too advanced and will not help you. I will reference the original articles where possible, so you can read them if you wish. Some of the information within those articles still applies to Windows 10 and I used the minimum required changes to get my base box working with Vagrant. There is plenty of information out there but it is scattered, some of it is old and no longer relevant and most of it is for Windows 8.1 or Windows Server 2012. ![]() I read several articles about creating Windows base boxes for Vagrant. So I decided to go ahead and create a base box for Vagrant for Windows 10 Professional. VirtualBox is already allowing Windows 10 virtual machines as of version 5.0 (though Windows 10 is not officially supported). I recently decided to create my own Windows 10 base box for Vagrant. ![]()
0 Comments
Leave a Reply. |