VirtualBox is not available on Debian 13 Trixie, so I’m using KVM + QEMU + virt-manager this time.
1. Install required packages
sudo apt update
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager
2. Add user to the group(s).
sudo usermod -aG libvirt $(whoami)
sudo usermod -aG kvm $(whoami)
Log out and log in so that the new groups are in effect.
3. Download the Windows ISO.
Download the Windows 11 ISO from https://www.microsoft.com/software-download/windows11
4. Create a new VM using virt-manager.
RAM: 6GB
CPU: 4
DISK: 64GB
Enable shared memory: checked
Video: Model=Virtio
3D acceleration = unchecked
SATA CDROM 1: Source path = <location of the downloaded Windows ISO>
Begin installation.
5. Auto start the virtual network.
Go to Virt-manager -> Edit -> Connection Details, check “Autostart: On Boot” for every network.
6. Enable a shared folder between Linux host and Windows guest.
Install additional packages:
sudo apt install qemu-system qemu-utils libvirt-daemon virt-manager virtiofsd
Set up a shared folder:
mkdir -p ~/winshare
chmod 777 ~/winshare
Configure the shared directory in virt-manager:
virt-manager -> Add Hardware -> Filesystem
Driver: virtiofs
Source path: ~/winshare
Target path: winshare
Start up the Windows guest. Install the WinFsp by downloading the installer from the following site:
https://winfsp.dev/rel/
Download the latest virtio-win ISO from the following site:
https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/
Mount the ISO (assume it is mounted at drive D), then install all drivers provided in it by running the following application:
D:\virtio-win-gt-x64.msi
Reboot the Windows guest. Once rebooted, run the following command to enable Windows guest to access the shared folder in the Linux host:
"C:\Program Files\Virtio-Win\VioFS\virtiofs.exe"
The above application will not exit by itself. When it runs, the shared folder shows up as Z: drive in my Windows guest. Use ctrl+c if you want to stop it. Once stopped, the Z: drive will be gone and the shared folder will not be accessible. The above command needs to be run every time the Windows guest starts up. Add it to the scheduler and run upon log in?
7. Enable two-ways copy/paste.
Run the following installer in the virtio ISO image:
D:\virtio-win-guest-tools.exe