Qvm-prefs - bulk set

What’s the equivalent of qvm-prefs for setting properties for multiple domUs?

As far as I know, there isn’t any built-in tool to apply QVM prefs to more than one qube at a time. Unless I’m wrong you’ll have to script that yourself.

2 Likes

Perhaps something like this would work

That would only work for the property or feature which is available via qubes-prefs. Not all of them are available. For the unavailable ones, you could use an ugly hack. Something like:

for vm in $(qvm-ls --raw-list);do qvm-prefs $vm PREFERENCE VALUE;done

If you are lucky and you have the latest qvm-ls, it has some filtering options (e.g. --class option).