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.
git clone https://github.com/Pymmdrza/WinOnLinux.git
cd WinOnLinux
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.
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
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
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
./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
./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/<NAME_YOUR_DRIVE_HERE>