Nano Server in virtual machine on Linux

Copper Contributor

Hello. I do not want a full Windows install and would like to use the Nano Server inside qemu under Linux. The 2016 version supports this, but as of version 1709, Nano only supports container images hosted on Windows. This obviously defeats the point of the minimal environment.

 

I was interested in the Nano Server because its license is free and it contains only the core system without everything I don't need.

 

1) Why was the support for virtual machines removed?

 

2) Is there an alternative?

2 Replies

The best I've found for (2) is the 2019 Hyper-V image but this is still pretty bloated.

 

Can someone tell me how small Nano should actually be on the latest container builds?

@NanoServer Evening, I feel your frustration as too I love the original concept for Nano server which support AD, DHCP, HYPER-V, etc. The new server 20215 is 2GB is size, so install it and also the Feature On Demand (check server insider preview). now enable both hyper-v and container also optional WSL yes WSL runs on windows server this will give you the Linux kernel on server core so once you have the Linux distro you want installed then you can use the Bash shell and do you docker thing on that.

 

My assumption is if you install Visual Studio Code and/or Docker Desktop on the server core and manage the Linux container from that application. I would go down the VSC route. I'll test on server core myself just to see but you need to install the feature on-demand (only 400 MB in size) this will give you access to file explorer, etc on the server to make life easier for finder exe files, etc but PowerShell is still viable. You can install windows admin centre which is tiny on the server core also then use that to manage containers. The size should be about approx 4GB total with all installed

 

Other options: (1) creating a nano server vhdx file using the nano server imager builder and attach it to a new VM as you know the size is tiny or (2) download the windows server container image for windows server nano (https://hub.docker.com/_/microsoft-windows-nanoserver). As its a container of nano server again going to be small however it's a container so you need to learn Docker commands to edit it e.g. docker inspect, etc to use on PowerShell or manange through windows admin centre.

 

That's what I currently use, a server core install with hyper-v and containers enable and installed the container image which I manage through windows admin centre but you'll need to add the container extension. For a full linux, you need to enable WSL on server core.

 

Hope this helps