Chinaunix首页 | 论坛 | 博客
  • 博客访问: 630024
  • 博文数量: 140
  • 博客积分: 2635
  • 博客等级: 少校
  • 技术积分: 1353
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-04 15:46
文章分类
文章存档

2015年(2)

2014年(12)

2013年(10)

2012年(10)

2011年(85)

2010年(21)

分类: LINUX

2011-04-08 10:20:13

Installation

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 Options

If you are planning to use X, add the following lines to /etc/make.conf:

File: /etc/make.conf
INPUT_DEVICES="virtualbox evdev"
VIDEO_CARDS="virtualbox"

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 Kernel

The 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
AMD PCnet32 PCI support
[*] Ethernet (1000 Mbit) --->
Intel(R) PRO/1000 Gigabit Ethernet support
[ ] Ethernet (10000 Mbit) --->
Graphics support --->
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
< > all options can be empty
Sound card support --->
Advanced Linux Sound Architecture --->
[*] PCI sound Devices --->
Intel/SiS/nVidia/AMD/ALi AC97 Controller
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:

File: /etc/modprobe.d/alsa.conf
options snd-intel8x0 ac97_clock=48000
[] Configuring your System

You should be able to continue with the handbook installation from this point without any problems.

[] Guest Additions

The VirtualBox guest additions provide seamless mouse integration, higher screen resolutions and other advanced features.

Emerge the guest additions and drivers:

emerge
xf86-video-virtualbox xf86-input-virtualbox virtualbox-guest-additions

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:

rc-update add
virtualbox-guest-additions default
/etc/init.d/virtualbox-guest-additions
start

Xorg configuration file is not necessary with >=xorg-server-1.8, udev, and evdev. You can safely remove it if you have one:

mv
/etc/X11/xorg.conf /etc/X11/xorg.conf.bak

Add unprivileged users to vboxguest group. This will allow automatic resize and seamless mode:

gpasswd -a
vboxguest
阅读(1431) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~