Where does Qubes 4 store the VM images?

251 views
Skip to first unread message

Elias Mårtenson

unread,
Nov 8, 2017, 6:12:29 AM11/8/17
to qubes-devel
In 3.2, the images were stored as sparse files in /var/lib/qubes/appvms/VMNAME. In Qubes 4, these directories are practically empty, so where is the data stored?

Also, the output from "df" in dom0 is a bit strange. On my Laptop with a 250 GB SSD, it says this about the root drive:

  Filesystem                   Size  Used  Avail  Use%  Mounted on
  /dev/mapper/qubes_dom0-root  210G  3.8G  196G   2%    /

This cannot possibly be right, which I proved by creating a VM and creating 7 GB of files with random data in it. The output from "df" did not change at all.

This leads me to believe that I cannot trust "df", so how can I tell when I'm running out of disk space?

Regards,
Elias

Marek Marczykowski-Górecki

unread,
Nov 8, 2017, 8:11:39 AM11/8/17
to Elias Mårtenson, qubes-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
This is known issue, see here for details and workarounds until proper
solution got implemented:
https://github.com/QubesOS/qubes-issues/issues/3240

In short:

sudo lvs qubes_dom0/pool00

And look at 'Data%' column.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJaAwKDAAoJENuP0xzK19csuFYH/AmVoW1f53PS2zgYvdTcrgwY
HNHJQo/Rxh8arlQBw90YvKnrM5ysSmz09bJZUOQGscuK8XTw3Fv1xB+4rU9dM9HM
Wl8CDpFSiihTI6xTVLyA9ivsN7Dt4mZunjJ27496OFOX0gC3qPyyjQx5lHhZwM9F
CQRLBvLCXYS8wUsrZhjtvv3o1ZkiCp4A/6JjLwpenmTGVsKiruuA12MqpXRfgi/0
/1yq04SrYxXSCeO8yC2yjuqIsTZTfczJMEKViTW0RvavoVTcAVbl6lRwN3R8JH6z
whG+mCJR/S1nHJD5s8xWoNI3Mkr9U9f9NROGiFbd9F3Jw1IDcdoRoNKuXZs4FZw=
=GPf6
-----END PGP SIGNATURE-----

Elias Mårtenson

unread,
Nov 9, 2017, 5:47:55 AM11/9/17
to qubes-devel
On Wednesday, 8 November 2017 21:11:39 UTC+8, Marek Marczykowski-Górecki wrote:
 
    sudo lvs qubes_dom0/pool00

Thank you very much. It makes much more sense now. I can see how the new system is much more powerful than the old behaviour.

Regards,
Elias 
Reply all
Reply to author
Forward
0 new messages