[TUTORIAL] Howto extract PVE backup from outsite (on a Debian machine)

ghusson

Renowned Member
Feb 25, 2015
86
7
73
FRANCE
www.liberasys.com
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>
 
  • Like
Reactions: mediacj

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!