This issue is known issue with VMware converter 6.2.0 tool after P2V of either RHEL7 or CentOS7 Linux VM unable to boot and start throwing below error message in VM console
Reason is P2V conversion put invalid character in grub configuration file along with command “: # (removed by Converter)”
in front of grub parameters which make grub boot loader unbootable. Example below:
To solve this issue, you need to rebuild the grub configuration. Below is the command through which you can rebuild the grub configuration of RHEL7 / CentOS7
Charanjit is working as a Linux Subject Matter Expert in Kyndryl, he has 16 Years of professional experience in IT Infrastructure Projects implementation and support service delivery. Rich work experience in Data Centers and MSCs (Mobile Switching Centers). He possesses good knowledge in Linux, VMware, AWS, and Openstack Cloud. He is a lazy System Administrator who likes to Automate his task through Shell scripts and Ansible playbooks. He has contributed his many Automations work in Kyndryl and also maintain his own internal company Github repo. His hobby is researching on new technologies and sharing this through his blog but if he is not researching or writing blog then you will find him listening music while sipping cup of coffee and enjoying the nature view. You can find him on Twitter, Facebook, Linkedin or send him an email at webmaster@cjcheema.com
You can repair the grub in CentOS rescue mode for this:
* You need to download the CentOS 7 ISO from CentOS site: https://www.centos.org/download/
* Then you need to boot your VM from that ISO and then you need to enter into rescue mode of CentOS. You will find the rescue mode option under troubleshooting menu.
Hello,
I have the same exact issue but I’m missing some info.
how to do use grub2-mkconfig ? from a live centos ?
then you mount the partition ?
You can repair the grub in CentOS rescue mode for this:
* You need to download the CentOS 7 ISO from CentOS site: https://www.centos.org/download/
* Then you need to boot your VM from that ISO and then you need to enter into rescue mode of CentOS. You will find the rescue mode option under troubleshooting menu.