LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-19-2013, 02:39 AM   #1
chucacabra
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Rep: Reputation: Disabled
Kernel panic while running iso on kvm/qemu


Hi,

recently I tried to create custom debian installer cd (based on Wheezy 7.1) I decided to run it in virtualization environment through virt-manager (qemu/kvm), previously I created iso image and my own isolinux.cfg file which I had put in /isolinux, other files in that directory remained unmodified, also I made a path with preseed file. Unfortunately after creating a machine with storage and initializing boot sequence, kernel panicked:

Content of isolinux.cfg:

GNU nano 2.2.6 File: isolinux.cfg Modified

# D-I config version 2.0
include menu.cfg
default vesamenu.c32
prompt 0
timeout 0
UI vesamenu.c32
MENU RESOLUTION 640 480
#MENU BACKGROUND
MENU COLOR border 30;44 #40dfdfdf #00000000 std
MENU COLOR title 1;36;43 #e0fdff49 #804206ef none
MENU COLOR sel 7;37;40 #e0000000 #40ffffff all
MENU COLOR hotsel 1;7;37;40 #e0af0000 #40ffffff all
MENU COLOR disabled 1;30;44 #ffe4de6f #00000000 std
MENU COLOR scrollbar 30;44 #40000000 #e0af0000 std
MENU TITLE Boot Menu
MENU CLEAR

MENU ROWS 14
MENU TABMSGROW 20
MENU CMDLINEROW 20
MENU TIMEOUTROW 22
MENU HELPMSGROW 24
MENU VSHIFT 1

MENU BEGIN debian_custom_install
MENU TITLE debian_custom

LABEL custom
KERNEL /install.amd/vmlinuz
APPEND video=vesa:ywrap,mtrr vga=788
initrd=/install.amd/initrd.gz debian-installer/locale=us_US debconf/priority=critical preseed/file=/options/preseed --

MENU SEPARATOR

LABEL exit0
MENU LABEL Return to the main menu
MENU EXIT

MENU END

No filesystem could mount root, tried:
Kernel Panic -not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Pid: 1, comm: swapper/0 Not tainted 3.2.0-4-amd64 #1 Debian 3.2.46.1
Call trace:
[ffffffff813481ed>] ? panic+0x95/0x1a2
[ffffffff816abf80>] ? mount_block_root+0x24e/0x27a


Obviously something went wrong I also tried to give initrd a root path (like root=/dev/rd/0 ) and to modify initrd archive as well with gzip and cpio, but it didn't work either . I would really appreciate if you could give me any clue how to solve this problem.
 
Old 10-20-2013, 06:07 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
I think it is saying your kernel doesn't have built-in support for the CD filesystem. Remember that it can't load modules until the root filesystem is mounted. Check the config file for your kernel has CONFIG_ISO9660_FS=y (not m).
 
Old 10-23-2013, 11:05 AM   #3
chucacabra
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
yes my kernel doesn't support iso9660
there was CONFIG_ISO9660_FS=m

I got kernel image and compiled it with CONFIG_ISO9660_FS=y, but i still dont know how to compile kernel inside initrd to run it on debian-installer, I run to some outdated info how to do a thing (it was about udeb )
should I chroot the initrd?..

a, and one more thing
the content of isolinux.cfg was made with a mistake,

APPEND video=vesa:ywrap,mtrr vga=788 initrd=/install.amd/initrd.gz debian-installer/locale=us_US debconf/priority=critical preseed/file=/options/preseed --

should be in one line ( I put a space) that is why I couldnt run debian-installer

now cd boots debian-installer also is running , but i get error

"incorrect cd detected"
the cd-rom contains a cd which cannot be used for installation ..etc.

Last edited by chucacabra; 10-23-2013 at 11:09 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
QEMU running on Ubuntu vmware guest cannot find /dev/kvm jerrywrice_fabnexus Linux - Virtualization and Cloud 3 03-25-2012 03:16 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
LXer: Attempt of qemu-kvm-0.14 patching via Gerd’s Hoffmann “spice/qxl: locking fix for qemu-kvm” on LXer Syndicated Linux News 0 03-14-2011 01:20 PM
Can I convert a xen .iso for use with qemu (kvm .iso)? aimGuy Linux - Virtualization and Cloud 2 10-16-2009 05:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:30 PM.

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
Open Source Consulting | Domain Registration