Copy the root image file from the originating qube (here called untrusted) to a temporary location in dom0, typing this in a dom0 terminal:
qvm-run --pass-io untrusted 'cat "/media/user/externalhd/win10.raw"' > /home/user/win10-root.img
I copy 20G raw image, to dom0 with 40G in varlibqubes (rebooted and increased according another guide).
dom0 have enough free space for sure with ~10G extra free space to use after process.
Process result in lost of functionality of dom0 terminal, instability and crash of QubesOS installation.
After hard reset (can’t restart or shutdown normally) QubesOS boot into “recovery” mode.
What could be root of issue? should i convert .raw image format into .img format before copy to determine it final size?
It would help if you could provide some dom0 diagnostic information - you might think that dom0 have enough free space for sure, but how have you actually checked ? Can you show the commands and outputs that led you to this assessment ?
I follow another source from forum in order to increase varlibqubes partition size:
Device already formatted to new clean installation of QubesOS, I can perform same actions 3th time to collect same information from terminal after dom0 crash - but need any guide or steps to follow up
I follow another source from forum in order to increase varlibqubes partition size:
The guide tells you how to resize your partition - it does not tell you how much you need to add to it.
Looking at your previous posts, I suspect that your dom0 was already nearly full, meaning that you don’t just need to resize it to 40G - but to add 40G. [note: using 40G as an example. As I said, without the logs showing the size of the file you are copying and your disk usage state before, I can’t give an exact result]
About 60 GB of disk space is required for conversion. Use an external hard drive if needed. The final root.img size is 40 GB.
should i convert .raw image format into .img format before copy to determine it final size?
Either way qvm-run --pass-io untrusted 'cat "/media/user/externalhd/win10.raw"' > /home/user/win10-root.img just passes the data around - the file type should be totally unrelated
source type .raw, destination type .img .
Could .img format of same file be in higher size then original .raw?
How qvm-run --pass-io logic working?
Options I can think about:
copy .raw file and then change it to .img (both files exist on same moment in dom0)
use RAM to store step between .raw and .img state (expect high RAM usage)
convert .raw file to .img and then copy it (expect high disk usage in source VM)
I believe, but have no proof that qvm-run --pass-io handle tasks as option 1 and it may result in dom0 damage if dom0 free disk space isn’t at less twice then needed.