[CentOS] CentOS 7 cloned VM cannot boot

Fri May 5 10:42:54 UTC 2017
Nikolaos Milas <nmilas at noa.gr>

On 5/5/2017 1:19 μμ, Gianluca Cecchi wrote:

> Could you verify, if /dev/sda is your boot disk, with the command
>
> fdisk -l /dev/sda
> ?

It's /dev/vda in my case:

# fdisk -l /dev/vda

Disk /dev/vda: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x942d1f03

   Device Boot    Start      End   Blocks Id System
dev/vdal   *      2048  1026047   512000 83 Linux
dev/vda2   *   1026048 41943039 20458496 8e Linux LVM

Hmm, it seems that the boot flag should be removed from /dev/vda2 
partition? (How we do that?)

> BTW: are you using virt-manager to configure/run your VMs? Or direct virsh
> commans or what?

It's a hosted VPS service, and I have a virtual console to the VM.

Thanks,
Nick