Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting the relaxable kernel to run on a fresh install with a higher kernel version. #14

Open
accessiblepixel opened this issue Nov 14, 2021 · 3 comments

Comments

@accessiblepixel
Copy link

accessiblepixel commented Nov 14, 2021

Hi!

I found a slight issue trying to do a fresh install of Proxmox 6 on top of Debian 10 on my G6.

The stock kernel with a new Proxmox 6 install has a higher version number than the kernel included here, so after installing I had to edit my grub defaults.

I've found this which lets me find out the string I need to add to /etc/grub/default to boot the right kernel

If you edit /etc/default/grub to contain

DEFAULT=saved
GRUB_SAVEDEFAULT=true

Then I ran update-grub and rebooted.

Then I selected 'Advanced Options' and then chose the relaxable-rmrr kernel from the list.

and all should be fine(TM) for each reboot from then on.

I think you could probably then remove the existing proxmox kernel, although last time I tried it wanted to remove all of proxmox-ve.

Okay so none of that works. See my last post for what I finally did to get it working.

Kind regards,
Jessica

@accessiblepixel
Copy link
Author

Hmm. No that didn't fix it, booted right back into the standard kernel :/

I'm lost!

@accessiblepixel
Copy link
Author

Okay, more head scratching and I just force purged the original proxmox kernel, and grub automagically got rid of the old entry.

dpkg --purge --force-depends pve-kernel-5.4.143-1-pve

(In my case)

Then I needed to fix the package to it tells apt that pve-kernel-5.4 is satisfied so had to rebuild the debian package with

dpkg-deb -x pve-kernel-5.4.124-1-pve-relaxablermrr_5.4.124-1_amd64.deb tmpdir

Then dpkg-deb --control pve-kernel-5.4.124-1-pve-relaxablermrr_5.4.124-1_amd64.deb tmpdir

Then edit tmpdir/DEBIAN/control
And change the following line from
Provides: linux-image, linux-image-2.6
to
Provides: linux-image, linux-image-2.6, pve-kernel-5.4
Then go to the directory that contains tmpdir and build the debian package
dpkg -b tmpdir pve-kernel-5.4-relaxablermrr.deb

Then install the new package
dpkg -i pve-kernel-5.4-relaxablermrr.deb

Which should replace the existing package, but also convince apt that everything is working fine...

Hopefully this helps someone else out :)

Kind regards,
Jessica

@BojanZelic
Copy link

alternatively, I was able to select the default kernel in grub via this method:
https://unix.stackexchange.com/a/327686

basically (on my system) setting /etc/default/grub

GRUB_DEFAULT="gnulinux-advanced-07bb498a-8a1f-4c75-964a-e1473b8fc610>gnulinux-5.4.124-1-pve-relaxablermrr-advanced-07bb498a-8a1f-4c75-964a-e1473b8fc610"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants