View previous topic :: View next topic |
Author |
Message |
lvii n00b
Joined: 28 May 2012 Posts: 16
|
Posted: Thu Aug 16, 2012 10:15 pm Post subject: After install gentoo in KVM VPS, boot with kernel panic |
|
|
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 |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Fri Aug 17, 2012 3:33 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|