Open Source Github Project/Repository URL :
https://github.com/mediabots/Linux-to-Windows-with-QEMU
A Shell Script for Auto installation of Windows Server into a Linux Server.
A Shell Script to Auto install Windows Server on your Linux System. [Right now, it supports 2012 R2 < evaluation/180 days trial > copy]
Script would use QEMU-KVM portable software for Virtualization purpose. Since QEMU is a portable s/w, so it can reside in temporary RAM.
Actually script is semi-automatic. All Linux commands part(such as downloading Windows ISO image, gathering system info, choosing disk/partition, managing RAM , attaching required windows s/w in CDROM) would be handled by script automatically.
And rest of the windows part(clicking, selecting, setting Administrator password ) need to be done manually by any Free VNC windows software.
After Windows Installation completed, you would find a Power Shell script under CD-ROM, called "EnableRDP.ps1". By running it you would be able to enable Remote Desktop on your Windows server, so after that you would be able to connect your Windows server through Windows "Remote Desktop Application" App
I also attached Firefox App on CD-ROM, install that, so you don't need to face "Internet Explorer" horrible setting experience!
Requirements
A SSH client such as Putty : https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
A VNC software such as RealVNC : https://www.realvnc.com/en/connect/download/viewer/
A VPS or Dedicated server with Ubuntu OS Installed.
At least 30GB Free disk space in your system.
Virtualization of your VPS or Server must be enabled. Run below coammnd :
if output is greater than 0, then Virtualization is enabled :D
Either should have access of root user OR run with su (super user)
How to Run the Script
Just run below five commands one after another :
Screen-shots step by step
1) Download Putty(SSH client) from here : https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
2) Run Putty.exe file and connect to your Linux Server IP address (with port 22)
Login with your Linux Server Credential.
3) Run the Script. [ Read -> "How to Run the Script" section of this topic ]
4) If your Server/VPS RAM size > 5 GB
Script would ask , whether you would like to delete existing Linux OS or not
-> I opted for [No]
Script has done its work
5) now Download & install VNC [ https://www.realvnc.com/en/connect/download/viewer/ ]
and open your VPS/Server IP with port 0
in my case my VPS IP was 51.15.229.233
4) Now you would see, Windows installation is on the process
5) Click/Choose options which I highlighted
Choose "Windows Server 2012 R2 SE (with GUI)"
Set password for user : Administrator
Create a 16 to 20 Character long strong password
login to Windows Server with your password
Windows Server installed successfully :D
Enable Remote Desktop through ebableRDP.ps1 power shell script
Also install Firefox for browsing
In case .ps1 script prompt like this
press Y and Enter
---
Job Done
Enjoy
-------------------------------------------------------
Demo Video
or
https://bit.ly/Linux-to-Windows
Disclaimer
For few cases, due to RAID configuration of the hard disk, if you had chosen to delete existing Linux OS & install Windows OS on entire hard disk. On your VNC , you might see, Windows installation failing.
If you are facing such issue; Exit from the script & Re-run it & in this time just opt for installing Windows OS without deleting Linux OS. And it would work :D
In case, portable QEMU-KVM app stopped/closed, your Widows-Server would not be accessible. To access it again, you require to run the QEMU-KVM app again with proper parameters.
Run below command :
Copy the Output of the above result and Paste it & press Enter button. It would run the QEMU-KVM again. So your Windows Server would be accessible again :D
If you required a reboot of your Windows Server, just reboot it from Windows Server reboot option. Don't reboot your server from Server Hosting Control-panel. Otherwise QEMU App would get stopped.
If you had opted for removing your old Linux OS, you would get Windows server with full HDD capacity. But RAM would not be full, because QEMU resides on RAM.
Updates
Right now, Script supporting Ubuntu Distro only.
But very soon I would add the support for all popular Linux Distros too.
So stay tuned.
--
Hope you guys like it.
If you are a developer, you are welcome to contribute in the project
Feel free to ask any question
Don't forget to share your thoughts
Thank you
https://github.com/mediabots/Linux-to-Windows-with-QEMU
A Shell Script for Auto installation of Windows Server into a Linux Server.
A Shell Script to Auto install Windows Server on your Linux System. [Right now, it supports 2012 R2 < evaluation/180 days trial > copy]
Script would use QEMU-KVM portable software for Virtualization purpose. Since QEMU is a portable s/w, so it can reside in temporary RAM.
Actually script is semi-automatic. All Linux commands part(such as downloading Windows ISO image, gathering system info, choosing disk/partition, managing RAM , attaching required windows s/w in CDROM) would be handled by script automatically.
And rest of the windows part(clicking, selecting, setting Administrator password ) need to be done manually by any Free VNC windows software.
After Windows Installation completed, you would find a Power Shell script under CD-ROM, called "EnableRDP.ps1". By running it you would be able to enable Remote Desktop on your Windows server, so after that you would be able to connect your Windows server through Windows "Remote Desktop Application" App
I also attached Firefox App on CD-ROM, install that, so you don't need to face "Internet Explorer" horrible setting experience!
Requirements
A SSH client such as Putty : https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
A VNC software such as RealVNC : https://www.realvnc.com/en/connect/download/viewer/
A VPS or Dedicated server with Ubuntu OS Installed.
At least 30GB Free disk space in your system.
Virtualization of your VPS or Server must be enabled. Run below coammnd :
Code:
echo $(egrep '^flags.*(vmx|svm)' /proc/cpuinfo | wc -l)
if output is greater than 0, then Virtualization is enabled :D
Either should have access of root user OR run with su (super user)
How to Run the Script
Just run below five commands one after another :
Code:
su
mkdir /media/script && mount -t tmpfs -o size=1m tmpfs /media/script
wget -P /media/script https://raw.githubusercontent.com/mediabots/Linux-to-Windows-with-QEMU/master/mediabots_Ubuntu-to-Windows.sh
chmod +x /media/script/*
/media/script/mediabots_Ubuntu-to-Windows.sh
Screen-shots step by step
1) Download Putty(SSH client) from here : https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
2) Run Putty.exe file and connect to your Linux Server IP address (with port 22)
Login with your Linux Server Credential.
3) Run the Script. [ Read -> "How to Run the Script" section of this topic ]
4) If your Server/VPS RAM size > 5 GB
Script would ask , whether you would like to delete existing Linux OS or not
-> I opted for [No]
Script has done its work
5) now Download & install VNC [ https://www.realvnc.com/en/connect/download/viewer/ ]
and open your VPS/Server IP with port 0
in my case my VPS IP was 51.15.229.233
4) Now you would see, Windows installation is on the process
5) Click/Choose options which I highlighted
Choose "Windows Server 2012 R2 SE (with GUI)"
Set password for user : Administrator
Create a 16 to 20 Character long strong password
login to Windows Server with your password
Windows Server installed successfully :D
Enable Remote Desktop through ebableRDP.ps1 power shell script
Also install Firefox for browsing
In case .ps1 script prompt like this
press Y and Enter
---
Job Done
Enjoy
-------------------------------------------------------
Demo Video
or
https://bit.ly/Linux-to-Windows
Disclaimer
For few cases, due to RAID configuration of the hard disk, if you had chosen to delete existing Linux OS & install Windows OS on entire hard disk. On your VNC , you might see, Windows installation failing.
If you are facing such issue; Exit from the script & Re-run it & in this time just opt for installing Windows OS without deleting Linux OS. And it would work :D
In case, portable QEMU-KVM app stopped/closed, your Widows-Server would not be accessible. To access it again, you require to run the QEMU-KVM app again with proper parameters.
Run below command :
Code:
cat /details.txt
Copy the Output of the above result and Paste it & press Enter button. It would run the QEMU-KVM again. So your Windows Server would be accessible again :D
If you required a reboot of your Windows Server, just reboot it from Windows Server reboot option. Don't reboot your server from Server Hosting Control-panel. Otherwise QEMU App would get stopped.
If you had opted for removing your old Linux OS, you would get Windows server with full HDD capacity. But RAM would not be full, because QEMU resides on RAM.
Updates
Right now, Script supporting Ubuntu Distro only.
But very soon I would add the support for all popular Linux Distros too.
So stay tuned.
--
Hope you guys like it.
If you are a developer, you are welcome to contribute in the project
Feel free to ask any question
Don't forget to share your thoughts
Thank you
Last edited: