We moved this page to our Documentation Portal. You can find the latest updates here. |
Issue
The VMs built from some older templates, before XEN4 support was added, will in some cases fail to boot under XEN4.
Resolution
We can update these VMs to allow them to boot under XEN4. The below steps have been completed on a clean install, so there may be specific considerations needed depending on the software running. We would suggest to take a backup before completing these steps on the production VMs, as a precaution.
This is likely to be due to an issue with grub and can generally be resolved by removing the grub.cfg file:
- SSH into the VM
- rm /boot/grub/grub.cfg
- Stop the VM
- Migrate to XEN4 HV
- Start the VM
OR:
- Stop the VM
- Migrate to XEN4 HV
- 'Startup in Recovery' in OnApp UI
- SSH into the VM
- mount /dev/sdb1 /mnt
- rm -rf /mnt/boot/grub/grub.cfg
- 'Reboot Virtual Machine' in OnApp UI
If this doesn't work, we can upgrade from Debian6 to Debian7 with the following steps, which also install a newer kernel that is XEN4 compatible:
- # root@OnApp:~# uname -a
Linux OnApp 2.6.32-24-server #43-Ubuntu SMP Thu Sep 16 16:05:42 UTC 2010 x86_64 GNU/Linux - # cat /etc/issue
Debian GNU/Linux 6.0 \n \l - # sed -i 's/squeeze/wheezy/g' /etc/apt/sources.list
- # apt-get update
- # apt-get upgrade
- # apt-get dist-upgrade
- # cp /boot/grub/menu.lst /boot/grub/menu.lst.old
- Edit /boot/grub/menu.lst - remove the previous entries.
- # halt
- Migrate the VM to XEN4 HV and Startup
- # root@OnApp:~# uname -a
Linux OnApp 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux - # cat /etc/issue
Debian GNU/Linux 7 \n \l