Log in via rescue on linux 64bit.
Download and extract portable qemu-kvm. /tmp folder is enough.
1 |
wget -qO- /tmp http://www.danpros.com/content/files/vkvm.tar.gz | tar xvz -C /tmp |
You must download UEFI bios and support larger than 2TB partitions.
1 |
wget -qO- /tmp http://www.danpros.com/content/files/uefi.tar.gz | tar -xvz -C /tmp |
Download the windows ISO.
1 2 3 |
cd /tmp wget http://mirror.hetzner.de/bootimages/windows/SW_DVD9_Win_Server_STD_CORE_2019_1809.11_64Bit_English_DC_STD_MLF_X22-51041.ISO cd / |
Run qemu-kvm.
1 |
/tmp/qemu-system-x86_64 -net nic -net user,hostfwd=tcp::3389-:3389 -m 2048M -localtime -enable-kvm -cpu host,+nx -M pc -smp 2 -vga std -usbdevice tablet -k en-us -cdrom /tmp/SW_DVD9_Win_Server_STD_CORE_2019_64Bit_English_DC_STD_MLF_X21-96581.ISO -hda /dev/sda -boot once=d -vnc :1 |
Or run for UEFI.
1 |
/tmp/qemu-system-x86_64 -bios /tmp/uefi.bin -net nic -net user,hostfwd=tcp::3389-:3389 -m 2048M -localtime -enable-kvm -cpu host,+nx -M pc -smp 2 -vga std -usbdevice tablet -k en-us -cdrom /tmp/SW_DVD9_Win_Server_STD_CORE_2019_64Bit_English_DC_STD_MLF_X21-96581.ISO -hda /dev/sda -boot once=d -vnc :1 |
Finally, vnc is opened
1 |
yourip:1 |
Sources
https://www.danpros.com/2017/09/install-windows-on-any-server-using-rescue-system-and-qemu-kvm
https://cdld.nl/blog/install-windows-server-2019-on-a-dedicated-server-hetzner