Disable/Uninstall unnecessary features in Windows qubes

Original forum link
https://forum.qubes-os.org/t/19005
Original poster
taradiddles
Editors
deeplow
Created at
2023-06-02 05:29:08
Last wiki edit
2023-08-15 08:53:09
Revisions
3 revisions
Posts count
1
Likes count
0
Tags
configuration, template

Windows features

Uninstall windows features from Control Panel > Turn windows features On/Off.

Generally, it will be required to reboot after features are uninstalled.

If you do not manage to uninstall some features, it is sometimes necessary to uninstall them one by one or two by two.

Only keep:

Note: Windows search is recommended because it is a nightmare to find something in menus if it is not enabled (it removes the search bar from the start menu, from the explorer, and from the control panel).

Note: Unselecting windows media, .Net and Internet Explorer will uninstall these components. On a new install they are generally old versions anyway and it will be quicker to install directly the new versions later.

Windows services

Disable the following services that are not required or have no sense in a VM context:

this will not work anyway because SSDP discovery uses multicast - need to be on the same network which is not the case because of Qubes firewall

Notes: IP Helper is required as it is used by Qubes Agent to configure the IP address.

Windows update

I recommend disabling windows update (Never Check for Update) because checking for updates will start every time you start an AppVM if you haven't started your template in a while.

Running windows update is also apparently IO hungry.

Of course I recommend starting the template regularly and checking manually for updates.

System properties

Right click on computer and go to Properties > Advanced > Performance:

In Advanced>Performances>Advanced tab, change Virtual memory:

 1. unselect automatically manage paging file size for all drive
 2. click on drive C:
 3. select no paging file
 4. click on set
 5. click on drive d:
 6. select customer size
 7. use an initial size of 500 and a max size of 1000. If the page file is too small, you will notice a low memory pop up when working on windows. In this case, it often means that you should extend your AppVM RAM.

Here you can disable Shadow Folder because it has little sense in the case of Qubes because

Select drives where system protection is enabled and click Configure. "Turn off system protection" "Delete all restore points"

Unselect Allow Remote Assistance connections to this computer.

Task scheduler

Open the task scheduler and disable the following tasks.

If you remove these tasks they may be recreated automatically by various windows management tools (such as defragmentation)

Power options

First, enable the "Power" Windows service. Then, set all of the following:

Turn off hibernation. Open a command prompt (cmd.exe) as an administrator, then execute:

powercfg -h off

The hibernation file (C:\hyberfil.sys) should now be deleted.

Manual tasks that can/should be started in the template

Ensure that you know what you are doing in this section as you may destroy by error your template root.img file.


This document was migrated from the qubes-community project