Proxmox 7.x grub failed vlmid not found - Solved

Nospam2k

New Member
Mar 26, 2022
2
2
3
This is for Proxmox 7.x which uses EFI for booting by default. There are MANY older posts that talk about using normal bios commands but that didn't work for me.

I was resizing LVM's and doing multiple things all at the same time and my machine froze and I was forced to reboot. I got the grub prompt saying it couldn't find the vlmid.

I had to dig around to get this info from several different posts so I thought I would put it down in new user form; new user as in familiar with linux terminal commands, not "I don't know anything". You should have some idea of what these commands do this. Ignore all the # after the commands as they are just comments

1. You MUST boot from proxmox live USB or DVD to use proxmox-boot-tool. Choose boot rescue and put in password. If it hangs like it isn't doing anything, press Enter. You will be root so be careful not to make typos!
2. vgscan #scans and enables lvm
3. vgchange -ay #activates lvm

It's important to verify the drive that you installed Proxmox on. Normally this is /dev/sda. This will help to make sure:
1. fdisk -l #dumps the disks. Look for BIOS boot and EFI System. That's the drive we are interested in. For me that is /dev/sda and the efi partition is /dev/sda2
2. fdisk /dev/sda #Just to make sure you have the right disk with the EFI partition. Normally 3 partitions, BIOS, EFI, and LVM. Replace sda with your drive.

So now we are ready for the next part. Be sure not to skip anything.
1. mkdir /media/rescue # Getting ready to mount all necessary partitions in steps 2-7
2. mount /dev/pve/root /media/rescue
3. mount /dev/sda2 /media/rescue/boot/efi #Again replace sda2 with your EFI partition.
4. mount -t proc proc /media/rescue/proc
5. mount -t sysfs sys /media/rescue/sys
6. mount -o bind /dev /media/rescue/dev
7. mount -o bind /run /media/rescue/run
8. chroot /media/rescue #Sets up an environment as if you booted into your Proxmox installation.
9. proxmox-boot-tool format /dev/sda2 --force #This looks scary but we are just erasing the EFI boot and not your data. MAKE SURE TO REPLACE sda2 WITH YOUR EFI PARTITION!!!
10. proxmox-boot-tool init /dev/sda2 #This will reinstall grub and set up all the boot info. REPLACE sdas2 WITH YOUR EFI PARTITION!!

At this point, I got no errors, if you got any errors then you might have other problems to deal with. If you got no errors, then you should be able to boot into Proxmox again.

Please don't put a lot of comments so others don't have to dredge through a bunch of posts like I did.
 
Last edited:
Hi,
First of all thanks for sharing this !
When I boot my faulty system on a Proxmox 7.2 usb disk and select Rescue Boot I get following message : "error no such device rpool" and "unable to find boot disk automatically"

I continue by selecting Install Proxmox VE (debug mode) which gets me in command prompt mode

when I try the second line (2) I get the error "special device /dev/pve/root does not exist" .... Any clues ? Thank You !!!!
 
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!