Stuck with OnApp: VM created using a User Template not booting? We can help you.
In OnApp Cloud platform, you can create the custom template of any running reference VM which you can use to create VMs with similar configuration.
As part of our Server Management Services, we assist our customers with several VM related queries.
Today, let us see how we can fix this error.
OnApp: VM created using a User Template not booting
Few times, on creating a VM using a user template, it may not boot.
When we get into the console, the booting process will stuck at GRUB with the below error message:
Error 15: File not found
Which means that the defined kernel image in the grub.conf couldn’t seen.
What causes VM created using a User Template to not boot in OnApp?
Usually, we create an image from a perfectly running VM, but the cloned VM fails to boot.
That is because the OnApp will overwrite many configurations including /etc/fstab, ifcfg-eth0 etc with new one matching with new VM environment.
For the grub.conf, it keeps many versions for different virtualization and overwrites the grub.conf with one of the templates matching with the virtualization of the new VM.
grub.conf templates:
/boot/grub/grub.conf.kvm
/boot/grub/grub.conf.kvm_virtio
/boot/grub/grub.conf.xen
When we update the Kernel over time, the new kernel images will be added to grub.conf and old ones will be removed too.
These changes won’t add to the grub templates automatically.
The reference VM will boot into the new kernel after reboot. But, the VMs created using its template will try to load the old kernel image defined in the grub template.
How to resolve it?
Today, let us see how our Support Techs resolved this error.
In order to resolve it, just update the grub templates matching with the current configuration.
Each grub template differs in the root device’s path.
The different root device names are given below:
Virtualization GRUB template name Root device name
KVM grub.conf.kvm root=/dev/sda1
KVM (Virt IO) grub.conf.kvm_virtio root=/dev/vda1
Xen grub.conf.xen root=/dev/xvda1
[Need help to fix VM errors? Feel free to contact us]
Conclusion
Today, we discussed about the steps followed by our Support Techs to resolve VM created using a User Template not booting issue in OnApp.
0 Comments