I am an idiot.
I upgraded my PVE to 7.4 today, but it cannot start after the upgrade is completed. I tried searching for a long time but couldn't solve it. So I found a USB drive and installed the new PVE on it. Name the old PVE pve-OLD-134EEXXX during installation.
Now, I can add drives from my old install as LVM's That has data on them but cannot access it
Now I want to import my VM into the new PVE because there is a lot of important data in the virtual machine. What should I do?
The following are the commands I saw while searching, hoping to be helpful.
update:
I mount pve-OLD-134EE27A, it seems to found the disk of the VM .
but I can't find the configuration file of the VM, can anyone help me?
I upgraded my PVE to 7.4 today, but it cannot start after the upgrade is completed. I tried searching for a long time but couldn't solve it. So I found a USB drive and installed the new PVE on it. Name the old PVE pve-OLD-134EEXXX during installation.
Now, I can add drives from my old install as LVM's That has data on them but cannot access it
Now I want to import my VM into the new PVE because there is a lot of important data in the virtual machine. What should I do?
The following are the commands I saw while searching, hoping to be helpful.
Bash:
root@pvej:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 512M 0 part
└─sda3 8:3 0 111.3G 0 part
├─pve--OLD--134EE27A-swap 253:0 0 8G 0 lvm
└─pve--OLD--134EE27A-root 253:1 0 103.3G 0 lvm
sdb 8:16 0 931.5G 0 disk
sdc 8:32 1 57.3G 0 disk
├─sdc1 8:33 1 1007K 0 part
├─sdc2 8:34 1 512M 0 part /boot/efi
└─sdc3 8:35 1 56.8G 0 part
├─pve-swap 253:2 0 7G 0 lvm [SWAP]
└─pve-root 253:3 0 49.8G 0 lvm /
root@pvej:~# vgscan
Found volume group "pve" using metadata type lvm2
Found volume group "pve-OLD-134EE27A" using metadata type lvm2
root@pvej:~# lvscan
ACTIVE '/dev/pve/swap' [7.00 GiB] inherit
ACTIVE '/dev/pve/root' [49.79 GiB] inherit
ACTIVE '/dev/pve-OLD-134EE27A/swap' [8.00 GiB] inherit
ACTIVE '/dev/pve-OLD-134EE27A/root' [<103.29 GiB] inherit
update:
I mount pve-OLD-134EE27A, it seems to found the disk of the VM .
Bash:
root@pvej:/mnt/pve_old/var/lib/vz/images# ls
100 101 102 103
root@pvej:/mnt/pve_old/var/lib/vz/images# cd /mnt/pve_old/var/lib/vz/images/100
root@pvej:/mnt/pve_old/var/lib/vz/images/100# ls
vm-100-disk-0.qcow2
root@pvej:/mnt/pve_old/var/lib/vz/images/100# ls -l
total 325944
-rw-r----- 1 root root 4295884800 Aug 27 22:07 vm-100-disk-0.qcow2
root@pvej:/mnt/pve_old/var/lib/vz/images/100# cd /mnt/pve_old/var/lib/vz/images/101
root@pvej:/mnt/pve_old/var/lib/vz/images/101# ls
vm-101-disk-0.qcow2
root@pvej:/mnt/pve_old/var/lib/vz/images/101# ls -ll
total 2151184
-rw-r----- 1 root root 10739318784 Aug 27 22:07 vm-101-disk-0.qcow2
root@pvej:/mnt/pve_old/var/lib/vz/images/101# cd /mnt/pve_old/var/lib/vz/images/102
root@pvej:/mnt/pve_old/var/lib/vz/images/102# ls
vm-102-disk-0.raw
root@pvej:/mnt/pve_old/var/lib/vz/images/102# cd /mnt/pve_old/var/lib/vz/images/103
root@pvej:/mnt/pve_old/var/lib/vz/images/103# ls
vm-103-disk-0.raw
root@pvej:/mnt/pve_old/var/lib/vz/images/103# Remote closed!
but I can't find the configuration file of the VM, can anyone help me?
Bash:
root@pvej:~# find /mnt/pve_old/ -name 100.conf
root@pvej:~# locate 100.conf
-bash: locate: command not found
root@pvej:~# find /mnt/pve_old -name 100.conf
root@pvej:~# find /mnt/pve_old -name 100
/mnt/pve_old/var/lib/rrdcached/db/pve2-vm/100
/mnt/pve_old/var/lib/vz/images/100
root@pvej:~# find /mnt/pve_old -name qemu-server
/mnt/pve_old/var/lib/qemu-server
/mnt/pve_old/usr/lib/qemu-server
/mnt/pve_old/usr/share/doc/qemu-server
/mnt/pve_old/usr/share/qemu-server
Last edited: