How to check total storage used by VM?

71 views
Skip to first unread message

Jerry

unread,
Sep 28, 2017, 7:11:05 AM9/28/17
to qubes-users
I need to see how much room I have on my ssd preferrably by vm. Seems I created and deleted several vms but I seem to have missing space I should have. Any help or add on would be appreciated.

One7two99

unread,
Sep 28, 2017, 10:14:10 AM9/28/17
to Jerry, qubes-users
Hello Jerry,

>> I need to see how much room I have on my ssd preferrably by vm.
>> Seems I created and deleted several vms but I seem to have missing
>> space I should have. Any help or add on would be appreciated.

You could run the following command in your dom0:
du -sh /var/lib/qubes/appvms/* /var/lib/qubes/vm-templates/* /var/lib/qubes/servicevms/*

This will show the summarized space of all VM directories.
Is this what your are looking for?

[788]

Jerry

unread,
Sep 28, 2017, 11:35:39 AM9/28/17
to qubes-users

Yes that shows me. Thank you. Now if I alotted in the vm itself 125gb and it shows 53gb then that extra space is still there or is it actually holding 125?

One7two99

unread,
Sep 28, 2017, 2:17:12 PM9/28/17
to Jerry, qubes-users
Hello Jerry,

> Now if I alotted in the vm itself 125gb and it shows 53gb then
> that extra space is still there or is it actually holding 125?

storage space is thin provisioned as such your App-VMs will grow over time.
You can check the available space with

df -h

Please keep in mind that you have several layers:

Physical Harddrive / SSD
Partitions
LUKS Encryption
LVM

LVM consists of:
LVM PV Physical Volumes (command: pvdisplay)
LVM VG Volume Groups (command: vgdisplay)
LVM LV Logical Volumes (command: lvdisplay)

This offers lots of flexibility but also raises complexity.
You could have only 10 GB physical free space on you drive, while a virtual machine with a thin provisioned drive could fool you that there is plenty free space available.

[788]

cooloutac

unread,
Sep 29, 2017, 9:47:54 AM9/29/17
to qubes-users
On Thursday, September 28, 2017 at 7:11:05 AM UTC-4, Jerry wrote:
> I need to see how much room I have on my ssd preferrably by vm. Seems I created and deleted several vms but I seem to have missing space I should have. Any help or add on would be appreciated.

qvm-ls -d from dom0.

Reply all
Reply to author
Forward
0 new messages