Then we modified the configuration files for the mouse (/etc/qubes-rpc/policy/qubes.InputMouse) and keyboard (/etc/qubes-rpc/policy/qubes.InputKeyboard) so that they will automatically be granted to dom0 without prompting the used each time.
We modified the content /etc/qubes-rpc/policy/qubes.InputMouse and /etc/qubes-rpc/policy/qubes.InputKeyboard to be as below:
Recently we started using Qubes OS 3.2, at some point we needed to enable the Greek language keyboard for a Fedora 23 based VM.
To avoid making permanent change to the VM we used the following command that enables the US and GR keyboard layouts while switching is made available by pressing the two shift buttons at the same time.
4. Start the Windows VM using the custom configuration file as many times as needed to finish the installation
qvm-start win7 --custom-config=/tmp/win7.conf;
5. Enable auto-login on Windows using the netplwiz
At the Windows 7 start menu, type netplwiz, it will pop-up a configuration window from which we need to disable the option Users must enter a user name and password to use this computer. and click the OK button to apply the change (it may request for your password to verify the action).
6. Disable driver signing using bcdedit /set testsigning on
Then, we need to disable driver signing as the Windows Tools Drivers are not digitally signed but we still need to install them.
To do so, we need to start a command prompt (cmd) as an administrator as seen in the images below and execute the command bcdedit /set testsigning on
7. Shut down the Windows VM and start it again using the Install Windows Tools directive
If it starts normally go to step 8, if it gets stuck again then
kill the Windows VM and
repeat step 3 and step 4 before step 8.
8. In My Computer you will see fake CD-ROM drive, install the application found in the image.
When you get prompted to restart by Xen PV Network, ignore it! Also, when prompted to format the disk in drive E:, press cancel.
Finish the whole installation of all tools before restarting the Windows VM (it could create serious problems including crashing your VM completely on restart).
Once the setup is complete, shut down the Windows VM.
9. Increase the execution timeout for the Windows VM
qvm-prefs -s win7 qrexec_timeout 300;
As soon as the Windows VM starts for the first time after Windows Tools were installed, it will perform some time consuming actions like moving the user profiles to a different drive. We need to execute the above to give enough time to the system to complete its tasks.
10. Finally, start the Windows VM with no extra parameters