Opened 12 months ago

Last modified 5 months ago

#849 assigned defect

Restored VM Fails to Boot — at Initial Version

Reported by: kevenw Owned by: Bruno Cornec
Priority: high Milestone: 3.3.0
Component: mondo Version: 3.2.2
Severity: major Keywords:
Cc:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.