Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Issues creating VM - Kernel Panic - not syncing (fixed)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2155

PostPosted: Mon Aug 27, 2018 10:50 pm    Post subject: Issues creating VM - Kernel Panic - not syncing (fixed) Reply with quote

Code:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)


I have the boot partition as a ext3 partition and the root partition as xfs.

I'm using the UUID's to mark the partitions, however I had the same results using the /dev names as well.

The XFS and EXT3 filesystems are built into the kernel.

Configuring GRUB2 has been simplified to running

Code:
grub-mkconfig -o /boot/grub/grub.cfg


and it seems to run without issue.

Partition layout is as follows:
Code:
/dev/sda1 /boot ext3
/dev/sda2 swap
/dev/sda3 / xfs


Nearly as basic as it can get.

Any help is appreciated.
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim


Last edited by Bigun on Wed Oct 10, 2018 2:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7328
Location: Saint Amant, Acadiana

PostPosted: Mon Aug 27, 2018 10:56 pm    Post subject: Reply with quote

Your kernel is not getting to the filesystem, it cannot even try accessing it.
Make sure your HDD controller driver is enabled and also correct partition table support.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4331
Location: Dallas area

PostPosted: Mon Aug 27, 2018 11:07 pm    Post subject: Reply with quote

What does grub.cfg look like
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.1 (no-pie & modified) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2155

PostPosted: Mon Aug 27, 2018 11:14 pm    Post subject: Reply with quote

Jaglover wrote:
Your kernel is not getting to the filesystem, it cannot even try accessing it.
Make sure your HDD controller driver is enabled and also correct partition table support.


Code:
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
        Subsystem: VMware Virtual Machine Chipset
        Kernel driver in use: ata_piix


Code:
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
        Subsystem: VMware LSI Logic Parallel SCSI Controller
        Kernel driver in use: mptspi


I assume both of these are the relevant drivers, this is "lspci -k" off of the live-cd.

"ata_piix" is already built in, "mptspi" I can't seem to find in menuconfig.

Here is the entirety of 'lspci -k" from the live-cd

Code:
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
        Subsystem: VMware Virtual Machine Chipset
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
        Subsystem: VMware Virtual Machine Chipset
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
        Subsystem: VMware Virtual Machine Chipset
        Kernel driver in use: ata_piix
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
        Subsystem: VMware Virtual Machine Chipset
00:07.7 System peripheral: VMware Virtual Machine Communication Interface (rev 10)
        Subsystem: VMware Virtual Machine Communication Interface
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
        Subsystem: VMware SVGA II Adapter
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
        Subsystem: VMware LSI Logic Parallel SCSI Controller
        Kernel driver in use: mptspi
00:11.0 PCI bridge: VMware PCI bridge (rev 02)
00:15.0 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:15.1 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:15.2 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:15.3 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:15.4 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:15.5 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:15.6 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:15.7 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:16.0 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:16.1 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:16.2 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:16.3 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:16.4 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:16.5 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:16.6 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:16.7 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:17.0 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:17.1 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:17.2 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:17.3 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:17.4 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:17.5 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:17.6 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:17.7 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:18.0 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:18.1 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:18.2 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:18.3 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:18.4 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:18.5 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:18.6 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
00:18.7 PCI bridge: VMware PCI Express Root Port (rev 01)
        Kernel driver in use: pcieport
02:00.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
        Subsystem: VMware PRO/1000 MT Single Port Adapter
        Kernel driver in use: e1000

_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2155

PostPosted: Mon Aug 27, 2018 11:19 pm    Post subject: Reply with quote

Anon-E-moose wrote:
What does grub.cfg look like


Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod xfs
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  0c32f9ab-d73b-46c1-b710-a0fc5f72ea58
else
  search --no-floppy --fs-uuid --set=root 0c32f9ab-d73b-46c1-b710-a0fc5f72ea58
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0c32f9ab-d73b-46c1-b710-a0fc5f72ea58' {
        load_video
        if [ "x$grub_platform" = xefi ]; then
                set gfxpayload=keep
        fi
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb75996d-15ab-4b66-93b8-a98f1b25e146
        else
          search --no-floppy --fs-uuid --set=root cb75996d-15ab-4b66-93b8-a98f1b25e146
        fi
        echo    'Loading Linux 4.14.65-gentoo ...'
        linux   /vmlinuz-4.14.65-gentoo root=/dev/sda3 ro
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-0c32f9ab-d73b-46c1-b710-a0fc5f72ea58' {
        menuentry 'Gentoo GNU/Linux, with Linux 4.14.65-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.65-gentoo-advanced-0c32f9ab-d73b-46c1-b710-a0fc5f72ea58' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb75996d-15ab-4b66-93b8-a98f1b25e146
                else
                  search --no-floppy --fs-uuid --set=root cb75996d-15ab-4b66-93b8-a98f1b25e146
                fi
                echo    'Loading Linux 4.14.65-gentoo ...'
                linux   /vmlinuz-4.14.65-gentoo root=/dev/sda3 ro
        }
        menuentry 'Gentoo GNU/Linux, with Linux 4.14.65-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.65-gentoo-recovery-0c32f9ab-d73b-46c1-b710-a0fc5f72ea58' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb75996d-15ab-4b66-93b8-a98f1b25e146
                else
                  search --no-floppy --fs-uuid --set=root cb75996d-15ab-4b66-93b8-a98f1b25e146
                fi
                echo    'Loading Linux 4.14.65-gentoo ...'
                linux   /vmlinuz-4.14.65-gentoo root=/dev/sda3 ro single
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4331
Location: Dallas area

PostPosted: Mon Aug 27, 2018 11:23 pm    Post subject: Reply with quote

Code:
set root='hd0,msdos1'


That explains

Code:
Unable to mount root fs on unknown-block(0,0)



Edit to add: I use the old static-grub, but that doesn't look right.
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.1 (no-pie & modified) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2155

PostPosted: Mon Aug 27, 2018 11:34 pm    Post subject: Reply with quote

Anon-E-moose wrote:
Code:
set root='hd0,msdos1'


That explains

Code:
Unable to mount root fs on unknown-block(0,0)



Edit to add: I use the old static-grub, but that doesn't look right.


Is grub.cfg safe to edit? If so, what do I set it to for the xfs partition?
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4331
Location: Dallas area

PostPosted: Mon Aug 27, 2018 11:38 pm    Post subject: Reply with quote

That boot cfg looks convoluted, why did you write it the way you did?

It's similar to some of the things I've seen on the internet, but I've seen much simpler ones too.

As far as what you need to do, I'll let someone with grub2 experience guide you through it.

But yes, you can edit it, you have to reinstall when done, but let someone else help you with it rather than just blindly change things.
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.1 (no-pie & modified) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2155

PostPosted: Mon Aug 27, 2018 11:40 pm    Post subject: Reply with quote

Anon-E-moose wrote:
That boot cfg looks convoluted, why did you write it the way you did?


I didn't.

grub-mkconfig did

More to the point, I followed the Gentoo handbook

Anon-E-moose wrote:
As far as what you need to do, I'll let someone with grub2 experience guide you through it.

But yes, you can edit it, you have to reinstall when done, but let someone else help you with it rather than just blindly change things.


Hence my post. ;)
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2155

PostPosted: Tue Aug 28, 2018 12:41 am    Post subject: Reply with quote

Followed this guide, issue fixed:

https://techtorials.me/linux/configuring-gentoo-kernel-vmware-player-minimal-manual-configuration/
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum