Thanks to @jevank I have been able to get Windows 10 standalone VM working on Qubes 4.1rc2 with QWT. I have identified a few problems but only one is critical:
-
The first and only major issue is the win10 VM clock does not stay in sync between reboots. I will manually perform a successful internet time sync in the Wiin10 VM (settings> date & time > sync now) then reboot and the clock will revert back to what appears to be UTC (although my timezone will remain EST). This happens with the âset time automaticallyâ option both ON and OFF.
-
The second issue is everytime you boot the win10 VM Qubes/Dom0 notification banner will pop up âFailed: qubes.NotifyTools - Failed to execute qubes.NotifyTools from win10 to dom0â
Is anyone else experiencing the clock issue?
I have documented all the steps I took to install a working Windows w/ QWT in Q4.1rc2 below to help others. If anyone has any suggestions on how to improve it before I publish it in the main forum please let me know.
EDIT: TO ANYONE READING DO NOT FOLLOW THE GUIDE BELOW IT IS NOT YET FINALIZED AND HAS SOME ERRORS I AM CLARIFYING IN DISCUSSIONS BELOW
STEP 1: Download Windows ISO (the latest as of writing is 21H2 Build 19044.1288)
My Windows 10 iso is stored in the vm âwindows-isoâ
STEP 2: Execute commands in Dom0 to setup Windows VM called âwin10â
qvm-create --class StandaloneVM --label red --property virt_mode=hvm win10
qvm-prefs win10 vcpus 2
qvm-prefs win10 memory 4096
qvm-prefs win10 maxmem 4096
qvm-prefs win10 kernel ''
qvm-volume extend win10:root 50G
qvm-volume extend win10:private 40G
qvm-prefs win10 netvm sys-firewall
qvm-features win10 audio-model ich6
qvm-features win10 stubdom-qrexec 1
qvm-start --cdrom=windowsiso:/home/user/win10pro.iso win10
STEP 3: Install Windows 10
Set default username to âuserâ
Set default password to âpasswordâ
Run windows update and install all available updates
Turn on automatic logon using registry editor
Turn off hibernation. Open windows terminal with admin rights:
powercfg -H off
Shutdown
Note, the VM will shutdown several times during installation and you will need to manually start again to continue installation.
STEP 4: Build latest QWT Source: @jevank
Install Fedora 33 template VM:
dom0: sudo qubes-dom0-update qubes-template-fedora-33
Create standalone fedora 33 VM âqwt-builderâ with 15G private storage space
In qwt-builder VM terminal execute commands to build QWT:
cd ~
sudo dnf -y install git make mock
git clone https://github.com/QubesOS/qubes-builder
cd qubes-builder
make install-deps
make remount
make BUILDERCONF=example-configs/qubes-os-r4.1.conf COMPONENTS=builder-rpm get-sources
make BUILDERCONF=example-configs/qubes-os-r4.1.conf BASEURL=https://github.com GIT_PREFIX=tabit-pro/qubes- INSECURE_SKIP_CHECKING=windows-tools-cross COMPONENTS=windows-tools-cross get-sources
make BUILDERCONF=example-configs/qubes-os-r4.1.conf COMPONENTS=windows-tools-cross windows-tools-cross-dom0
sudo rpm -Uhv qubes-packages-mirror-repo/dom0-fc32/rpm/qubes-windows-tools*.noarch.rpm
sudo losetup -f /usr/lib/qubes/qubes-windows-tools.iso
STEP 5: Install QWT in Win10 VM
5a) execute this command in dom0 to attach QWT iso to win10 VM and boot
qvm-start win10 --cdrom qwt-builder:loop0
5b) In win10 file explorer find mounted iso and install QWT. Accept default options. if asked to reboot deny.
5c) Before restarting verify Win10 VM CPU is idle and reboot. after the vm powersoff do not restart.
5d) execute these two commands in dom0 with win10 powered off:
qvm-features win10 gui 1
qvm-prefs win10 qrexec_timeout 300
5e) start win10 VM. A GUI may not appear. Use Dom0 GUI to initiate an additional reboot BUT before you do wait until win10 CPU is idle (~5min). I am not 100% the logic of this step but i think some configuring is going on so let it run just in case. If anyone confirms this unecessary let me know. once your GUI is up check and confirm QWT is running correctly. poweroff.
5f) dom0: qvm-prefs win10 default_user user