virtualbox 安装 gentoo
一直想尝试一下 fvwm,又不想搞坏现在的 ubuntu,顺便就搞个 gentoo 玩玩。
基本的安装顺序照官方的 guidebook 就可以了,但配置内核的时候要注意如下选项:
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
<M> AMD PCnet32 PCI support
[*] Ethernet (1000 Mbit) --->
<M> 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
<M> Sound card support --->
<M> Advanced Linux Sound Architecture --->
[*] PCI sound Devices --->
<M> Intel/SiS/nVidia/AMD/ALi AC97 Controller
Input device support --->
[*] Mice --->
<*> PS/2 mouse
按以上配置的时候就可以得到 virtualbox-friendly 的 kernel 了
配置完成后继续按照官方指南做就可以了。
有两个地方花了我很多时间,一个是文件系统,一个是网卡驱动,照以上配置应该可以顺利完成。网络方面,我采用 NAT 共享,所以在 minimal CD 的时候就要顺道把 dhcpcd 装上,免得启动以后上不了网 emerge。
mirrorselect 貌似不起作用,检查配置的时候记得顺手加上,我用的是 163 的源,速度蛮快的。
我的最终目标是安装 X,所以还要麻烦一点。基本的 virtualbox Guest addition 要装上,然后是
xfree86-input-virtualbox
xfree86-video-virtualbox
最后配置 /etc/X11/xorg.conf
Section "Device"
Identifier "Configured Video Device"
Driver "vboxvideo"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
EndSection
Section "InputDevice"
Identifier "vboxmouse"
Driver "vboxmouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "vboxmouse"
EndSection
官方指南里说 xorg-x11 和 xorg-server 是等效的,只是 xorg-x11 带了很多字体,推荐用 xorg-server。
没想到 x-term、xclock、tvm 等等都要自己手动装
参考:
http://www.cnblogs.com/likun/archive/2009/10/15/1584208.html
http://en.gentoo-wiki.com/wiki/Virtualbox_Guest
http://forums.virtualbox.org/viewtopic.php?t=15679#
Tag:
python