Vmware 虚拟机里安装 Gentoo

今天花了一整天在虚拟机上装了一个Gentoo ,因为是同事的电脑,就只能在虚拟机里安装了,不过在虚拟机里安装Gentoo真是找虐啊,费事,不如在物理机上安装顺当..

一下要注意的地方

/etc/make.conf 的配置

VIDEO_CARDS="vmware vesa vga"

INPUT_DEVICES="evdev keyboard mouse vmmouse"

use 标记自己按照需要标记

内核配置

 

Linux Kernel  Configuration: VMware tools configuration

Loadable module support  --->

  [*] Enable loadable module support --->

  [*]    Module unloading

 

 

Linux Kernel  Configuration: Intel PCI/ISA Bridge

Bus options (PCI etc.)  --->

  [*] PCI Support

  [*] ISA Support

  [*]   EISA support

  <*> Support for PCI Hotplug

      Support for PCI Hotplug --->

          <*> SHPC PCI Hotplug driver

 

 

Linux Kernel  Configuration: IEEE 1394

Device Drivers --->

  IEEE 1394 (Firewire) support --->

      <*> Stable Firewire stack

      <*>   OHCI-1394 controllers

      <*>   Storage devices (SBP-2 protocol)

 

 

Linux Kernel  Configuration: Parallel port

Device Drivers --->

   <*> Parallel port support  --->

       <*> PC-style hardware

 

 

Linux Kernel  Configuration: Parallel ATA

Device Drivers --->

   <*> Serial ATA (prod) and Parallel  ATA (experimental) drivers  --->

   <*>    PCMCIA PATA support

 

 

Linux Kernel  Configuration: I2C

Device Drivers --->

   <*> I2C Support --->

   I2C Hardware Bus support --->

   <*>    Intel PIIX4 and compatible (ATI/Serverworks/Broadcom/SMSC)

 

 

Linux Kernel  Configuration: Backplane

Device Drivers --->

   Sonics Silicon Backplane  --->

   <*>    Sonics Silicon Backplane support

 

 

Linux Kernel  Configuration: LSI Logic SCSI adapter

Device Drivers  --->

   [*]   Fusion MPT device support   --->

         <*> Fusion MPT ScsiHost  drivers for SPI

         <*> Fusion MPT ScsiHost  drivers for FC

         <*> Fusion MPT ScsiHost  drivers for SAS

   SCSI device support  --->

         <*> SCSI device support

         <*> SCSI disk support

         SCSI low-level drivers  --->

             <*> SYM53C8XX Version 2  SCSI support

 

 

Linux Kernel  Configuration: BusLogic

Device Drivers  --->

   SCSI device support  --->

         <*> SCSI device support

         <*>   SCSI disk support

         SCSI low-level drivers  --->

             <*> BusLogic SCSI support

 

 

Linux Kernel  Configuration: HID support

Device Drivers --->

   [*] HID Devices  --->

         <*>   USB Human Interface Device (full HID)  support

   [*] USB support  --->

         <*>   Support for Host-side USB

         <*>     SL811HS HCD support

 

 

Linux Kernel  Configuration: CDROM

Device Drivers  --->

   <*> ATA/ATAPI/MFM/RLL support  --->

         <*> Enhanced IDE/MFM/RLL  disk/cdrom/tape/floppy support

         <*>   Include IDE/ATAPI CDROM support

         [*]    PCI IDE chipset support

         <*>     Intel PIIXn chipsets support

 

File systems  --->

   CD-ROM/DVD Filesystems  --->

   <*> ISO 9660 CDROM file system  support

   [*]    Microsoft Joliet CDROM extensions

We have to disable IPV6, VMware does not support ityet.

 

Linux Kernel  Configuration: Network

Networking   --->

   [*] Networking support

         Networking options  --->

             <*> Packet socket

             <*> Unix domain sockets

             [*] TCP/IP networking

             < >    The IPv6 protocol --->

        <*> 802.1d Ethernet Bridging

       

 

You need to build the  network drivers as modules to be able to unload them later and load vmware  optimized modules.

Device Drivers  --->

   Network Device support  --->

        [*] Network device support

             Ethernet (10 or 100Mbit)  --->

                [*] Ethernet (10 or 100Mbit)

                [*] EISA, VLB, PCI and on  board controllers

                <M>   AMD PCnet32 PCI support

             Ethernet (1000Mbit)  --->

                [M] Intel(R) PRO/1000 Gigabit  Ethernet support

VMware virtual machine emulates a Creative Labs SoundBlaster® AudioPCI device. If you like to have sound in your virtual GentooLinux, you will need to add support for it. See the following section.

 

Linux Kernel  Configuration: Audio

Device Drivers  --->

   Sound   --->

      <M> Sound card support

      --- Advanced Linux Sound Architecture

         <M>   Sequencer support                               

         < >     Sequencer dummy client                                

         <M>   OSS Mixer API                                            

         <M>   OSS PCM (digital audio) API                              

         [*]     OSS PCM (digital audio) API - Include  plugin system      

         [*]    OSS Sequencer API                              

         [*]    Dynamic device file minor numbers

         [*]    Support old ALSA API       

         [*]    Verbose procfs contents

         [*]    Generic sound devices   --->   

         [*]    PCI sound devices  --->                  

            <M> (Creative) Ensoniq  AudioPCI 1371/1373

         [*]    USB sound devices  --->                            

         [*]    PCMCIA sound devices   --->   

 

 

Linux Kernel  Configuration: Gameport

Device Drivers  --->

   Input device support --->

        Hardware I/O ports --->

        <*> Gameport support

 

 

Linux Kernel  Configuration: Graphics

Device Drivers --->

   Graphics support --->

        <*> /dev/agpgart (AGP  Support)  --->

             <*>   Intel 440LX/BX/GX, I8xx and E7x05 chipset  support

 

 

Linux Kernel  Configuration: Device mapper support

Device Drivers --->

   [*] Multiple devices driver support (RAID  and LVM)  --->

        <*>   Device mapper support

        <*>     Snapshot target

        <*>     Bad Block Relocation Device Target  (EXPERIMENTAL)

These other things might be useful for udev. Note: Ifyour kernel has problems mounting udev, you may need to emergesys-apps/portage, sys-fs/baselayout, and sys-fs/udev to their most currentstable versions.

 

Linux Kernel  Configuration: udev support

File Systems  --->

    Pseudo filesystems  --->

        -*- /proc file system support

        < >   /proc/kcore support

        <*> Virtual memory file system  support (former shm fs)

 

 

代码 1.1: 建立符号连接net.eth0指向net.lo

# cd /etc/init.d
# ln -s net.lo net.eth0

代码 1.3: 启动和停止网络脚本

# /etc/init.d/net.eth0 start
# /etc/init.d/net.eth0 stop

代码 1.4: 配置网络接口以便在启动的时候装载它

# rc-update add net.eth0 default
# rc

 

Xorg-server 的安装

可能会黑屏

解决办法

需要在xorg.conf.new的Section "ServerLayout"中添加
Option "AutoAddDevices" "false"
来禁止这个功能 现在不要 Xorg -config ~/xorg.conf.new -retro

网上是说Xorg -config ~/xorg.conf.new -retro
,但我的没有效果,我的事必须把cp /root/xorg.conf.new/etc/X11/xorg.conf ,才行

 

手册上说要下载下面两个,但是自己没有下,同样也成功了

 livecd conf.d # emerge dhcpcd         (如果使用DHCP客户端)

livecd conf.d # emerge ppp            (如果使用PPPoE ADSL连接)

 

 

 

代码 4.1: 修改/etc/X11/xorg.conf中的Screen段落

Section "Screen"
  Identifier  "Default Screen"
  Device    "S3 Inc. ProSavage KN133 [Twister K]"
  Monitor   "Generic Monitor"
  DefaultDepth  24
  # 为了便于寻找和阅读请跳过一些内容
  SubSection "Display"
    Depth   24
    Modes   "1024x768"
  EndSubSection
EndSection

运行X(startx),看它是否启用了你所需要的分辨率:)

 

代码 4.2: 更改键盘布局

Section "InputDevice"
  Identifier  "Generic Keyboard"
  Driver    "keyboard"
  Option    "CoreKeyboard"
  Option    "XkbRules"  "xorg"
  Option    "XkbModel"  "pc105"
  Option    "XkbLayout" "be"
EndSection

 

 

 

代码 4.4: 在Xorg中改变鼠标设置

Section "InputDevice"
  Identifier  "TouchPad Mouse"
  Driver    "mouse"
  Option    "CorePointer"
  Option    "Device"    "/dev/input/mouse0"
  Option    "Protocol"    "IMPS/2"
  Option    "ZAxisMapping"    "4 5"
EndSection

 

 

 

 

然后就ok了,。。。。。。。。。。,睡觉

你可能感兴趣的:(vmware,虚拟机,keyboard,parallel,networking,filesystems)