Windows  Server 2016 was announced a few weeks ago. I recommend you download the Windows 2016 Server Evaluation version.
This blog is the first part of a multi-part series. The first part will show how to install Windows Server 2016 on VirtualBox VM. This is an update to Windows Server 2016 using VirtualBox for Docker Containers. First steps:

  1. Download the Windows 2016 Server Evaluation version.  It’s a ~5GB download so try on a reliable and fast Internet connection.
  2. Create a new virtual machine (VM) using Virtual Box:
    docker-windows-2016-1
  3. Set up a dynamically allocated HDD, make sure to choose 30GB. The installed operating system is ~17GB. The base windowsservercore image is 3.8GB. So if you chose the default 20GB HDD, then no Docker containers can run on it.
  4. Point to the downloaded ISO.
  5. Start the VM, take default settings:
    docker-windows-2016-4
  6. Click on Next:
    docker-windows-2016-5
    Click on Install now.
  7. Select the Desktop Experience version otherwise the standard Windows desktop will not be available after Windows is booted:
    docker-windows-2016-6
    Click on Next.
  8. Accept the license terms:
    docker-windows-2016-7
  9. Select Custom Install as we are installing as a VM:
    docker-windows-2016-8
  10. Take the default for the allocated space:
    docker-windows-2016-9
  11. Click on Next to start the installation:
    docker-windows-2016-10
    Wait for a few minutes for the installation to complete:
    docker-windows-2016-11
    It will take a few minutes for the install to complete.
  12. Enter the administrator’s password:
    docker-windows-2016-13
    Seems like it requires alphabets, numbers, and special characters. The dialog expects to meet the password criteria without showing the criteria, this is weird!
  13. Entering the credentials shows the Windows login screen.
  14. In classical Windows, you do a three-finger salute of Ctrl+Alt+Del to view Desktop. This key combination needs to be sent to Windows VM using the Virtual Box menu:
    docker-windows-2016-15
  15. Server Manager Dashboard shows up:
    docker-windows-2016-16
  16. The latest updates need to be installed. Click on the Start icon, and search for update:
    docker-windows-2016-17
    Select Check for Updates.
  17. The Update window looks like:
    docker-windows-2016-18
    Select Check for updates again.
  18. The latest updates are downloaded and installed:
    docker-windows-2016-19
  19. Once the updates are downloaded and installed, then the VM needs to be restarted:
    docker-windows-2016-20
    Click on Restart now to restart the VM.
  20. You’ve now restarted the VM.

Congratulations! You now know how to install Windows Server in VirtualBox. Subsequent parts of this multi-part blog will show how to configure Docker containers and run a multi-container application using Docker Compose.

Author

Posted by Arun Gupta, VP, Developer Advocacy, Couchbase

Arun Gupta is the vice president of developer advocacy at Couchbase. He has built and led developer communities for 10+ years at Sun, Oracle, and Red Hat. He has deep expertise in leading cross-functional teams to develop and execute strategy, planning and execution of content, marketing campaigns, and programs. Prior to that he led engineering teams at Sun and is a founding member of the Java EE team. Gupta has authored more than 2,000 blog posts on technology. He has extensive speaking experience in more than 40 countries on myriad topics and is a JavaOne Rock Star for three years in a row. Gupta also founded the Devoxx4Kids chapter in the US and continues to promote technology education among children. An author of several books on technology, an avid runner, a globe trotter, a Java Champion, a JUG leader, NetBeans Dream Team member, and a Docker Captain, he is easily accessible at @arungupta.

One Comment

  1. Hi. Great article, really helped me set up a virtual machine for Server 2016. Far more convenient for me to test.

    It’s got me wondering though – I’m currently creating an app that utilizes docker in its infrastructure. We’re using Windows Containers at the moment, which isn’t ideal but for now it will suffice. Development is a bit of a pain because our organisation issued software only supports windows 8. We’ve been able to bypass this by dual-booting to windows 10 which isn’t a massive problem, but it can cause some issues based on organisation-specific access to resources that don’t support windows 10.
    Wouldn’t it be possible to use docker in a Windows Server 2016 virtual machine now? From what I’ve read, docker is more ‘baked in’ to the OS so I wonder if docker would work in the VM now?

Leave a reply