| 1 | = Upgrading Xen machine from etch to lenny = |
| 2 | |
| 3 | This is hairy, so be prepared. Upgrading the domU's to lenny is not a problem and should be done first. When you are ready to upgrade the dom0: |
| 4 | |
| 5 | On each domU: |
| 6 | |
| 7 | * make sure udev is installed and install the most recent linux xen modules (you should only need the xen modules if you are doing something like decrypting a volume in your domU) |
| 8 | {{{ |
| 9 | aptitude install udev linux-modules-2.6.26-2-xen-686 |
| 10 | }}} |
| 11 | * make sure /etc/securetty has xvc0 and hvc0 |
| 12 | {{{ |
| 13 | egrep "xvc0|hvc0" /etc/securetty |
| 14 | }}} |
| 15 | * change tty1 to hvc0 in /etc/inittab |
| 16 | {{{ |
| 17 | sed -i 's#1:2345:respawn:/sbin/getty 38400 tty1#1:2345:respawn:/sbin/getty 38400 hvc0#' /etc/inittab |
| 18 | }}} |
| 19 | |
| 20 | On the dom0: |
| 21 | |
| 22 | * For each domU config file in /etc/xen/ update kernel and ramdisk lines and add extra line: |
| 23 | {{{ |
| 24 | kernel = '/boot/vmlinuz-2.6.26-2-xen-686' |
| 25 | initrd = '/boot/initrd.img-2.6.26-2-xen-686' |
| 26 | ramdisk = '/boot/initrd.img-2.6.26-2-xen-686' |
| 27 | extra = 'console=hvc0' |
| 28 | }}} |
| 29 | * edit /boot/grub/menu.lst |
| 30 | {{{ |
| 31 | # xenhopt=dom0_mem=268440 com1=115200,8n1 console=com1 |
| 32 | # xenkopt=console=hvc0 |
| 33 | # kopt=root=/dev/mapper/vg_XXXXXX0-dom0 ro console=ttyS0,115200n8 |
| 34 | }}} |
| 35 | * edit /etc/inittab |
| 36 | {{{ |
| 37 | sed -i "s#T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100#T0:23:respawn:/sbin/getty -L hvc0 115200 vt100#" |
| 38 | }}} |
| 39 | * perform etch -> lenny upgrade on dom0 - allow debconf to install new versions of /etc/xen-tools/xen-tools.conf and /etc/xen/xend-config.sxp. |
| 40 | * update two xen files with needed customizations: |
| 41 | * /etc/xen-tools/xen-tools.conf |
| 42 | {{{ |
| 43 | lvm = vg_gramsci0 |
| 44 | dist = lenny |
| 45 | }}} |
| 46 | * /etc/xen/xend-config.sxp |
| 47 | {{{ |
| 48 | # (network-script network-dummy) |
| 49 | (network-script network-bridge) |
| 50 | }}} |
| 51 | * ensure recent plain kernel is installed: |
| 52 | {{{ |
| 53 | aptitude install linux-image-686 |
| 54 | }}} |
| 55 | * ensure xen tools are properly upgraded: |
| 56 | {{{ |
| 57 | aptitude install aptitude install xen-utils-3.2-1 aptitude install xen-linux-system-2.6.26-2-xen-686 |
| 58 | }}} |
| 59 | * reboot |
| 60 | * if all goes smoothly, purge all old linux/xen packages |