Qubes 4.1: How to set private storage max size using SALT?

29 views
Skip to first unread message

Johannes Graumann

unread,
Mar 21, 2022, 1:21:52 PM3/21/22
to qubes...@googlegroups.com
Hi,

Please see subject line ;)

Thanks for any pointers.

Joh

unman

unread,
Mar 22, 2022, 12:22:56 PM3/22/22
to qubes...@googlegroups.com
You have to include a call to qvm-volume in your state file.

'qvm-volume extend QUBE:private 50G':
cmd.run

Johannes Graumann

unread,
Mar 24, 2022, 4:53:34 AM3/24/22
to unman, qubes...@googlegroups.com
Super! Thank you!

Johannes Graumann

unread,
Mar 24, 2022, 5:42:12 AM3/24/22
to Johannes Graumann' via qubes-users, unman
Turns out, this does not generally work. The first time the command runs (and <REVISION>, the target storage size is really bigger than what is set) everything is fine, but as the shorthands like `G` do not reflect what's really set (in bytes) under the hood such a statement fails on every further run, as `qvm-volume` returns an error: `For your own safety, shrinking of private is disabled ...`

Johannes Graumann

unread,
Mar 24, 2022, 5:55:51 AM3/24/22
to Johannes Graumann' via qubes-users, unman
For me this works: set size manually for one VM, check the "real" byte level size using `qvm-volume i QUBE:private` and use the "real" full number rather than the `G`-shorthand ... inconvenient. If `qvm-volume` allows to set using shorthands, it also should take care of using that info when checking.
Reply all
Reply to author
Forward
0 new messages