Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Configuration Virtualbox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Rob-i-di-bob
n00b
n00b


Joined: 21 May 2024
Posts: 2

PostPosted: Tue May 21, 2024 1:01 am    Post subject: Kernel Configuration Virtualbox Reply with quote

After a few goes and lots of referring to the Gentoo Handbook (AMD64) I have been able to get Gentoo to boot in a Virtualbox Guest (running on a Linux Mint Host). I basically get a login prompt. Yeehaa!!

During this first installation I ignored the Virtualbox settings as mentioned here: https://wiki.gentoo.org/wiki/VirtualBox#Gentoo_guests.

Although I have used Linux for several years I have never ventured under the hood to play with Kernel stuff. Despite reading the section in the Handbook on Kernel Configuration I'm still a little lost as to how I now need to configure the Kernel to accomodate the Virtualbox Kernel requirements as documented here: https://wiki.gentoo.org/wiki/VirtualBox#Gentoo_guests.

Any guidance or suggestions on how to go about this would be muchly appreciated.

Robert
Back to top
View user's profile Send private message
Taigo
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2022
Posts: 105
Location: the Netherlands

PostPosted: Tue May 21, 2024 8:56 am    Post subject: Re: Kernel Configuration Virtualbox Reply with quote

Rob-i-di-bob wrote:
After a few goes and lots of referring to the Gentoo Handbook (AMD64) I have been able to get Gentoo to boot in a Virtualbox Guest (running on a Linux Mint Host). I basically get a login prompt. Yeehaa!!

During this first installation I ignored the Virtualbox settings as mentioned here: https://wiki.gentoo.org/wiki/VirtualBox#Gentoo_guests.

Although I have used Linux for several years I have never ventured under the hood to play with Kernel stuff. Despite reading the section in the Handbook on Kernel Configuration I'm still a little lost as to how I now need to configure the Kernel to accomodate the Virtualbox Kernel requirements as documented here: https://wiki.gentoo.org/wiki/VirtualBox#Gentoo_guests.

Any guidance or suggestions on how to go about this would be muchly appreciated.

Robert

Your kernel needs to be configured how you want it (which is obivously why it is a thing) and you include evertyhing you need. But there are a lot of options in the kernel configuration that can be set but from what i know the defaults are minimaly functional mostly. I don't think it differs much on a VM. There is a manual kernel configuration page in the installation handbook too.

(Of course you can use a binary kernel or genkernel but what is the fun in that)
Back to top
View user's profile Send private message
Rob-i-di-bob
n00b
n00b


Joined: 21 May 2024
Posts: 2

PostPosted: Tue May 21, 2024 9:38 am    Post subject: Re: Kernel Configuration Virtualbox Reply with quote

Taigo wrote:
Rob-i-di-bob wrote:
After a few goes and lots of referring to the Gentoo Handbook (AMD64) I have been able to get Gentoo to boot in a Virtualbox Guest (running on a Linux Mint Host). I basically get a login prompt. Yeehaa!!

During this first installation I ignored the Virtualbox settings as mentioned here: https://wiki.gentoo.org/wiki/VirtualBox#Gentoo_guests.

Although I have used Linux for several years I have never ventured under the hood to play with Kernel stuff. Despite reading the section in the Handbook on Kernel Configuration I'm still a little lost as to how I now need to configure the Kernel to accomodate the Virtualbox Kernel requirements as documented here: https://wiki.gentoo.org/wiki/VirtualBox#Gentoo_guests.

Any guidance or suggestions on how to go about this would be muchly appreciated.

Robert

Your kernel needs to be configured how you want it (which is obivously why it is a thing) and you include evertyhing you need. But there are a lot of options in the kernel configuration that can be set but from what i know the defaults are minimaly functional mostly. I don't think it differs much on a VM. There is a manual kernel configuration page in the installation handbook too.

(Of course you can use a binary kernel or genkernel but what is the fun in that)



I did some more reading and was able to sort things out.

Loving the Gentoo learning curve to teach me more about Linux under the hood.

Have decided to have a go at a manual build.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Tue May 21, 2024 10:10 am    Post subject: Reply with quote

Rob-i-di-bob,

There is noting special about a guest is a virtual machine.

The virtualiser, whatever it is, exposes some virtual/fake hardware to the guest and you configure the guest kernel to suit.
Some of the knobs on the virtualiser affect the virtual/fake hardware shown to the guest, so take care changing those settings after the kernel build.
It's exactly like changing real hardware for a bare metal install.

-- edit --

For completeness, if you have control of the host and guest kernels you way be able to set up virtio devices.
That needs support in both places.

If the guest must run unmodified, then you are fared to use the virtual/fake hardware.
The virtual/fake hardware is faster than the real hardware it pretends to be too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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