Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Minimal kernel config for QEMU guest
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ETF
n00b
n00b


Joined: 11 Jan 2022
Posts: 3

PostPosted: Tue Jan 11, 2022 6:40 pm    Post subject: Minimal kernel config for QEMU guest Reply with quote

Hello everyone,

What is the best way to generate a minimal kernel config for Gentoo QEMU guest? I need it to reduce compile times and make good starting point for further experimenting.

I have found this repository but I do not think that
make defconfig and make kvm_guest.config commands generate minimal kernel config. It is almost same as the official wiki: https://wiki.gentoo.org/wiki/QEMU/Linux_guest


Thanks
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Jan 11, 2022 7:14 pm    Post subject: Reply with quote

If
Quote:

I need it to reduce compile times

Then use the binary kernel gentoo-kernel-bin for the Gentoo guest.
But if
Quote:

make good starting point for further experimenting

then you neeed to compile it yoursel.
Compiling inside VM is not very enjoyable.
Bare metal is much better.
So i wouldnt worry so much for the kernel in a Gentoo VM,but rather if iam installing the "real thing" in my machine.
You can try with make defconfig but surely you will end up with an unbootable kernel or a kernel wuth missing functionality, unless you are very lucky and/or add more config to it.
_________________
:)
Back to top
View user's profile Send private message
ETF
n00b
n00b


Joined: 11 Jan 2022
Posts: 3

PostPosted: Tue Jan 11, 2022 7:20 pm    Post subject: Reply with quote

In that case, I will compile kernel on my Arch box first and then somehow copy it to the quest machine. That should cut down compile times.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Jan 11, 2022 7:22 pm    Post subject: Reply with quote

No need to do that.
Just emerge
gentoo-kernel-bin
from inside your Gentoo VM.
The above package is a full pre-compiled kernel like Arch's
_________________
:)
Back to top
View user's profile Send private message
ETF
n00b
n00b


Joined: 11 Jan 2022
Posts: 3

PostPosted: Tue Jan 11, 2022 7:26 pm    Post subject: Reply with quote

Great!
Thank you! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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