2.0 KiB
2.0 KiB
Windows VM Setup
Start virt-manager
virt-manager
When creating VM:
- Local ISO
- Windows 11 ISO
- Firmware: UEFI (OVMF)
- Chipset: Q35
- TPM: emulated
Before you start the VM:
sudo vim /etc/default/ufw
Find DEFAULT_FORWARD_POLICY="DROP" and change it to DEFAULT_FORWARD_POLICY="ACCEPT"
Now boot the VM.
Network Issues
If the network is being wonky, or if you want to bypass updates... Shift-F10
OOBE\BYPASSNRO
Now add the PCI devices in virt-manager.
yay -S looking-glass
On Windows, download the host from https://looking-glass.io/downloads
sudo virsh edit win11
Inside <devices>
<shmem name="looking-glass">
<model type="ivshmem-plain"/>
<size unit="M">128</size>
</shmem>
sudo vim /etc/tmpfiles.d/10-looking-glass.conf
# Type Path Mode UID GID Age Argument
f /dev/shm/looking-glass 0660 YOURUSER kvm -
sudo rm -f /dev/shm/looking-glass
sudo systemd-tmpfiles --create /etc/tmpfiles.d/10-looking-glass.conf
ls -l /dev/shm/looking-glass
Should be owned by my user.
Install Virtual Display Driver on Windows.
Configure Looking Glass
vim ~/.looking-glass-client.ini
[win]
fullscreen=yes
size=2880x18900
dontUpscale=yes
env -u WAYLAND_DISPLAY looking-glass-client
Audio
Edit XML. Inside <devices>
<sound model="ich9"/>
<audio id="1" type="spice"/>
Clipboard
Edit XML. Inside <devices>
<channel type="spicevmc">
<target type="virtio" name="com.redhat.spice.0"/>
</channel>
File Sharing
Enable Memory → Shared in the virt-manager
sudo pacman -S virtiofsd
mkdir -p ~/vmshare
Edit XML. Inside <devices>
<filesystem type="mount" accessmode="passthrough">
<driver type="virtiofs"/>
<source dir="/home/USERNAME/vmshare"/>
<target dir="vmshare"/>
</filesystem>
Install virtio-guest-tools. Hey guess what, this also seems to make the windows key work.
Also install winfsp