After performing a Physical to Virtual (P2V) conversion of a CentOS 7 Linux machine using VMware Converter, the resulting virtual machine fails to boot, displaying an "Operating System not found" error. This typically occurs when the source physical machine used a GPT partition table with both BIOS and EFI boot components, but VMware Converter incorrectly converted the target virtual disk to an MBR (DOS-labeled) partition scheme, creating an incompatible boot environment for the chosen VM firmware.
fdisk -l from a rescue environment), the disk is found to have an MBR (DOS) partition label instead of GPT.2025-09-16T04:55:46.475+02:00 warning vmware-converter-worker[05652] [Originator@6876 sub=Default] [MoveActiveDiskIfNeeded] GetFirstBootDisk failed, mntapi error: 176
2025-09-16T04:55:46.553+02:00 warning vmware-converter-worker[05652] [Originator@6876 sub=Default] Partition:Invalid sector magic number.
2025-09-16T04:55:46.585+02:00 warning vmware-converter-worker[05652] [Originator@6876 sub=Default] Partition:Invalid sector magic number.
vCenter Converter Standalone 6.6
The primary cause is a mismatch between the source physical machine's complex boot configuration (GPT with both BIOS and EFI capabilities) and the VMware Converter's handling during the P2V process.
While Converter might detect the firmware as EFI, it erroneously converts the disk to an MBR (DOS-labeled) partition scheme with a single partition, which is incompatible with an EFI boot environment. The converted disk lacks the necessary EFI System Partition (ESP) for UEFI booting, and the MBR itself does not contain a properly installed GRUB bootloader for a BIOS-based boot.
This results in a VM configured with EFI firmware attempting to boot from an MBR disk without a proper EFI bootloader, or an MBR disk that is missing the GRUB bootloader in its Master Boot Record that a BIOS-based VM expects. The resolution involves forcing the VM to use BIOS firmware and reinstalling GRUB to the MBR of the converted virtual disk.
The solution involves changing the virtual machine's firmware type to BIOS and then reinstalling GRUB2 into the Master Boot Record (MBR) of the converted disk.
1. Change Virtual Machine Firmware to BIOS:
Before attempting to boot or repair, ensure the VM is configured to use BIOS firmware instead of EFI.
2. Reinstall GRUB2 to the Master Boot Record (MBR):
This procedure uses a CentOS 7 rescue environment to chroot into the converted operating system and reinstall GRUB.
a. Attach CentOS 7 Installation Media:
b. Boot into Rescue Mode:
/mnt/sysimage, accept it). You'll eventually be dropped to a shell prompt. If it automatically mounts to /mnt/sysimage, you will directly chroot /mnt/sysimage later.c. Manually Mount and Chroot (if not automatically mounted):
/dev/sda1 in a single-partition MBR setup.chroot environment:# Mount the root partition
mount /dev/sda1 /mnt/
# Bind mount essential system directories
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
# Chroot into your installed system
chroot /mnt
d. Install and Configure GRUB2:
chroot environment, install GRUB2 to the Master Boot Record of the disk (/dev/sda).grub2-install /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-install reports any errors, ensure /dev/sda is the correct disk device for the VM and that the partitions are correctly detected.e. Exit and Reboot:
chroot environment:exit
After these steps, the virtual machine should now boot correctly from its MBR-partitioned disk using the BIOS firmware
Note: Please reach-out to your Linux Admin before proceeding with the above steps.