1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice
  2. The hosting section is sponsored by Hostwinds visit the BHW Partnership program for your exclusive BHW member hosting benefit today.
    MUST be signed into your BHW account.
    Dismiss Notice

[Script] Turn your Linux VPS/Server into Windows Server automatically using Shell script

Discussion in 'Web Hosting' started by sohom, Feb 23, 2019.

  1. TheLegendKiller

    TheLegendKiller Newbie

    Joined:
    Aug 3, 2019
    Messages:
    2
    Likes Received:
    0
    Gender:
    Male
    Great script bro however it doesn't work for completely...it goes through upto the last point but the qemu isn't able to start the installation and complains that "qemu-system-x86_64: Initialization of device ide-hd failed: Device initialization failed.". when i see the command that starts the VM from the details file, it is below

    Code:
    /usr/bin/qemu-system-x86_64 -net nic -net user,hostfwd=tcp::3389-:3389 -show-cursor -m 1742M -localtime -enable-kvm -cpu host,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time,+nx -M pc -smp cores=40 -vga std -machine type=pc,accel=kvm -usb -device usb-tablet -k en-us -drive file=,index=0,media=disk,format=raw  -boot c -vnc :9 & disown %1
    if you see there is nothing after file=

    any help is appreciated!!
     
  2. sohom

    sohom Senior Member

    Joined:
    May 26, 2013
    Messages:
    1,092
    Likes Received:
    277
    Occupation:
    Coder | Programmer
    Location:
    Automation
    Home Page:
    Ok
    https://github.com/mediabots/Linux-to-Windows-with-QEMU/issues/5

    Previously one user got same issue, after inspecting, it turns out issue was from Hosting

    Anyway, give me output/screenshot of following 3 commands separately:-
    Code:
    df
    fdisk -l
    lsblk
    
    So I can inspect the issue.
    Also, If you have no problem, state your Web Hosting name.
    How much Disk space does it has?
    Also did you choose the option of destroying current OS?

    Regards
     
  3. bobota

    bobota Newbie

    Joined:
    Aug 3, 2019
    Messages:
    18
    Likes Received:
    5
    will check this out, thanks op!
     
  4. Brickbat1

    Brickbat1 Jr. VIP Jr. VIP

    Joined:
    Mar 22, 2010
    Messages:
    420
    Likes Received:
    168
    Occupation:
    I build Bots
    Location:
    Lagos

    This is great stuff man...cant wait to try it and bring down by over 50% , my windows vps costs..!!
     
  5. TheLegendKiller

    TheLegendKiller Newbie

    Joined:
    Aug 3, 2019
    Messages:
    2
    Likes Received:
    0
    Gender:
    Male
    Yeah that’s the same issue
    fdisk -l doesn’t return anything , the VPS runs under a container technology I guess that’s why.

    But when I run the command that is used to check if the virtualisation is supported, it returns 1.

    Anyways, after banging my head for few hours, I was able to install QEMU kvm and use virt-install to create a guest with windows 2008 R2.

    I really wished I could modify the script somehow and automate the process.

    Also am still unable to access guest via RDP as I don’t know what IP should I give it or some port forwarding is needed.

    I have left it as is for now and using VNC which really sucks to be honest.
     
  6. Haksxsx`

    Haksxsx` Power Member

    Joined:
    Sep 14, 2017
    Messages:
    544
    Likes Received:
    143
    Gender:
    Male
    Location:
    ASIA
    Home Page:
    really detailed configuration shown here, I'll try it soon.
    Very Valuable info here.
     
  7. peace1

    peace1 Newbie

    Joined:
    Today
    Messages:
    1
    Likes Received:
    0
    Gender:
    Male
    Hi, peace
    I just bought the "Start-3-S-SSD" from online.net, I tried your tutorial, but got this message:
    Code:
    WARNING: Image format was not specified for '/mediabots/WS2012R2.ISO' and probing guessed raw.
             Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
             Specify the 'raw' format explicitly to remove the restrictions.
    qemu-system-x86_64: -drive file=/mediabots/WS2012R2.ISO: drive with bus=0, unit=0 (index=0) exists
    I also got the message in green "SAVE BELOW GREEN COLORED COMMAND IN A SAFE LOCATION...", but couldn't connect via vnc!

    Is there no way I can install windows on it, I really need your help if it's possible!!

    Thank you.