User:Flow/Gentoo as KVM guest
- Using amd64
Follow the Linux (AMD64) Handbook. You should have done these steps:
- Boot from the Installation Medium
- Configure your Network
- Preparing the Disks
- Installing the Gentoo Installation Files
I recommend to skip all non-mandatory steps (setting the timezone, ...) until you can boot from the local disk and ssh into the machine.
If you have a virtual machine with little RAM, make sure to create a swap space or compilations may fail with an out of memory error.
Kernel sources and and configuration
emerge --ask gentoo-sources
Compilation and configuration with genkernel
You can use genkernel in order to have the system running as fast as possible. Kernel tailoring can then be done once the system is able to boot with a genkernel created kernel.
emerge --ask genkernel
Compiling the kernel with modules and creating an initramfs can be done with one single command. Note the --virtio switch to enable virito support in the kernel.
genkernel --virtio all
Manual kernel configuration
emerge --ask --autounmask-write sys-boot/grub:2
grub2-mkconfig -o /boot/grub2/grub.cfg