Hi,thx, but how can I access into the directories of that VM even the machine is offline.
is there a command like vzctl... to get the vm's contents of e.g. /var/www/* ?
apt-get install kpartx
cd /var/lib/vz/images/107
kpartx -av vm-107-disk-1.raw
# output like this:
#add map loop0p1 (254:6): 0 18433 linear /dev/loop0 2048
#add map loop0p2 (254:7): 0 20951039 linear /dev/loop0 20481
mount /dev/mapper/loop0p1 /mnt
We use essential cookies to make this site work, and optional cookies to enhance your experience.