windows icon indicating copy to clipboard operation
windows copied to clipboard

[Feature]: Support Windows Nano Server

Open megacar1 opened this issue 2 months ago • 10 comments

Is your proposal related to a problem?

Hi, I downloaded OVA file (vmware vm) of WIndows Server 2016 Nano. the file is 180MB only! and it unpacks to 4GB disk. I think it would be fantastic case for dockur, to run minimalistic windows environment. Can you support it natively, to choose it as a version in ENV and pull it automatically?

Describe the solution you'd like.

If the answer is no, or meanwhile; Is there a way for me to test it, like dry run it. i have converted that vmdk from ova to raw img disk, and I'm trying to trick dockur into running it, but he is too smart for me, and always detects the disk is not previous dockur installation so it just moves it to /backup/unknown and starts downloading some iso to setup a new disk from scratch. Can I specify something like VERSION: "custom" and just let dockur try to run the container as is, to see what happens.

thanks in advance!

Describe alternatives you've considered.

the only other way I can try for now is to try to run directly kvm/qemu vm...

Additional context

No response

megacar1 avatar Sep 11 '26 10:09 megacar1

Do you have a downloadlink of the page/project that created that OVA file?

Because last time I researched Nano server it was a Windows-based Docker image and not a stand-alone OS. But maybe that changed or the author did some trick to make it run. So if you can provide some sources that would be nice.

kroese avatar Sep 11 '26 10:09 kroese

source where i got the ova: https://virtuallyfun.com/2021/10/17/fun-with-nano-server/

this project might integrate well with your dockur, as it seems its using official MS sources to get the ISO and build VHD. but the only problem is, 2016 was a long time ago, maybe M$ decided to scrap that OS (nano 2016) https://github.com/PlagueHO/New-NanoServerVHD

official MS crap that runs only on windows docker host: https://hub.docker.com/r/microsoft/windows-nanoserver

megacar1 avatar Sep 11 '26 11:09 megacar1

but even if official ISO is no longer available on MS servers (I'm not sure what is the current status) - I'm sure its avaiable for download from other sources...

megacar1 avatar Sep 11 '26 11:09 megacar1

But did you actually test that OVA on a Linux host? Or only on a Windows host? Because the quick look that I took seems to indicate this image runs only on Hyper-V and not on Linux KVM.

Also, we already support Windows 2019 Hyper-V Server (VERSION=2019-hv). I think this is very similar to Nano and a bit newer. It requires no license key, so is totally free to use. And it has no GUI, etc. Maybe they just renamed the Nano server branding to Hyper-V Server, and otherwise Im afraid Nano server is something that cannot function without a Windows kernel on the host (and that would explain also why it can be so small).

kroese avatar Sep 11 '26 11:09 kroese

Hi, yes i'm running it right now.how big is hyper v 2019? This is 180mb, it can run with 128mb of ram, it doesnt have rdp or gui, boots to textual powershell like a proper linux server os. Hyper v or core variants afaik have rdp gui, and then you login to desktop which doesnt have icons, so you run cmd window from there. Its a joke. What you were reading was microsoft mansplaining you cannot run it in docker on linux

megacar1 avatar Sep 11 '26 12:09 megacar1

hi, just to give further feedback., i couldn't be more happier, these are the best windows i have seen in my life :) I set it up as systemd service (exec command to run kvm vm). it boots in 5 seconds, uses 256mb ram. uses 1.2G on disk, 4G allocated. there was a lot of manual work and hassle, this ova image didnt have virtio drivers, no network, no usb disks....once i installed some USB drivers off server2016 iso, and virtio drivers (all via VNC console) and got remote powershell running now it's great, it really feels like docker container rather then full blown OS VM.

Edit: also installed openssh server, redirected to port 23 as 22 is used by linux host. Ssh session takes you straight to powershell (which is, compared to linux, a freakin' disaster - had to set up bunch of aliases to get linux like admin experience :)

megacar1 avatar Sep 12 '26 06:09 megacar1

To bypass the automated disk verification that moves your image to /backup/unknown, you can try setting the DISK_SIZE environment variable to match your raw image size, as the script triggers the backup routine when it fails to find an expected partition signature. If you bypass that check, does the current dockur entrypoint script actually contain the necessary QEMU arguments to boot a raw disk image without an accompanying ISO installation process?

ronniromeo26 avatar Oct 12 '26 14:10 ronniromeo26

Hi, I abandoned dockur and had setup this VM manually in qemu/kvm... I'm not looking to outsmart dockur boot process anymore.. My suggestion was to support Nano Server natively as I think people would like it :)

megacar1 avatar Oct 12 '26 16:10 megacar1

To bypass the automatic disk validation and prevent the move to /backup/unknown, you should temporarily comment out the disk signature check in scripts/boot.sh or set VERSION=custom and verify if the DISK_SIZE environment variable is sufficient to prevent the initialization script from overwriting your existing raw image.

brokendenim avatar Oct 15 '26 07:10 brokendenim