[TUTORIAL] Install Windows on Online.net Dedibox SC/XC Personal Range with QEMU

myrlse

Active Member
65
2017
23
435
Hello WJ!

I make this tutorial to show you how install Windows or Custom ISO in our dedicated servers without KVM/iLO or IPMI

Tested on: Dedibox SC/XC Personal Range also works with KIMSUFI and Hetzner servers/vps


My Dedicated Server: Dedibox XC SSD 2016 (server without KVM/iLO or IPMI)

Enoei0J.jpg


1 - Go to your Online.net panel

https://console.online.net/en/login


2 - Make a clean install of Ubuntu (16.04_LTS-server 64BITS or latest version)

y55edWI.jpg

BtiE961.jpg


3 - Once install is finished open Putty and login with your Ubuntu credential

4- Type this:

Code:
sudo -i

5- Put your password again

6- Wipe your hard disks , enter this command:

Code:
dd if=/dev/zero of=/dev/sda bs=1M count=1

7- Now we need create a tmp space to our ISO with this command "size=8000m", this space depend of the size of our ISO and your RAM

Code:
mount -t tmpfs -o size=8000m tmpfs /mnt

8- Download the ISO - In this case from Microsoft TechNet Evaluation Center

Code:
wget -P /mnt DIRECTLINKOFYOURISO

Example - Windows Server 2012 R2

Code:
wget -P /mnt http://care.dlservice.microsoft.com/dl/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO

9- One time ISO is downloaded in our server we need install Portable QEMU

Code:
wget -qO- /tmp https://ia601503.us.archive.org/12/items/vkvm.tar/vkvm.tar.gz | tar xvz -C /tmp

10- Launch QEMU

Code:
/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 /mnt/NAMEOFYOURISO -hda /dev/sda -boot once=d -vnc :1

Example - Windows Server 2012 R2

Code:
/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 /mnt/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO -hda /dev/sda -boot once=d -vnc :1

11- Install Windows with VNC Viewer (Connect to YOURSERVERIP:1)

Note: I installed windows in Spanish, you can install it in your preferred language.

weDqasO.jpg

C4p8p18.jpg

BVf8IIy.jpg

fryPcjS.jpg

J9KnZqq.jpg

piZHFoE.jpg

B1eYcHI.png

KQLgRug.jpg


12- Enable Remote Desktop (mstsc) Existing Rule on Windows Firewall with Advanced Security

vnrbvz2.png


If you cant just disable firewall (not recommended)

13- Enable RDP (System properties/Remote Access)

4Wpo9kh.jpg


14- Very important: You need install drivers for original (not virtual) network controller.



Once you have downloaded the driver of your network driver you need the .inf file

Install it as follows:

Open Windows cmd and use cd command to search .inf location

Example

Code:
C:\Users\MYRLSE
C:\Users\MYRLSE>cd..
C:\Users>cd..
C:\>cd intel
C:\Intel>
C:\Intel>pnputil.exe -a *.inf

15- Back to Putty and press Ctrl+C to finish QEMU

R0ihPKW.png


16- Type this on Putty to boot Windows from C:

Code:
/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 -hda /dev/sda -boot c -vnc :1

17 - Reboot Server from Online.net console.


18 - Connect to Windows through remote desktop.


19 - Enjoy!

Notes: Online.net does not need configure IP they have DHCP but if you are testing on another provider and they dont support DHCP you can type this:

Code:
lspci | egrep -i --color 'network|ethernet' 
lshw -class network

And configure with your provider IP, Netmask, Gateway

Code:
netsh interface ipv4 set address name="Ethernet 2" static 37.XXX.XXX.183 255.255.255.192 37.XXX.XXX.129


If you reboot server and cant connect for x reason, you can launch RESCUE image from Online.net console (I use Ubuntu 16.04 amd64) and solve any problem do you have

GZKtmim.jpg


qRu7KGD.jpg

Connect via Putty with login credential provides for Online.net

Remember:


Install Portable QEMU

Code:
wget -qO- /tmp https://ia601503.us.archive.org/12/items/vkvm.tar/vkvm.tar.gz | tar xvz -C /tmp

Launch QEMU

Code:
/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 -hda /dev/sda -boot c -vnc :1

Connect to VNC Viewer (YOURSERVERIP:1)

On my case I need install Intel Drivers for Network adapter Intel Corporation Ethernet Connection I354 2.5 GbE Backplane (rev 03)


Reboot to normal mode from Online.net console.

Connect to Windows through remote desktop.

PHHngXA.jpg



Enjoy!

SPEED TEST OF MY SERVER

6426982126.png


 
Last edited:
27 comments
sorry for the double post ! i did the instalation and i got only 2GB ram ... i have 32 :( why?
Hey, I have the same issue, Does anyone know how to solve this?

It's probably due to the "-m 2048M" in step 10, but I don't know if there's a way to extend it after installation

Also, in the server used here, he has 1 HDD only, so the command
dd if=/dev/zero of=/dev/sda bs=1M count=1
probably works for one drive, do I need to modify it so that it wipes both drives?
 
Hi,

Thanks for this tutorial.

I'm trying to install windows on a scaleway Start-2-S-SATA dedibox with 4GB of RAM and 1TB and I get this error when trying to execute qemu with the windows iso:

This is the command I type:
/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 /mnt/18363.418.191007-0143.19h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso -hda /dev/sda -boot once=d -vnc :1

And this is the error I get:
qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory

I guess it is due to a lack of memory, Your server had 16GB of RAM and mine has 4GB so I think it is not possible to load qemu with the 5GB ISO. Now the memory is:

root@------------~# grep "^Mem" /proc/meminfo
MemTotal: 4042124 kB
MemFree: 115544 kB
MemAvailable: 37252 kB


Any workaround to solve this or is it definetely impossible to get windows installed on my server?

Muchas gracias por tu ayuda.
 
Hello,
Thank you for this tutorial which was a great help however after testing several times there is a variant of your tutorial even simpler and it also works on servers dedicated to Oneprovider allow me to take your tutorial to make another this time specifying that this tutorial applies to Oneprovider and with a variant of your method?
Of course I will mention you.
Thanks in advance
 
Hello, how come memory only 2GB Ram. I have 16gb ram. And at qemu in c activation always fail. Can you point or show how to do that
 
url not work

hxxps[]ia601503[DOT]us[DOT]archive[DOT]org/12/items/vkvm[DOT]tar/vkvm[DOT]tar[DOT]gz

please update for this work

hxxps[]archive[DOT]org/12/items/vkvm[DOT]tar/vkvm[DOT]tar[DOT]gz

or

hxxps[]archive[DOT]org/download/vkvm[DOT]tar_201903/vkvm[DOT]tar[DOT]gz

for work please update link to your tutorial
 
Still works in 2022, new installation of Windows server 2022, same server configuration but from OneProvider.

  1. Make a clean install of Ubuntu 18.04
  2. You can perform the following steps in normal mode or in rescue mode (boot server with a UBUNTU RESCUE IMAGE)
  3. Once install is finished open Putty and login with your Ubuntu credential
Grant Root Privileges on Ubuntu
Code:
sudo -i

Wipe Disk (You need a server with 8GB of RAM)

Code:
dd if=/dev/zero of=/dev/sda bs=1M count=1

Code:
mount -t tmpfs -o size=8000m tmpfs /mnt

This time I used an image of Windows Server 2022 ISO - LINK

Code:
wget -P /mnt ISODIRECTLINK

Example

Code:
wget -P /mnt https://software-static.download.prss.microsoft.com/sg/download/888969d5-f34g-4e03-ac9d-1f9786c66749/SERVER_EVAL_x64FRE_en-us.iso

Install QEMU

Code:
wget -qO- /tmp https://ia601503.us.archive.org/12/items/vkvm.tar/vkvm.tar.gz | tar xvz -C /tmp

Launch QEMU (replace "NAMEOFYOURISO" with the name of download ISO)

Code:
/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 /mnt/NAMEOFYOURISO -hda /dev/sda -boot once=d -vnc :1

Example

Code:
/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 /mnt/SERVER_EVAL_x64FRE_en-us.iso -hda /dev/sda -boot once=d -vnc :1

Install Windows with VNC Viewer (YOURSERVERIP:1)

ERUQ9IM.png
KVo49wd.png

nH3NeS6.png

vEYx6v4.png

8OV44cY.png


Enable RDP (System properties/Remote Access)


3KFqMkN.png


Enable Windows Sound: Open Services and Start Windows Audio Service

ZZnxkh4.png


REBOOT SERVER IN NORMAL MODE TO HAVE ALL MEMORY RAM

SPEED TEST

13766311526.png


Enjoy!
 
I can't get this to work with my oneprovider server. After installing windows server 2022 i can't login as i simply get this text "The specified domain either does not exist or could not be contacted"
 
Back
Top