Hot answers tagged

1

Expanding on banjo67xxx's answer you can get the percent complete (with decimals) using the following: echo "(`dmsetup status | tail -n 1 | awk '{print $8}'`)*100" | bc -l If you want to limit the number of decimal places you use a scale declaration in the string echoed to bc. Here's the same command constrained to 2 decimal places: echo "scale=2; ...


1

Alternatively have a look at guestfish, guestmont or virt-copy-out (both from libguestfs.org).



Only top voted, non community-wiki answers of a minimum length are eligible