Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
After install gentoo in KVM VPS, boot with kernel panic
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lvii
n00b
n00b


Joined: 28 May 2012
Posts: 16

PostPosted: Thu Aug 16, 2012 10:15 pm    Post subject: After install gentoo in KVM VPS, boot with kernel panic Reply with quote

Hi guys !

After I install gentoo in ramhost's kvm VPS,but boot with kernel panic:

Code:
VFS: Cannot open root device "sda3" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partions:
...
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

From that wiki:
http://wiki.gentoo.org/wiki/Knowledge_Base:Unable_to_mount_root_fs

Code:
The panic informs you that the Linux kernel is unable to either
    detect the controller for your hard disk (a likely candidate if the message says unknown-block(0,0))

I boot from the liveCD (gentoo i686), got these info:

Code:
# lspci -k
...
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
        Subsystem: Red Hat, Inc Qemu virtual machine
        Kernel driver in use: ata_piix
        Kernel modules: ata_piix
...

I search the ata_piix kernel module info from my hand kernel config:

Code:
# grep -i piix .config
CONFIG_ATA_PIIX=y
CONFIG_PATA_OLDPIIX=y
CONFIG_PATA_MPIIX=y
# CONFIG_I2C_PIIX4 is not set

this guys have the similar problem:
https://forums.gentoo.org/viewtopic-t-871501-start-0.html

this post mentioned the VIRTIO driver :

the drivers you select in your kernel will vary based upon how you start up your KVM guest ...

I did not compile the ‘VIRTIO’ driver into the kernel:

Code:
# grep -i virtio .config
# Virtio drivers
# CONFIG_VIRTIO_PCI is not set
# CONFIG_VIRTIO_BALLOON is not set
# CONFIG_VIRTIO_MMIO is not set


anybody has got the similar problem with solution ?

thanks for your help ....
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Fri Aug 17, 2012 3:33 pm    Post subject: Reply with quote

it depends o what diver you want to use first ( regular emulated pata driver or the virtio driver) and therefore the way you launch qemu changes.
how are you launching qemu ?

cheers
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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