Jump to content

CentOS 7 Switching VM from VMWare to VirtualBox. CentOS crash at startup - dracut

I am passing a VM with CentOS 7 from VMWare to VirtualBox. I don't want to do a clean install, as it contains days of works of setups and configuration.

It starts fine, but then it crashes at startup with:

Quote

dracut-initqueue[259]: Warning: dracut-initqueue timeout

Warning: /dev/centos/root does not exist

Warning: /dev/centos/swap does not exist

Warning: /dev/mapper/centos-root does not exist

 

What I tried?

  1. Boot from CentOS 7 install disk. Hit Esc key where it asks if you want to install the OS, Live disk or Troubleshoot
  2. Get to a screen where you have "boot:"
  3. Typed and execute: linux rescue
  4. Then after it loads, I picked option 1
  5. Then I executed the following commands:
    mount --bind /proc /mnt/sysimage/proc
    mount --bind /dev /mnt/sysimage/dev
    mount --bind /sys /mnt/sysimage/sys
    chroot /mnt/sysimage
    dracut -f 
    exit
    cd /
    sync
    telinit 6


    System restarted, but sadly I am back to square 1 like if I did nothing.

 

Any suggestions?

Link to comment
Share on other sites

Link to post
Share on other sites

did you mount the file systems under /mnt/sysroot before you chrooted ?

Can Anybody Link A Virtual Machine while I go download some RAM?

 

Link to comment
Share on other sites

Link to post
Share on other sites

Well it didn't post any errors and found the path to file as I hit Tab to auto-complete, so I guess it was automatically by the recovery tool, else I am not following you. :/

Link to comment
Share on other sites

Link to post
Share on other sites

Ah! If you wonder the recovery tool does that for it (at least i think it does, based on what it says).

 

s1.PNG.782892b1d502b7810ffe7827b90d5b23.PNG

s2.PNG.43ef0a26117a98212ca07783172288d0.PNG

s3.PNG.a1bac88d261ebbfb4400f52f6bdfa78d.PNG

 

And on that last screen, I typed the commands mentioned in my initial post.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

start over

after you chroot into /mnt/sysroot

try running -- grub2-install /dev/sda

 

 

post output

Can Anybody Link A Virtual Machine while I go download some RAM?

 

Link to comment
Share on other sites

Link to post
Share on other sites

Ok, I executed all this:

mount --bind /proc /mnt/sysimage/proc
mount --bind /dev /mnt/sysimage/dev
mount --bind /sys /mnt/sysimage/sys
chroot /mnt/sysimage
grub2-install /dev/sda

I get:

Installation for i386-pc platform
Installation finished. No error reported

 

No change on startup error:

boot.PNG.e75825e2ba9ae30c61f8274a0b5e3bc7.PNG

Link to comment
Share on other sites

Link to post
Share on other sites

you cant just correct entires in /etc/fstab to match your new virtual hardware?

             ☼

ψ ︿_____︿_ψ_   

Link to comment
Share on other sites

Link to post
Share on other sites

4 hours ago, SCHISCHKA said:

you cant just correct entires in /etc/fstab to match your new virtual hardware?

Sorry, what you said is beyond my limited knowledge of Linux.

How do I do this?

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, GoodBytes said:

Sorry, what you said is beyond my limited knowledge of Linux.

How do I do this?

put a live cd in the vm

boot it

mount the virtual drive

chroot into it

edit /etc/fstab to have correct entries for the errors you have above.

             ☼

ψ ︿_____︿_ψ_   

Link to comment
Share on other sites

Link to post
Share on other sites

Ah! Yes, now I follow you!

 

Sadly, this is what I have:

Capture.PNG.e5d9ad299be060b870c7c598211073f6.PNG

 

And, I don't see how this works. I don't know what should be xfs, swap, what is "default", what I would put in, and so on.

 

Under, /dev/disk/by-label/, if you wonder:

I have:

res.PNG.d5d5cb06550d4211a5c6b4de2838a975.PNG

 

Link to comment
Share on other sites

Link to post
Share on other sites

whats in the /etc/default/grub file?

 

are getting the boot loader menu?

 

after you chroot run -- grub2-mkconfig -o /boot/grub2/grub.cfg

Can Anybody Link A Virtual Machine while I go download some RAM?

 

Link to comment
Share on other sites

Link to post
Share on other sites

cat  /etc/default/grub

screenshot the bootloader options

Can Anybody Link A Virtual Machine while I go download some RAM?

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×