LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-30-2019, 05:31 AM   #1
khan.zaib
LQ Newbie
 
Registered: Jan 2019
Posts: 7

Rep: Reputation: Disabled
GRUB Error During Debian VM Conversion


Hi All Experts,

I am facing a problem while migrating my Debian 8 VM from one Esxi Host to another Esxi using VCenter Converter. Vcentner converter start migrating the machine and gives the following error at the end of the conversion job.

Error is: An Error occurred during the conversion: 'GrunInstaller::InstallGrub:Failed to read GRUB configuration from /mnt/p2v-src-root/boot/grub/grub.cfg

When i power On the migrated VM with grub error then VM power on with Grub rescue mode.

Kindly guide me how can i get rid of this situation.

Machine OS : Debian 8
Esxi Version: 6.0
Vcenter Converter Version: 6.2
 
Old 01-30-2019, 05:40 AM   #2
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,793

Rep: Reputation: 408Reputation: 408Reputation: 408Reputation: 408Reputation: 408
http://www.linuxandubuntu.com/home/w...over-grub-menu
 
Old 01-31-2019, 03:11 AM   #3
khan.zaib
LQ Newbie
 
Registered: Jan 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks for the reply.

It is not working. i think the post is related to non migrated VM where grub is making issues, actually in my case the vm is migrated to another host and causing the issues.

As per article i tried the steps but not fruitful. I have also attache the screenshot after applying the steps and result is the same.
Attached Thumbnails
Click image for larger version

Name:	Grub Error.JPG
Views:	5
Size:	29.0 KB
ID:	29660  
 
Old 01-31-2019, 05:05 AM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,793

Rep: Reputation: 408Reputation: 408Reputation: 408Reputation: 408Reputation: 408
Your not in grub rescue. The grub.cfg isn't loaded does
Code:
ls /
show a /vmlinuz or ls /boot/grub/ have a grub.cfg file?
If you can locate you grub.cfg load it with the configfile <location of grub.cfg>
what is the ouput of
Code:
ls (hd0,msdos1)/

Last edited by colorpurple21859; 01-31-2019 at 05:13 AM.
 
Old 01-31-2019, 05:10 AM   #5
khan.zaib
LQ Newbie
 
Registered: Jan 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Yes it is showing. I have also attach the screenshot of this. Kindly have a look
Attached Thumbnails
Click image for larger version

Name:	Grub error1.JPG
Views:	5
Size:	19.6 KB
ID:	29663  
 
Old 01-31-2019, 05:14 AM   #6
khan.zaib
LQ Newbie
 
Registered: Jan 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
And also check for grub.cfg file. No file is showing. Kindly have a look at attache screenshot.
Attached Thumbnails
Click image for larger version

Name:	Grub Error2.JPG
Views:	6
Size:	13.4 KB
ID:	29664  
 
Old 01-31-2019, 05:18 AM   #7
khan.zaib
LQ Newbie
 
Registered: Jan 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
When Entering command ls (hd0,msdos1)/. gives the output attache in the screenshot. Kindly have a lok
Attached Thumbnails
Click image for larger version

Name:	Grub Error3.JPG
Views:	3
Size:	31.6 KB
ID:	29665  
 
Old 01-31-2019, 05:22 AM   #8
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,793

Rep: Reputation: 408Reputation: 408Reputation: 408Reputation: 408Reputation: 408
you can also boot with
Code:
linux /vmlinuz root=/dev/mapper/c3us0-vg-root
initrd /initrd.img
boot
or something like that
or maybe
Code:
linux (hd0,1)/vlinuz root =/dev/sda1
initrd (hd0,1)/initrd.img
boot

Last edited by colorpurple21859; 02-11-2019 at 05:18 AM.
 
Old 02-10-2019, 01:52 PM   #9
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 955

Rep: Reputation: 240Reputation: 240Reputation: 240
The simplest way to repair boot issues with Debian is to boot a Debian install CD via optical disk, USB, or the ISO image in the VM. Select rescue/repair mode and after setting keyboard, language, and selecting the root & EFI/boot directory of the failed installation etc. you are presented with options, select "terminal or command prompt", it will automatically put you in a chroot in the failed installation where you can simply issue command: grub-install /dev/whatever, access to internet will be required if appropriate grub packages are not in the cache, or the packages can be transferred to the cache from removable media. The command: update-grub does not require installing anything and may be all that is needed.
A small net install CD image is sufficient.

Last edited by Brains; 02-10-2019 at 02:11 PM.
 
Old 02-10-2019, 10:07 PM   #10
khan.zaib
LQ Newbie
 
Registered: Jan 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
HI Brain,

I have already tried this option but no luck. After trying all the options i think that the machine is not properly migrated via vcenter convertor. With the same convertor i have migrated all the linux distributions, but only debian distribution is only making issues that is in the end vcenter convertor is unable to migrate the /boot directory of Debian OS.
 
Old 02-12-2019, 12:21 AM   #11
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 955

Rep: Reputation: 240Reputation: 240Reputation: 240
I've just ran into an similar issue, I did updates on my offline Debian which hasn't been updated in a month. That computer has a boot manager and thus grub is installed to the partition. After updates I got a blinking underscore in top left of the screen, no boot. So had to burn the netinstall ISO to USB key and boot it into rescue mode, it did not see the root partition so had to manually chroot into it and issue the old: grub-install --force /dev/sda1 command, exited the chroot, umounted and rebooted to the grub menu.

I have not been pleased with vcenter converter's abilities and sorry I installed it. But found a nice converter called Starwind Converter, It converts to more if not all VM formats and works great. Found out about it in forums, lot's of kudos from people that used it. It's free, may be worth a try, check out the link.
 
Old 02-12-2019, 12:27 AM   #12
khan.zaib
LQ Newbie
 
Registered: Jan 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Brain,

That's perfect dude, i am gonna check it out the starwind converter, and would it might get my issue resolved. Will try and let you know dear. One thing i have research more on this and found that if we copy the vm with rsync utility then this options also works well. let me try out startwind option first!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
MQ LINUX vs MQ Unix Conversion Differences - LINUX Conversion Issues catch93 Linux - Newbie 4 11-03-2011 09:10 PM
VMWare Converter & Debian - lost eth0 & LVM during conversion Ladowny Linux - Virtualization and Cloud 1 04-05-2010 01:47 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
GRUB GRUB GRUB GRUB "Whats Going on?" Gaweph Linux - Newbie 6 03-26-2004 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration