sparse fedora template

42 views
Skip to first unread message

Eva Star

unread,
Nov 18, 2016, 6:31:28 PM11/18/16
to qubes-users
Hello,

is it possible to sparse fedora template like Windows template? How to
fill it with nulls before cleaning?

I have this question because fedora-24 template 1 gb bigger after same
programs installed, then fedora-23.


--
Regards

Andrew David Wong

unread,
Nov 19, 2016, 7:42:22 AM11/19/16
to Eva Star, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
You can use the qvm-trim-template tool to do this. For example:

$ qvm-trim-template fedora-24

https://www.qubes-os.org/doc/fedora-template-upgrade-23/#compacting-the-upgraded-template

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYMEimAAoJENtN07w5UDAwM6cP/RnMqglcn770f0Gr8c/2nEYk
yJjXuma2bh8aLAa6Z5U0MWwcr9ylIKcTA6xmXaXHrb3qfzKvLtMUMI+Vx70UmN4p
2phulDqdpTC6f5Z9ZSL/RZ+XX/XFtfwq/F4jVSke9G0NEueAEYlWlcTtDOOkqvHr
g8hwD1Dzy1Q+RFsDi52LN1q1twa/BGWPqOi7GCIq3DNZQP2oT8NxCmkifkttIaxr
FsND4TunC+JKCZpV8Y53RvoCAKicNxCouPZ9jLO0bHoWvJnnCHd1UubIq0byqtPh
GKuHUN4dErHZvNqhU3kS3OO4Qc6gWwFjJAyPFFrJZ8RP/vrVxgIWteT7+jUy9DBe
9Qfcqchob1tM8q0cFXt4RytI92caTSdESBDTB0pgV/L4e6o1rW3InTym8A5ZNSv6
jiolKwwbIvVK/IK60nuNhTpUqpvy0+pet1jEnsq4WDLYVx2IRZjSEaGsUe7iHteH
fPvmKeQBSw/BhLOGJMGFJEgveuyeFQlTlkm9Vwinnuw+RrLRP9Ijrp3ssga8TKzx
fmkFG2i0gDsJZ4JF6gcF33WP6y41avQu5s7Ski7u4eIO+CYiQrp1lSLAhz4nRYwh
mfyVzoEu9UkG0ATMf4fi6sXGCSpnjI0rLxJt4qu2OSQTKPayG2P5psOWowI0mt2l
TpQ2PJmLpROp9DYn3EKj
=uTCa
-----END PGP SIGNATURE-----

Eva Star

unread,
Nov 21, 2016, 4:15:19 PM11/21/16
to qubes...@googlegroups.com
On 11/19/2016 03:42 PM, Andrew David Wong wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On 2016-11-18 15:31, Eva Star wrote:
>> Hello,
>>
>> is it possible to sparse fedora template like Windows template? How to fill it with nulls before cleaning?
>>
>> I have this question because fedora-24 template 1 gb bigger after same programs installed, then fedora-23.
>>
>>
>
> You can use the qvm-trim-template tool to do this. For example:
>
> $ qvm-trim-template fedora-24
>
> https://www.qubes-os.org/doc/fedora-template-upgrade-23/#compacting-the-upgraded-template

Very nice. Thank you for help)

--
Regards

Eva Star

unread,
Nov 21, 2016, 4:21:47 PM11/21/16
to qubes...@googlegroups.com
On 11/19/2016 03:42 PM, Andrew David Wong wrote:
> -----BEGIN PGP SIGNED MESSAGE-----

>
> You can use the qvm-trim-template tool to do this. For example:
>
> $ qvm-trim-template fedora-24
>
> https://www.qubes-os.org/doc/fedora-template-upgrade-23/#compacting-the-upgraded-template

And how to trim AppVM storage?

Maybe separated page for trimming templates and VMs?

--
Regards

Andrew David Wong

unread,
Nov 25, 2016, 9:36:10 AM11/25/16
to Eva Star, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I think AppVMs have TRIM enabled by default (i.e., private.img is mounted with the "discard" option).

See: https://www.qubes-os.org/doc/disk-trim/

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYOExOAAoJENtN07w5UDAwpYAP/iBk1px4cgEEZRyG8ej/DaOf
2shMtsl9rMR5gTFDUs568810mwyM1rn6icWfwyaMG27qQxapGs0N9zRdx6ZOzJwz
aWjN6y1mOgTMyS2EoQPWzTEbJsf5xWWf+IgX7yd7EkVVCziXASCGY97Kt1UHCGpl
EkX8p19pFj3Wng0Oqg6PLC8TkfvBhFi+7gfYF4uypqfz8dyZM6LnPnOLIIxaZwi8
VHw64Bhsa2TRdefbToaM2dCX+zXPoTKSpcBFOb4+EDaeq6I62dOeorhoZizkG4Aq
0bqBEZnnsqDCvD+5V6XYlLUS3uDyyC8MXwSjirZbWG9cG7LbaHjHw7IEYS+4Sf9I
ez1MYpZtm25tgCiqjhgLvGNilDlL3ntVksHI/+AmZJtihxaQuOWAJ9o1qqZvcVkc
N7EW78zexzABecKCkC4/gOPE39GoSz4P1Zz8IKS+vKfhMco+zop4BEOncSfOr4fQ
LqaWem8Pc5MphR8kdolJOQYLAd0X7FlR9/21v3JIUXzSkL5i6cfOlSiSA6r5sa9T
nzWb+n3kh9JfFXKeJc45/rL3N22RmaVXCJAk+zYY3rmY6u+r+2D/N86RXSyFCWcg
fLbjsSGj5/UPzrOOsquW6Lp3AVlqgNADfwYagb0wl5cOAuelXEhXy8rwY7KdDcRs
2adLBH/RJy67xD3xOmmu
=+LG7
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages