LinuxQuestions.org
Visit Jeremy's Blog.
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 09-17-2022, 02:56 AM   #1
spookyintheam
LQ Newbie
 
Registered: Sep 2022
Posts: 1

Rep: Reputation: 0
Unable to boot LFS systemd 11.2 on KVM


I have been following the LFS book 11.2-systemd edition. I have configured everything well but I am stuck on the booting step. I first configured the kernel according to the book by enabling/disabling all the required config options. I also built in the
Code:
CONFIG_VIRTIO_PCI
and all other virtio drivers into the kernel itself, added SATA,
Code:
PCIEPORT
as well as
Code:
EXT4
drivers into the kernel. But I cannot seem to boot into the system.

I get the text
Code:
No EFI environment detected early console in extract_kernel
which is correct since I am working on an MBR based VM. It then goes on to show
Code:
Decompressing Linux...Parsing ELF...Performing relocations...done. Booting the kernel
which is also correct. Then I get a lot of DMESG messages which are not errors, just normal DMESG output which is also correct but then it stops there. I obviously cannot scroll anything.

I am using an Endeavour OS Live ISO so I tried copying its
Code:
.config
to the LFS directory and tried disabling initramfs support and building in the kernel drivers but I have been unsuccessful so far. The kernel builds fine after disabling
Code:
CONFIG_BLK_DEV_INITRD
and other related options but on booting, the kernel still complains that it cannot mount the root fs which means that its still searching for an initramfs.

I have no idea if systemd is starting or not because I cannot scroll past the DMESG output but there is no error that init not found.

What am I missing? Any help in the right direction would be appreciated!
 
  


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 9.0 systemd: Does the LFS partition need to be a GPT or can it be msdos? davecan Linux From Scratch 3 01-08-2020 12:14 PM
[SOLVED] "No KVM, No qemu-kvm" Available error while trying to install KVM on CentOS 6.3 sriramdas Linux - Virtualization and Cloud 5 01-01-2013 10:46 AM
KVM on Redhat 5.7: KVM can ping outside network, outside network can't ping KVM svandyk Linux - Networking 1 09-23-2011 06:45 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
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM

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

All times are GMT -5. The time now is 08:31 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