quzhejoe
By:
quzhejoe

Can I recompile the kernel?

March 9, 2017 172 views
DigitalOcean Ubuntu Ubuntu 16.04

I tried to compile a kernel from source code. The compiling process was fine but after I reboot the Droplet I only got a blank screen and a blinking cursor. So is it possible to compile my own kernel? Or what can be the problem in the configuration process before compiling the source code?

1 Answer

@quzhejoe

DigitalOcean doesn't allow kernel modification. You can confirm this by logging in to the DigitalOcean Control Panel, clicking on the name of the Droplet, and then from the left side menu, click on Kernel.

You should see a message such as:

The kernel for this Droplet is managed internally and cannot be changed from the control panel.

I know this references control panel, though in the past, clients I've worked with have had similar issues, even when it comes to very basic modifications. I'm not sure if there are plans to fully allow this in the future or not.

  • Isn't it possible to do something - there's a tutorial on this, but I'm kinda unsure.
    https://www.digitalocean.com/community/tutorials/how-to-update-a-digitalocean-server-s-kernel

    by Adam LaGreca
    Updating the kernel on your DigitalOcean Droplet is a straight forward process that differs slightly based on the Droplet's operating system. In this guide, we'll walk you through the process of updating your kernels for DigitalOcean Droplets.
    • @hansen

      Through the control panel, as noted in the first section, no (at least not on Ubuntu/Debian).

      You can use apt-* to update/upgrade to the latest on Ubuntu/Debian from the respos, though from past experience, doing a custom kernel seems to often result in problems (as in download physical source, and then compile from source).

      I've built a ton over the years on Dedicated servers and on VPS's that do allow the user to run their own without limitation, though I've ran in to issues with DigitalOcean. I've not tried to rebuild one of my custom builds in a while though, so I may retest just to confirm.

Have another answer? Share your knowledge.