Linux VMs slow to start
Linux VMs might require the following changes to avoid delays in starting VMs after conversion:
-
Rename the cloud-init file (/bin/cloud-init) to stop the delay during the boot process.
-
Set boot/grucfg timeout=0.
If it has timeout=1, the boot process is delayed.
-
Disable the timeout in etc/default/grub.
If it has infinite timeout set, the boot process is delayed.
RHEL VMs fail to boot
If RHEL VMs fail to boot, recreate initramfs by performing the following steps:
-
Boot the VM in rescue mode or from CD ROM.
-
On the source VM, run the following command to identify the kernel version:
uname –r -
Copy the existing initramfs file as a backup:
cp /boot/initramfs-$[kernel_version].img /boot/initramfs-$[kernel_version].img.bak
Where kernel_version is the result of step 2.
-
Verify that both files are listed:
ll /boot/initramfs-$[kernel_version].img*
Where kernel_version is the result of step 2.
-
Recreate the initramfs file:
dracut -f $[/boot]/initramfs-$[kernel_version].img $[kernel_version]
Where kernel_version is the result of step 2.
-
Power off the VM and boot from hard disk.
For more information, see CentOS / RHEL 6 : How to rebuild Initial Ramdisk Image.
Ubuntu VM fails to boot after conversion
-
Boot the VM from CD ROM.
-
Edit the boot/grub/grub.cfg file to remove the consoletype setting. For example:
consoletype= $[tty1 tts0] -
Power off the VM and boot from hard disk.
You can also edit the boot/grub/grub.cfg file in the source VM before backing up and converting the VM.