分类: LINUX
2011-04-08 10:20:13
Installing Gentoo as a VirtualBox guest OS is not that much different from the standard installation. Proceed as recommended in the , with the following modifications.
[] Configuring the Compile OptionsIf you are planning to use X, add the following lines to /etc/make.conf:
Use the settings above regardless of your host machine's actual hardware.
Follow the rest of the section as written in the handbook.
[] Configuring the KernelThe important settings for a kernel that runs under VirtualBox are:
Linux Kernel Configuration: VirtualBox-friendly kernel |
Processor type and features ---> [*] Tickless System (Dynamic Ticks) [ ] High Resolution Timer Support [ ] Symmetric multi-processing support Subarchitecture Type (PC-compatible) ---> [ ] Machine Check Exception Power management and ACPI options ---> [*] Power Management support [ ] Suspend to RAM and standby [ ] Hibernation (aka 'suspend to disk') [*] ACPI (Advanced Configuration and Power Interface) Support ---> Device Drivers ---> < > ATA/ATAPI/MFM/RLL support <*> Serial ATA and Parallel ATA drivers <*> AHCI SATA Support [*] ATA SFF support <*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support [*] Network device support ---> [*] Ethernet (10 or 100Mbit) ---> [*] EISA, VLB, PCI and on board controllers [*] Ethernet (1000 Mbit) ---> [ ] Ethernet (10000 Mbit) ---> Graphics support ---> <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> < > all options can be empty [*] PCI sound Devices ---> Input device support ---> [*] Mice ---> <*> PS/2 mouse |
You will also need some of the more common options under "Device Drivers ---> SCI device Support" (if you wind up having to debug)
Additionally, there appears to be a problem in some configurations. Apparently, the snd-intel8x0 module doesn't detect the VirtualBox emulated AC97 chip clock correctly, assumes 96 kHz, and the emulated chip has an unusually low clock of 48 kHz. If you experience sound reproduction one octave lower than you expected and at half normal speed, then, add the following line to /etc/modprobe.d/alsa.conf:
You should be able to continue with the handbook installation from this point without any problems.
[] Guest AdditionsThe VirtualBox guest additions provide seamless mouse integration, higher screen resolutions and other advanced features.
Emerge the guest additions and drivers:
At this point the required packages are installed and need to be configured.
Add guest additions to the default runlevel and enable them for the current session:
Xorg configuration file is not necessary with >=xorg-server-1.8, udev, and evdev. You can safely remove it if you have one:
Add unprivileged users to vboxguest group. This will allow automatic resize and seamless mode: