Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff

Language: German English

Upgrade Debian Lenny to Squeeze on Citrix XenServer

Debian Logo

1. Update your Lenny installation

Make sure that your current Lenny is up-2-date.

aptitude update
aptitude upgrade

2. Change sources to Squeeze

Open “/etc/apt/sources.list” and replace “Lenny” with “Squeeze” here is an example:

# Debian Squeeze
deb http://ftp.de.debian.org/debian/ squeeze main
deb-src http://ftp.de.debian.org/debian/ squeeze main  

# Debian Squeeze Security
deb http://security.debian.org/ squeeze/updates main

3. Upgrade your system

aptitude update
aptitude install apt dpkg aptitude
aptitude full-upgrade

4. Upgrade Grub

Debian Squeeze use Grub2 you have to run “upgrade-from-grub-legacy” to upgrade from Grub to Grub2.

upgrade-from-grub-legacy
rm -f /boot/grub/menu.lst*

If you don’t do that, you get the following error in your XenServer.

Error: Starting VM 'YOUR_VM' - Using  to parse /boot/grub/menu.lst - Traceback (most recent call last): - File "/usr/bin/pygrub", line 746, in ? - raise RuntimeError, "Unable to find partition containing kernel" - RuntimeError: Unable to find partition containing kernel

, , , ,

5 Responses to “Upgrade Debian Lenny to Squeeze on Citrix XenServer”

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

eMail-Benachrichtigung bei weiteren Kommentaren.
Auch möglich: Abo ohne Kommentar.