1. myrlse

    myrlse Well-Known Member

    Jun 2, 2017
    57
    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)

    [​IMG]

    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)

    [​IMG]
    [​IMG]

    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.

    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]

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

    [​IMG]

    13- Enable RDP (System properties/Remote Access)

    [​IMG]

    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

    [​IMG]

    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

    [​IMG]

    [​IMG]
    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.

    [​IMG]


    Enjoy!

    SPEED TEST OF MY SERVER

    [​IMG]

     
    Last edited: Jul 5, 2017
  2. Maniac_

    Maniac_ Well-Known Member Respected

    Nov 17, 2009
    2,442
    Very cool tutorial, congrats. But why wouldn't you just have it installed?

    [​IMG]

    Unless there is no option to enter your own license, in that case disregard my comment, I am not familiar with this provider...
     
  3. myrlse

    myrlse Well-Known Member

    Jun 2, 2017
    57
    You have option of install windows from online.net console for €29.99/mo you can't put your own license.

    [​IMG]
     
    Last edited: Jul 4, 2017
  4. Maniac_

    Maniac_ Well-Known Member Respected

    Nov 17, 2009
    2,442
    That is extortion :-=

    Thank you for clearing that up!
     
  5. Rox

    Rox Vice Administrator Staff Member

    Apr 17, 2010
    8,443
    Very detailed and clear tutorial, keep up the good work :)
     
  6. myrlse

    myrlse Well-Known Member

    Jun 2, 2017
    57
    Thank you.
     
  7. RapidVideo

    RapidVideo Well-Known Member Affiliate Rep.

    Feb 12, 2012
    1,872
    Format the /dev/sda with the existing Ubuntu running, but still executes wget and various tools? wtf? :o

    edit: never mind, you deletes the partition table + boot sector with that.
     
  8. xeniux

    xeniux Well-Known Member

    Dec 21, 2011
    279
    Very nice tuts,

    IMHO, If we install qemu and put windows on top of ubuntu, itu would eat up the memory and resources so the system would not optimum, but it is a good option if we installed it at dedi to create vps.

    Also how about if we want to create more virtual server using a qemu ?

    Please advice

    Best,

    Xen

    Sent from my Lenovo S860 using Tapatalk
     
  9. myrlse

    myrlse Well-Known Member

    Jun 2, 2017
    57
    Ubuntu tools like wget stop working once the new operating system is installed, QEMU is on a /tmp/ so still working

    Regards.

    __________________
    Added after 6 minutes:


    You dont install Windows on top of Ubuntu, you make a clean instalation of Windows on dedicated server with this tuto, the old instalation of Ubuntu does not exist anymore after these steps.

    About how create more instances of virtual servers with QEMU i don't have idea how, you can try with proxmox (Open-Source Virtualization)

    Regards
     
    Last edited: Jul 5, 2017
  10. DrBd

    DrBd Member

    May 14, 2017
    6
    Thanks for made this guide i want install windows server 2016 in soyoustart everything was going well but i'm face problem for connect VNC for KVM not work in my server

    have any idea about this?
     
  11. Oldky

    Oldky Well-Known Member

    Feb 17, 2016
    560
    How can i know, which one network adapter driver is best for me?
     
  12. myrlse

    myrlse Well-Known Member

    Jun 2, 2017
    57
  13. Oldky

    Oldky Well-Known Member

    Feb 17, 2016
    560
  14. myrlse

    myrlse Well-Known Member

    Jun 2, 2017
    57
    Install 7zip or Winrar and unrar PROWinx64, now install .inf files from all folders and reboot, it should work

    [​IMG]
     
  15. Oldky

    Oldky Well-Known Member

    Feb 17, 2016
    560
    See here, which one to choose?

    [​IMG]
     
  16. Ranchvapour

    Ranchvapour Well-Known Member

    Dec 23, 2013
    450
    Did you go in the folders and check?
     
  17. Oldky

    Oldky Well-Known Member

    Feb 17, 2016
    560
    I did, so i wait for his answer ;)
     
  18. myrlse

    myrlse Well-Known Member

    Jun 2, 2017
    57
    Install the .inf files from all folders like i said
     
  19. Michael Kahle

    Michael Kahle New Member

    Apr 15, 2018
    1
    I was really hoping I could get this to work. But I keep getting stuck at the same spot.

    As soon as the installation begins at the Installing Windows screen, I am kicked out of Putty and VNC Viewer. Putty gives the message: Network error: Software caused connection abort. VNC Viewer then give the message Attempting to reconnect to VNC Server. I have tried different options like using Screen with Putty to not have it depend upon the Putty session, but I haven't found a way to get beyond this point.

    [​IMG]

    [​IMG]

    Any ideas??
     
  20. Skyhel

    Skyhel Member

    Jul 1, 2018
    9
    Hello, anyway to add audio please ? i wold like to get the audio any advice?
     

Share This Page