An open API service indexing awesome lists of open source software.

https://github.com/pymmdrza/winonlinux

Run and Install Windows os on Linux Terminal with KVM
https://github.com/pymmdrza/winonlinux

kvm linux qemu qemu-kvm rdp remote-desktop-linux windows windows-desktop-kvm windows-to-linux

Last synced: about 1 year ago
JSON representation

Run and Install Windows os on Linux Terminal with KVM

Awesome Lists containing this project

README

          

# WinOnLinux

Run and Install Windows OS on Linux Terminal With this script, you can easily install any type of operating system on all Debian-based Linux systems and manage your resources, and you can also use this trick on all cloud systems. At the end, you can connect easily just by entering the IP address of the desired server in the remote desktop as long as the executive command is open.

```bash
git clone https://github.com/Pymmdrza/WinOnLinux.git
cd WinOnLinux
```

## Install & Use

You can run the entire process using the provided shell script. This script will download and extract the necessary files, download the Windows ISO, list available drives, ask for your confirmation, and start QEMU.

```bash
chmod +x INSTALL.sh
./INSTALL.sh
```
>[!NOTE]
>**Example** :
>Please enter the name of the drive you want to use (e.g., /dev/sda): `/dev/nvme2n1p2`

## Manual

### Step 1: Download and Extract vkvm.tar.gz

```bash
curl -fL https://github.com/Pymmdrza/WinOnLinux/raw/main/vkvm.tar.gz -o /tmp/vkvm.tar.gz && \
tar -xzvf /tmp/vkvm.tar.gz -C /tmp && \
rm /tmp/vkvm.tar.gz
```
### Step 2: Download Windows ISO (Direct Link)

```bash

curl -fL https://cdn.s0ft.net/dl/iso/windows/Windows_10_Business_Multiple_Editions_22H2_19045_4046_MSDN_VL_x64.iso -o /tmp/win10.iso
```

More about Windows 10 ISO file or download another version follow [this Link](https://s0ft.net/windows-10-business-editions-22h2-build-19045-4291-vl-activation.html 'Windows 10 Business Editions 22H2 Build 19045.4291 VL + Activation')

### Step 3: Run QEMU with the Downloaded ISO

#### SSD Type

```bash

./qemu-system-x86_64 -net nic -net user,hostfwd=tcp::3389-:3389 -m 10000M -localtime -enable-kvm -cpu core2duo,+nx -smp 2 -usbdevice tablet -k en-us -cdrom /tmp/win10.iso -hda /dev/sda -vnc :1 -boot d
```
#### NVME Type

```bash

./qemu-system-x86_64 -net nic -net user,hostfwd=tcp::3389-:3389 -m 10000M -localtime -enable-kvm -cpu core2duo,+nx -smp 2 -usbdevice tablet -k en-us -cdrom /tmp/win10.iso -hda /dev/nvme0n1 -vnc :1 -boot d
```
To find the drive name, use `lsblk` to show all drives on the system. If you see a difference in the name of the drives, you can change this part according to the name of your drive: `-hda /dev/`