View previous topic :: View next topic |
Author |
Message |
ETF n00b
Joined: 11 Jan 2022 Posts: 3
|
Posted: Tue Jan 11, 2022 6:40 pm Post subject: Minimal kernel config for QEMU guest |
|
|
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 |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Tue Jan 11, 2022 7:14 pm Post subject: |
|
|
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 |
|
|
ETF n00b
Joined: 11 Jan 2022 Posts: 3
|
Posted: Tue Jan 11, 2022 7:20 pm Post subject: |
|
|
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 |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Tue Jan 11, 2022 7:22 pm Post subject: |
|
|
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 |
|
|
ETF n00b
Joined: 11 Jan 2022 Posts: 3
|
Posted: Tue Jan 11, 2022 7:26 pm Post subject: |
|
|
Great!
Thank you! |
|
Back to top |
|
|
|