Wie bzw. wo kann ich dies eingeben das bei 80% eine sichtbare Warnung mir angezeigt wird.
Bevor sich die VM verabschiedet?
How can I set QubesOS so that when a VM is 80% full, it stops filling with data anymore?
I don’t think that’s possible hopefully I’m wrong though
It may be possible with standalones and is definitely possible with HVMs:
- Start installing HVM
- When installing, allocate only 80% of a virtual drive.
I am not sure whether it is possible with regular qubes, since the storage is managed by the system. If you want to experiment, try shrinking filesystem and underlying partition of a qube (please clone qube for this kind of experiment).
Edit: I’ve tried shrinking filesystem on /home
drive in template and it doesn’t persist on reboot.
This may not be exactly what you are looking for but its part of my system startup to check on the AppVM private volumes to give a warning when a private volume is getting full.
This script pops up a warning when I login if any AppVM is above a certain level of being full. Ideally you would want something that dynamically checks (eg inotify) as you write to that volume, but that would be computationally quite expensive. The blow method lets me know when I am more than 80% full on any AppVM.
#!/bin/bash
# check sizes of private volumes
maxsize=80
VMLIST=(`qvm-ls --raw-list `)
for vm in ${VMLIST[@]}
do
class=`qvm-prefs --get $vm klass`
if [ $class == 'AppVM' ] ; then
size=`qvm-volume info ${vm}:private size`
usage=`qvm-volume info ${vm}:private usage`
pct=`awk "BEGIN {print ( $usage / $size)*100 }" `
if (( $(echo "$pct > $maxsize" | bc -l) )) ; then
zenity --info --text "$vm private volume is $pct full" &
fi
fi
done
Kannst du mir bitte sagen, warum so eine VM innerhalb von 5 Sekunden 457 GB voll ist, wenn mein Stich nur 64 Gb groß war, Es wurden nur 13 GB auf die Festplatte kopiert, dann ging es nicht mehr weiter.
Welche Möglichkeit gibt es, den Cache zu löschen oder da eine Änderung zu machen, so das es nie wieder zu einer Totale Sperre kommt?