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

Almighty Pull

Senior Member
Joined
Jan 16, 2019
Messages
816
Reaction score
687
I have a new problem at hand, the damn VNC viewer, when I connect to port zero as in final step, it shows "Timed out waiting for a response from the computer" even though the console shows Job done.
Can anyone help with this?
Thanks
 

sohom

Supreme Member
Joined
May 26, 2013
Messages
1,315
Reaction score
607
Website
www.mediabots.net
I have a new problem at hand, the damn VNC viewer, when I connect to port zero as in final step, it shows "Timed out waiting for a response from the computer" even though the console shows Job done.
Can anyone help with this?
Thanks

never encountered such issue!
In that case, must be there were some error message(s), which you are missing
I would make some changes in the script,so user could debug upto some extension.

Anyway,if you had opted for deleting existing Linux-OS, then your only option is, just reinstall Linux-OS(as existing one already deleted by the Script) and then re-run the script.
If you did opt for Linux-OS deletion, then run below 3 commands :
Code:
umount -l /mnt /media/script
rm -rf /mediabots /floppy /virtio /media/* /tmp/*
rm -f /sw.iso /disk.img
It would remove previous Windows-OS instance.
then run below code :
Code:
for i in $(ps  aux | grep -i "qemu-system" | head -2 | cut -f7 -d" ") ; do echo "killing process id : "$i ; kill -9 $i ; done
that would kill all running QEMU-KVM processes
now re-run the script

Regards
 
Last edited:

feezioxiii

Jr. VIP
Jr. VIP
Joined
Nov 7, 2015
Messages
805
Reaction score
289
Website
hyonix.com
Just a side note, this is called as Nested Virtualization feature and make it possible by enabling another layer of virtualization on your VPS (so your VPS can create VPS).

The result in performance is significantly lower than traditional virtualization and is not recommended for any production works :D

The script provided is great though! Kudos to OP for his hard work!
 

sohom

Supreme Member
Joined
May 26, 2013
Messages
1,315
Reaction score
607
Website
www.mediabots.net
I have a new problem at hand, the damn VNC viewer, when I connect to port zero as in final step, it shows "Timed out waiting for a response from the computer" even though the console shows Job done.
Can anyone help with this?
Thanks

Sorry! for double posting , but my previous reply has a typo, which was totally a misinformation
What I meant to say :-

never encountered such issue!
In that case, must be there were some error message(s), which you are missing
I would make some changes in the script,so user could debug upto some extension.

Anyway,if you had opted for deleting existing Linux-OS, then your only option is, just reinstall Linux-OS(as existing one already deleted by the Script) and then re-run the script.
If you did NOT opt for Linux-OS deletion, then run below 3 commands :
Code:
umount -l /mnt /media/script
rm -rf /mediabots /floppy /virtio /media/* /tmp/*
rm -f /sw.iso /disk.img
It would remove previous Windows-OS instance.
then run below code :
Code:
for i in $(ps  aux | grep -i "qemu-system" | head -2 | cut -f7 -d" ") ; do echo "killing process id : "$i ; kill -9 $i ; done
that would kill all running QEMU-KVM processes
now re-run the script

--------------------------

btw, "Almighty Pull" already sent a PM, that his/her issue has been resolved


Thanks
 

Almighty Pull

Senior Member
Joined
Jan 16, 2019
Messages
816
Reaction score
687
Sorry! for double posting , but my previous reply has a typo, which was totally a misinformation
What I meant to say :-

never encountered such issue!
In that case, must be there were some error message(s), which you are missing
I would make some changes in the script,so user could debug upto some extension.

Anyway,if you had opted for deleting existing Linux-OS, then your only option is, just reinstall Linux-OS(as existing one already deleted by the Script) and then re-run the script.
If you did NOT opt for Linux-OS deletion, then run below 3 commands :
Code:
umount -l /mnt /media/script
rm -rf /mediabots /floppy /virtio /media/* /tmp/*
rm -f /sw.iso /disk.img
It would remove previous Windows-OS instance.
then run below code :
Code:
for i in $(ps  aux | grep -i "qemu-system" | head -2 | cut -f7 -d" ") ; do echo "killing process id : "$i ; kill -9 $i ; done
that would kill all running QEMU-KVM processes
now re-run the script

--------------------------

btw, "Almighty Pull" already sent a PM, that his/her issue has been resolved


Thanks
I got your message the first time itself, thanks for further clarifying :)
 

Jadyfastt

Newbie
Joined
Mar 7, 2019
Messages
1
Reaction score
0
I ve tried tried everything in this thread i still cant use vnc viewer.. i kept getting "Timed out waiting for a response from the computer" i use scaleway.com
 

sohom

Supreme Member
Joined
May 26, 2013
Messages
1,315
Reaction score
607
Website
www.mediabots.net
I ve tried tried everything in this thread i still cant use vnc viewer.. i kept getting "Timed out waiting for a response from the computer" i use scaleway.com

Looks like, the server which had hosted Windows 2012 ISO file was down!
I added a archive.org direct link for Windows 2012 ISO in that place, everything should be fine now

**MAKE SURE TO USE UPDATED SCRIPT**

Regards
 

sohom

Supreme Member
Joined
May 26, 2013
Messages
1,315
Reaction score
607
Website
www.mediabots.net
**UPDATE**

CentOS Distro support added (tested on CentOS 7.4 , CenstOS 7.6)

So this Script is working for Linux Distros : Ubuntu,Debian, CnetOS :)

I also linked a fast(1Gbps) Windows server ISO image url into the script, so 4.2 GB would be downloaded within few minutes :D

[Note]
Since I got portable version of "QEMU-KVM" only for Ubuntu.
So if you had opted for completely deleting existing Linux OS, it would work only on Ubuntu.

Regards
 
Last edited:

rajsinhahyd

Power Member
Joined
Jun 8, 2016
Messages
570
Reaction score
109
I am getting this error
timeout waiting for a response from the computer vnc
 

sohom

Supreme Member
Joined
May 26, 2013
Messages
1,315
Reaction score
607
Website
www.mediabots.net
I am getting this error
timeout waiting for a response from the computer vnc
Ok
let me know the VPS provider you are using
as well as which Linux distribution( Ubuntu or Debian or CentOS, etc ) were used. Also inform me the Distro version number (such as Ubuntu 18.04 or CentOS 7.6 ,etc)
 

rajsinhahyd

Power Member
Joined
Jun 8, 2016
Messages
570
Reaction score
109
Ok
let me know the VPS provider you are usingds
as well as which Linux distro( Ubuntu or Debian or CentOS, etc ) were used. Also inform me version number (such as Ubuntu 18.04 or CentOS 7.6 ,etc)

I am using one provider dedicated server which you mentioned in your cheap dedicatedservers thread.
It is CentOS 7.6, 64 bits
 

rajsinhahyd

Power Member
Joined
Jun 8, 2016
Messages
570
Reaction score
109
Installed successfully windows server but not able to login through remote desktop.
an authentication error has occured.
the function requested is not supported.
I closed my ssh before connecting rdp.
can you give me a solution?
 

sohom

Supreme Member
Joined
May 26, 2013
Messages
1,315
Reaction score
607
Website
www.mediabots.net
Installed successfully windows server but not able to login through remote desktop.
an authentication error has occured.
the function requested is not supported.
I closed my ssh before connecting rdp.
can you give me a solution?

I attached a .ps1 script under CD-ROM to auto enable RDP in Windows Server in 1st place.
Seems like you missed it.

I found this(enable rdp) TUT on yt useful
generally you have to do 2 or 3 things , its easy :p
 
Top