Technical Blog | 技術博客

易,窮則變,變則通,通則久。是以自天佑之,吉無不利。

[Solution] How to reinstall Windows Server (2003/2008/2012/2016/XP/7/8/10) to Linux Server (CentOS/Debian/Ubuntu/Other)

Introduction

Sometimes, we can’t reinstall the Windwos Server server as a Linux server in the service provider’s control panel.

We tried to send the support ticket, and the service provider told us that the replacement was not supported because of the difference in the license price. We can only find a way to solve it manually.

Today, I will demonstrate four ways to help you successfully install Windows as Linux on your server. I did the testing on Alibaba Cloud and some KVM machines. If you are looking for a solution like this, come and try it.

如果你来自于中文社区,请点击这里

Ready to work

A server with Windows / with internet access / with console (VNC/KVM) operating privileges / or with recovery mode

Please note that the following four options are tested, so most machines can be operated in the following four ways. (You should test which one is right for you)

Let’s start

1. Solution 1 (recovery mode provided by the service provider):

①. First select and enter recovery mode in the service provider panel
You will receive a prompt/email containing SSH/RDP connection information, which allows you to access recovery mode to manage and operate your server.
(Solution 1 is mainly for the recovery mode of receiving SSH connection information. If you receive RDP information, please see Solution 2 / Solution 3 / Solution 4)

②. Check the disk information,
Looking at the disk you want to install, enter the following command. (Your disk may be the following name vda/vdb/sda/sdb/ etc. Please modify the vda in the following command to be your disk)
fdisk -l

③. Execute the following DD system commands to install the latest system with one click (you need to use your own DD image, I provide a latest CentOS7.X image)
wget -qO- https://opendisk.cxthhhhh.com/OperatingSystem/CentOS/CentOS_7.X_NetInstall_AutoPartition.vhd.gz | gunzip -dc | dd of=/dev/vda

④. After the execution is finished, restart the computer, wait 15-45 minutes, and make an SSH connection through IP: 22 (the default password after CentOS7 installation is cxthhhhh.com).

* Tips: There are two tutorial sources for the DD installation system, you can refer to (Files are hosted on Open Disk CDN).
[Original] One-click network reloading CentOS 7 (official, pure, safe, efficient)
[Linux VPS] Debian/Ubuntu/CentOS Network Installation/Reinstallation System/Pure Installation One-Click Script

2. Solution 2 (Install Linux via the official Debian-Installer Loader):

①. Download the Debian-Installer Loader hard drive installer on Windows (Files are hosted on Open Disk CDN)

Debian-Installer hard drive installer Download: https://opendisk.cxthhhhh.com/OperatingSystem/Debian/Debian-install-Windows.exe

②. Install the Debian system via Debian-Installer Loader (according to the program prompt, this is the official Debian solution)

The following is the installation preview image (independent server, you need to go to the motherboard settings to close the secure boot Secure Boot)

《[Solution] How to reinstall Windows Server (2003/2008/2012/2016/XP/7/8/10) to Linux Server (CentOS/Debian/Ubuntu/Other)》

③. Boot the VNC/KVM interface to install Debian and perform a manual installation step by step (without SSH, please operate under VNC/SSH).

④. Wait for Debian to finish installing and start Debian.

(You have completed the installation of Debian, but the Windows system also exists on the hard disk, so it is recommended to re-install the Linux system through DD mode, making all disk space available)

3. Solution 3 (through UNetbootin installation plan)

①. Download the UNetbootin installer on Windows (Files are hosted on Open Disk CDN)

UNetbootin Download: https://opendisk.cxthhhhh.com/Software/UNetbootin/UNetbootin-Windows-661.exe

②. Install the Linux distribution system through UNetbootin (I will use CentOS to demonstrate the operation)

The following is the installation preview image (independent server, you need to go to the motherboard settings to close the secure boot Secure Boot)

《[Solution] How to reinstall Windows Server (2003/2008/2012/2016/XP/7/8/10) to Linux Server (CentOS/Debian/Ubuntu/Other)》

* Tip: You can also choose to install any Linux distribution ISO CD image you have downloaded. (The first step is to select the ISO image, do not use online installation)

③. Start the UNetbootin boot by booting from the VNC/KVM interface and perform the manual installation of Linux step by step (without SSH, please operate under VNC/SSH).

④. After the manual installation, restart the computer, your Windows system is successfully installed to Linux.

(Optional) If you are not assured, you can install a new pure Linux system through the first solution DD again under the currently installed Linux.
(Grub has been booted, and you also manually install other Linux distributions)

4. Solution 4 (through the Deepin boot scenario):

1. Download Deepin OS and Deepin Hard Disk Installer on Windows (Files are hosted on Open Disk CDN)

Deepin System Download: https://opendisk.cxthhhhh.com/OperatingSystem/Deepin/deepin-15.7-amd64.iso
Deepin Hard Disk Installer Download: https://opendisk.cxthhhhh.com/OperatingSystem/Deepin/deepin-system-installer.exe

2. Install the Deepin system through the deepin hard disk installer (put the installer and ISO image in the same directory)

The following is the installation preview image (independent server, you need to go to the motherboard settings to close the secure boot Secure Boot)

《[Solution] How to reinstall Windows Server (2003/2008/2012/2016/XP/7/8/10) to Linux Server (CentOS/Debian/Ubuntu/Other)》

3. Boot and install Deepin through the VNC/KVM interface, and perform manual installation step by step (without SSH, please operate under VNC/SSH).

4. Wait for Deepin to be installed, start Deepin, and then install the new Linux system through Deepin under the first solution DD.

(Optional) If you are not assured, you can install a new pure Linux system through the first solution DD again under the currently installed Linux.
(Grub has been booted, and you also manually install other Linux distributions)

Great, now you have mastered four options to successfully reinstall Windows to Linux.

Further reading:

  1. DebianInstaller/Loader – Debian Wiki
  2. You want Win to Linux
  3. From Windows to Linux

[Technical Blog | Technology Blog] Telegram exchange channel: https://t.me/me_share (TG discussion group please pay attention to TG channel top message)

This article was posted on the [CXT] Technical Blog | 技術博客, if you need to forward the share, please indicate the source.

[SOLVED] How to reinstall Windows Server (2003/2008/2012/2016/XP/7/8/10) to Linux Server (CentOS/Debian/Ubuntu/Other)

点赞