LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-12-2014, 11:14 AM   #1
Kiito
LQ Newbie
 
Registered: May 2014
Posts: 2

Rep: Reputation: Disabled
LFS kernel panic on boot - Hyper-V


Hi All,
Trying to get my build LFS to run on MS Hyper-V. Same settings I used to install on VMWare works but for Hyper-V it seems to fail during boot up. Seems the harddisk is not detecting somehow. I think its a missing driver but can't figure out what it could be or why the generic drivers aren't working. Any help would be appreciated.
TIA.

VFS: Cannot open root device "304" or unknown-block(3,4)
Please append a correct "root=" boot option; here are the available partitions
1600 4194302 hdc driver: ide-cdroom.
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,4)

Earlier in the boot process:
hda: Virtual HD, ATA DISK drive
hda: MWDMA2 mode selected
hdc: Virtual CD, ATAPI CD/DVD-ROM drive
hdc: MWDMA2 mode selected
...

lilo.conf:
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
compact
prompt
timeout=50
image=/boot/vmlinuz-3.1.0
label=Firebase
root=/dev/hda4
read-write
 
Old 05-13-2014, 07:36 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Haven't done it on LFS but you need the Hyper-V Linux integration drivers.

Doing a search for "hyper-v drivers for linux" will yield results that may be helpful including this one:
http://www.microsoft.com/en-us/downl...4f450f5ee=True
 
Old 05-13-2014, 10:59 AM   #3
Kiito
LQ Newbie
 
Registered: May 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks, I'm rather limited in my Linux know-how. I can't seem to figure out how to install those drivers provided from microsoft. They seem to be only for Cent/Redhat in the pdf instructions and it seems to require me to boot up and then run the script files but I can't even get to a prompt currently for my LFS machine after installing it for Hyper-V.
 
Old 05-17-2014, 01:36 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Your kernel is more than likely missing the appropriate driver. Configuring an LFS kernel from scratch is a bit of trial and error, as well as LOTS of research, documenting, and reading.

If you want an out of the box ready kernel, try using the Slackware Huge kernel configuration from the current-testing branch with "make oldconfig" ran against it with the default options set for each new settings. A few of us "cheat" the B/LFS book by doing this.
 
Old 05-17-2014, 08:03 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Just saw a similar question. Needs two modules to support the virtualized hardware in hyper-v.

See posts on this. "hv_vmbus and hv_storvsc modules.

Last edited by jefro; 05-17-2014 at 08:05 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS kernel panic/boot problem lich000king Linux From Scratch 36 01-23-2014 01:53 AM
Boot problems, LFS Kernel Panic BrandonJ Linux From Scratch 7 05-20-2010 12:37 PM
Can't boot LFS ( kernel panic - not syncing ) LFS 6.6 Lyle Linux From Scratch 14 05-15-2010 03:22 AM
LFS will not boot: kernel panic Bliepo Linux From Scratch 2 06-16-2009 03:30 PM
Kernel panic on first boot -- LFS 6.2 on i686 PC. creativename Linux From Scratch 3 06-16-2007 03:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:12 AM.

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