注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 不抛弃 不放弃——记2008..
 帮助

VMware 中编译内核 2.4.34


2006-12-25 22:09:51
 标签:VMware 编译内核   [推送到博客圈]

  首先改变虚拟机内存大小为512M。呵呵。这样应该能快些。
  更改运行级为3
  www.kernel.org 下载2.4最新的版本
   SSH secure file client 传文件 2.4.34.tar.bz2 /boot
  cp  /usr/src
  tar -jxvf
  make mrproper  清理源代码树
  make menuconfig  采用这种方式来配置核心
  make dep         依赖关系
  make clean       清除多余文件
  make bzImage     编译内核
  make modules     编译模块
  make modules_install    安装模块
  make insatll     安装核心
 
  这里我们特别要注意一点就是VMware 安装的过程中如果选择了SCSI Adapters:Buslogic
  Virtual Disk Type  SCSI (Recommended) 这个默认选项的话。那你在编译核心的过程中就需要在 SCSI support -- Low-level drivers –buslogic SCSI support  m 。编译成module。但是这样重启后选择新的kernel还是会报错kernel panic : VFC:Unable to mount root fs on 00:00。你需要重新编译一次。这次在 buslogic 选择 Y 。编译进核心。并在编译后 修改 /boot/grub/grub.conf 文件中的相应标题 kernel /vmlinuz-x.xx.xx ro root=LABEL=/ 改成相应的分区。比如 root=/dev/sda3 编译后核心所在的分区。这样你就可以正常进入新的核心了。
 




    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: