Restored VM Fails to Boot

Keven Smith-Worthylake <[email protected]> Thu, 2 May 2019 09:40:51 -0400
Newsgroups gmane.linux.mondo.devel
Message-ID <CACtgsOg=b6N_jUmfZHKz=ye_R9RRcqBigrhy90YXqkxWexeOhw@mail.gmail.com>
  Hi folks,

I'm having an issue with my mondorestore'ed VM failing to boot after the
post-mondorestore reboot.  I believe the bootloader (GRUB2) is not being
setup correctly by mondorestore.

I've attached mondorestore.log, and I have 3 areas of concern:
1.
INFO: Found Device /dev/vda has a MBR partition type partition table format
type on /dev/vda
DBG2: [Main] ../src/mondorestore/mondo-prep.c->partition_device#1539:
partition_device('/dev/vda', 1, 0, 'xfs', 1048576) --- starting
DBG2: [Main] ../src/mondorestore/mondo-prep.c->partition_device#1554:
Partitioning device /dev/vda1 (1024 MB)
INFO: Found Device /dev/vda has a MBR partition type partition table format
type on /dev/vda
DBG1: [Main] ../src/mondorestore/mondo-prep.c->partition_device#1616: Doing
the new all-in-one fdisk thing
DBG1: [Main] ../src/mondorestore/mondo-prep.c->partition_device#1617:
output = 'n
p
1

+1048576K
'
DBG1: [Main] ../src/mondorestore/mondo-prep.c->partition_device#1624: last
line = p
DBG1: [Main] ../src/mondorestore/mondo-prep.c->partition_device#1625:
Failed to create partition 1 on /dev/vda; sending 'Enter'...

What would cause this?

2.
DBG2: [Main] ../src/mondorestore/mondo-rstr-tools.c->run_grub#1476: mr-grub
/dev/vda /tmp/mountlist.txt
Now I'll use grub-install
Launching: chroot /mnt/RESTORING grub-install /dev/vda
chroot: can't execute 'grub-install': No such file or directory
grub-install returned 127
Now I'll use grub2-install
Installing for i386-pc platform.
grub2-install: error: cannot find a GRUB drive for /dev/vda1.  Check your
device.map.
grub2-install returned 1

The device.map file has "dev/vda".  I’ve also tried manually changing
device.map to “/dev/vda1”, but I still see the same error. Any ideas why
this might be occurring?

3.
Trying a hack
Checking usr/lib/grub/i386-pc
Cannot find BOOTPATHNAME
.............Cool.
device (hd0) /dev/vda
root (hd0,0)
setup (hd0)
quit
chroot: can't execute 'grub': No such file or directory
Hack returned res=0

This is a bug in try_grub_hack() of mr-grub.  If grub can't be found, the
function returns a false positive.

Any help that anyone could provide would be very appreciated.

Thanks in advance,
Keven

_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
mondorestore.log.gz (application/x-gzip, 36.7 KB) - not displayed