Hello, I wanted to get a raw disk image for an internship working on a server migration (with virt-manager on his computer).
I got the PVE backup and seen that documentation is not up to date around for extracting these backups.
Thus I post an update here. Maybe somebody would like to test it and put it in the WIKI (https://pve.proxmox.com/wiki/VMA) ?
# add pve repository and key
echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
wget -O- "http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg" | apt-key add -
apt-get update
# install pve kvm and dependancies
apt-get download pve-qemu-kvm
mkdir tmp
dpkg -X pve-qemu-kvm_4.0.1-5_amd64.deb ./tmp
mv tmp/usr/bin/vma ./
rm -rf ./tmp
apt install libiscsi7 librbd1 libgfapi0 libjemalloc2
# extract vma.lzo file :
lzop -d <file.vma.lzo>
./vma extract -v <file.vma> <not already created directory, ex: ./tmp2>
# (optional) convert to qcow2 :
qemu-img convert -O qcow2 <input file.raw> <output file.qcow2>
I got the PVE backup and seen that documentation is not up to date around for extracting these backups.
Thus I post an update here. Maybe somebody would like to test it and put it in the WIKI (https://pve.proxmox.com/wiki/VMA) ?
# add pve repository and key
echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
wget -O- "http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg" | apt-key add -
apt-get update
# install pve kvm and dependancies
apt-get download pve-qemu-kvm
mkdir tmp
dpkg -X pve-qemu-kvm_4.0.1-5_amd64.deb ./tmp
mv tmp/usr/bin/vma ./
rm -rf ./tmp
apt install libiscsi7 librbd1 libgfapi0 libjemalloc2
# extract vma.lzo file :
lzop -d <file.vma.lzo>
./vma extract -v <file.vma> <not already created directory, ex: ./tmp2>
# (optional) convert to qcow2 :
qemu-img convert -O qcow2 <input file.raw> <output file.qcow2>