martes, 21 de abril de 2020

Not booting disk after importing VMware VM to Oracle Cloud

After importing a VMware VM into OCI the Instance was in the status "RUNNING", it seems everything was OK, however the instance was not accessible.




The Instance doesn't respond even with Ping to its Public IP, of course the Security groups were checked and everything was set properly:


Then I decided to create a Console Connection to get more feedback about the cause. When I visualized the instance with VNC I saw this error related to the booking disk in the Instance:


After Investigation, I found the root cause, the virtio drivers were not present in initrd.

To fix it, I had to rebuilt initrd.

Solution:

Check to confirm the virtio modules are built in initrd:

[root@localhost ~]# cp -p /boot/initrd-`uname -r`.img /tmp/initrd-`uname -r`.img.gz
[root@localhost ~]# zcat /tmp/initrd-`uname -r`.img.gz | cpio -it | grep virtio
10521 blocks
[root@localhost ~]#

In this case, virtio was not present.

Before to rebuilt initrd, create a backup:

[root@localhost ~]# cp /boot/initrd-$(uname -r).img /boot/initrd-$(uname -r).img.bak

Rebuild the initrd:

[root@localhost ~]# mkinitrd --with="virtio_ring virtio_pci virtio_scsi virtio_net " -f -v /boot/initrd-`uname -r`.img `uname -r`

Re-Import the VMware VM into Oracle Cloud, this time it should work.



No hay comentarios:

Publicar un comentario

Oracle ACE Director Award - Deiby Gómez

Thanks #OracleACE Program for this awesome certificate recognizing the work I have done in the community for the last year. Looking forwa...