How to upgrade Ubuntu 8.04 to 10.04? (OpenVZ)

gkovacs

Renowned Member
Dec 22, 2008
516
51
93
Budapest, Hungary
I have read somewhere that the standard Ubuntu Server release upgrade procedure does not work on OpenVZ guests, because the upgrade replaces the kernel with one that is not patched for OpenVZ.

Instructions - not to be followed - are here:
https://help.ubuntu.com/community/LucidUpgrades

Network Upgrade for Ubuntu Servers (Recommended)


  1. Install update-manager-core if it is not already installed:
    sudo apt-get install update-manager-core
  2. edit /etc/update-manager/release-upgrades and set Prompt=lts
  3. Launch the upgrade tool:
    sudo do-release-upgrade
  4. Follow the on-screen instructions.
  5. At the end of the upgrade process you will be required to restart the server in order to boot into the new kernel. If you do not have access to the console of the system you are upgrading, you may need to edit /boot/grub/menu.lst and change the default boot kernel to the newly installed 10.04 kernel. If this step is not performed your server may attempt to boot into the 8.04 LTS kernel and will hang.
Is there any easy and safe way to upgrade 8.04 OpenVZ VPS guests to 10.04 without replacig the kernel?

Is it ok to do the do-release-upgrade then manually edit /boot/grub/menu.lst to boot with the old kernel?
Anyone with hands-on experience?
 
you are talking about replacing ubuntu kernels but again we have no ubuntu kernels ubuntu in templates so what is the question?

upgrading a running ubuntu hardy container to lucid?
I assume you will run into issues as lucid is not container friendly but there are people around trying to get this to work. we at Proxmox do not work on this.
 
you are talking about replacing ubuntu kernels but again we have no ubuntu kernels ubuntu in templates so what is the question?

I'm not talking about replacing Ubuntu kernels. I'm talking about something I've read: that do-release-upgrade borks a running Ubuntu container, because it installs a kernel (or does something else maybe). This is what I need advice with.

upgrading a running ubuntu hardy container to lucid?
I assume you will run into issues as lucid is not container friendly but there are people around trying to get this to work. we at Proxmox do not work on this.
I'm not sure why you say this: I have several Lucid containers, created from OpenVZ templates, for example:
ubuntu-10.04-x86_64.tar.gz
 
..
I'm not sure why you say this: I have several Lucid containers, created from OpenVZ templates, for example:
ubuntu-10.04-x86_64.tar.gz

I read a lot about issues but if it works now, fine! I personally did not manage to get a clean and fully functional lucid container but again, we do not work on this here.