restore vm from old proxmox harddrive

meideh

New Member
Apr 6, 2023
2
0
1
Hi All,
I have a home lab proxmox server that's not working anymore , I ended up creating new server on another machine.

my question: Can I restore or retrieve the vm(s) from old hard drive by attaching the drive to the new server and copy files or so on.

I'm newbie to linux and proxmox :)

below disks image after adding the old hard disk to the new server.

Thanks
 

Attachments

  • Screenshot 2023-04-06 at 15.32.39.png
    Screenshot 2023-04-06 at 15.32.39.png
    163 KB · Views: 59
Depends...you can reuse the virtual disks of the old VMs but the actual VM config files, defining how the VM should work, were in /etc/pve/lxc or /etc/pve/qemu-server and the /etc/pve folder is a mountpoint of the pve config database. So without your old PVE installation running you won't be able to access those config files, as that mountpoint will be empty.
 
Thank you Dunuin,
I can create a new VM and use the old virtual disks, however how to do it. when I try to mount the sda3 it's not getting mounted.
 
You were probably using LVM-Thin as your storage for virtual disks. So you could add a LVM-Thin storage using the old VG (probably "pve") and thin pool (probably "data") in webUI at "Datacenter -> Storage -> Add -> LVM-Thin". But not sure how well that works, because if your new PVE installation is also using LVM, then you would end up with two identically named "data" thin pools.
 
Last edited:

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!