Linux-to-Windows-with-QEMU
For detailed reading visit www.kwikserver.com
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 :
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)
Optional
If you want to use your own Windows ISO copy.
Then download official copy from https://www.microsoft.com/en-in/evalcenter/evaluate-windows-server-2012-r2 and upload it to your extra server & create a direct url and then replace LINE NO. 39 & 41 of mediabots_Ubuntu-to-Windows.sh with your DIRECT LINK
Script Line No. 39 :-
sudo wget -P /mediabots http://51.15.226.83/WS2012R2.ISO
Script Line No. 41 :-
sudo wget -P /mediabots https://ia601506.us.archive.org/4/items/WS2012R2/WS2012R2.ISO
How to Run the Script
Just run below five commands one after another :
sudo -smkdir /media/script && mount -t tmpfs -o size=1m tmpfs /media/scriptwget -P /media/script https://raw.githubusercontent.com/mediabots/Linux-to-Windows-with-QEMU/master/mediabots_Linux-to-Windows.shchmod +x /media/script/*/media/script/mediabots_Linux-to-Windows.sh
No comments:
Post a Comment