Getting original v7 VMs on HDD into v8 parallel installation on NVME

Ergonomist

New Member
Sep 16, 2022
2
0
1
(minor edits for clarity)

Dear Proxmox people wide and far,

After deciding to get serious about my Proxmox journey I've found my first massive challenge - in an attempted migration from an old Core 2 Quad to a 12th gen Core i5 platform.

Connecting the original SATA HDD with a 2022 Proxmox 7.2 to the new platform and rebooting went without a hitch, but then I had the great idea of installing a fresh Proxmox 8 on the also-new NVME drive in parallel to the SATA drive. The Proxmox 8 installer renamed the former v7 "pve" to "pve-OLD" (details in code snippets below), and made the original v7 pve unbootable.

The catch: I had not yet backed up any of the old containers on the Proxmox 7 setup, so not being able to boot into that anymore is kind of problematic.

Following forum posts here I tried the things people with an actually-overwritten Proxmox installation had done (ie. attaching the pve-OLD LVM with the VM/LXC volumes, and basically recreating containers with identical IDs to get these back into a running state), but
  1. I am not getting very far with it right now (networking issues, uncertainties about the original configuration, etc.), and
  2. I feel like just booting into the old Proxmox 7 installation, backing things up from there, and restoring on Proxmox 8's NVME-LVM would actually be a lot easier and faster.
Sadly, for option 2 I so far didn't manage to have grub on Proxmox 8 detect and integrate the old SATA-based Proxmox 7 either, which I presume to be neutered by the v8 installer. To add insult to injury, Proxmox 8 on NVME uses legacy CSM boot, whereas P7 on SATA is an EFI. I've tried to change that multiple times as well, but to no avail. Can't have it all, I guess...

Anyway, you can see my lsblk & lvs/vgs/pvs below. Ideally I would just like to migrate my vm-300 Alpine container with a few Docker images and data to the NVME drive's LVM on Proxmox 8 and take it from there - everything else was just experimental anyway and can go. Any advice on how I should best proceed? Enable a reboot into Proxomox 7 and backup/migrate, or move ahead with a "recreate and mount" approach straight on Proxmox 8?

Many thanks for any advice you can provide! Please let me know if there's any other info like required (e.g. on grub/fstab, etc), at least I've got these roughly figured out. :)

Cheers,
E


Code:
root@pve-nvme:~# lsblk
NAME                                        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sda                                           8:0    0  3.6T  0 disk
├─sda1                                        8:1    0 1007K  0 part
├─sda2                                        8:2    0  512M  0 part
└─sda3                                        8:3    0  3.6T  0 part
  ├─pve--OLD--E2894EF6-swap                 253:2    0    7G  0 lvm
  ├─pve--OLD--E2894EF6-root                 253:3    0   96G  0 lvm
  ├─pve--OLD--E2894EF6-data_tmeta           253:4    0 15.8G  0 lvm
  │ └─pve--OLD--E2894EF6-data-tpool         253:6    0  3.5T  0 lvm
  │   ├─pve--OLD--E2894EF6-data             253:7    0  3.5T  1 lvm
  │   ├─pve--OLD--E2894EF6-vm--101--disk--0 253:8    0    4M  0 lvm
  │   ├─pve--OLD--E2894EF6-vm--101--disk--2 253:9    0   32G  0 lvm
  │   ├─pve--OLD--E2894EF6-vm--101--disk--1 253:10   0   32G  0 lvm
  │   ├─pve--OLD--E2894EF6-vm--100--disk--0 253:11   0   32G  0 lvm
  │   ├─pve--OLD--E2894EF6-vm--300--disk--0 253:12   0    1T  0 lvm
  │   ├─pve--OLD--E2894EF6-vm--301--disk--0 253:13   0    1T  0 lvm
  │   ├─pve--OLD--E2894EF6-vm--100--disk--1 253:14   0    8G  0 lvm
  │   ├─pve--OLD--E2894EF6-vm--100--disk--2 253:15   0    8G  0 lvm
  │   └─pve--OLD--E2894EF6-vm--100--disk--3 253:21   0    8G  0 lvm
  └─pve--OLD--E2894EF6-data_tdata           253:5    0  3.5T  0 lvm
    └─pve--OLD--E2894EF6-data-tpool         253:6    0  3.5T  0 lvm
      ├─pve--OLD--E2894EF6-data             253:7    0  3.5T  1 lvm
      ├─pve--OLD--E2894EF6-vm--101--disk--0 253:8    0    4M  0 lvm
      ├─pve--OLD--E2894EF6-vm--101--disk--2 253:9    0   32G  0 lvm
      ├─pve--OLD--E2894EF6-vm--101--disk--1 253:10   0   32G  0 lvm
      ├─pve--OLD--E2894EF6-vm--100--disk--0 253:11   0   32G  0 lvm
      ├─pve--OLD--E2894EF6-vm--300--disk--0 253:12   0    1T  0 lvm
      ├─pve--OLD--E2894EF6-vm--301--disk--0 253:13   0    1T  0 lvm
      ├─pve--OLD--E2894EF6-vm--100--disk--1 253:14   0    8G  0 lvm
      ├─pve--OLD--E2894EF6-vm--100--disk--2 253:15   0    8G  0 lvm
      └─pve--OLD--E2894EF6-vm--100--disk--3 253:21   0    8G  0 lvm
nvme0n1                                     259:0    0  1.8T  0 disk
├─nvme0n1p1                                 259:1    0 1007K  0 part
├─nvme0n1p2                                 259:2    0    1G  0 part /boot/efi
└─nvme0n1p3                                 259:3    0  1.8T  0 part
  ├─pve-swap                                253:0    0    8G  0 lvm  [SWAP]
  ├─pve-root                                253:1    0   96G  0 lvm  /
  ├─pve-data_tmeta                          253:16   0 15.9G  0 lvm
  │ └─pve-data-tpool                        253:18   0  1.7T  0 lvm
  │   ├─pve-data                            253:19   0  1.7T  1 lvm
  │   └─pve-vm--100--disk--0                253:20   0    8G  0 lvm
  └─pve-data_tdata                          253:17   0  1.7T  0 lvm
    └─pve-data-tpool                        253:18   0  1.7T  0 lvm
      ├─pve-data                            253:19   0  1.7T  1 lvm
      └─pve-vm--100--disk--0                253:20   0    8G  0 lvm


Code:
root@pve-nvme:~# lvs
  LV                              VG               Attr       LSize  Pool Origin        Data%  Meta%  Move Log Cpy%Sync Convert
  data                            pve              twi-aotz-- <1.67t                    0.01   0.15                          
  root                            pve              -wi-ao---- 96.00g                                                         
  swap                            pve              -wi-ao----  8.00g                                                         
  vm-100-disk-0                   pve              Vwi-a-tz--  8.00g data               2.54                                 
  data                            pve-OLD-E2894EF6 twi-aotz--  3.49t                    36.89  2.96                          
  root                            pve-OLD-E2894EF6 -wi-a----- 96.00g                                                         
  snap_vm-300-disk-0_snap20220927 pve-OLD-E2894EF6 Vri---tz-k  1.00t data vm-300-disk-0                                      
  swap                            pve-OLD-E2894EF6 -wi-a-----  7.00g                                                         
  vm-100-disk-0                   pve-OLD-E2894EF6 Vwi-a-tz-- 32.00g data               0.00                                 
  vm-100-disk-1                   pve-OLD-E2894EF6 Vwi-a-tz--  8.00g data               1.06                                 
  vm-100-disk-2                   pve-OLD-E2894EF6 Vwi-a-tz--  8.00g data               9.09                                 
  vm-100-disk-3                   pve-OLD-E2894EF6 Vwi-a-tz--  8.00g data               1.60                                 
  vm-101-disk-0                   pve-OLD-E2894EF6 Vwi-a-tz--  4.00m data               14.06                                
  vm-101-disk-1                   pve-OLD-E2894EF6 Vwi-a-tz-- 32.00g data               10.96                                
  vm-101-disk-2                   pve-OLD-E2894EF6 Vwi-a-tz-- 32.00g data               2.78                                 
  vm-300-disk-0                   pve-OLD-E2894EF6 Vwi-a-tz--  1.00t data               73.86                                
  vm-301-disk-0                   pve-OLD-E2894EF6 Vwi-a-tz--  1.00t data               54.19      
                        
root@pve-nvme:~# vgs
  VG               #PV #LV #SN Attr   VSize  VFree
  pve                1   4   0 wz--n- <1.82t  16.24g
  pve-OLD-E2894EF6   1  13   0 wz--n- <3.64t <16.38g

root@pve-nvme:~# pvs
  PV             VG               Fmt  Attr PSize  PFree
  /dev/nvme0n1p3 pve              lvm2 a--  <1.82t  16.24g
  /dev/sda3      pve-OLD-E2894EF6 lvm2 a--  <3.64t <16.38g
 
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!