您好,欢迎来到思海网络,我们将竭诚为您提供优质的服务! 诚征网络推广 | 网站备案 | 帮助中心 | 软件下载 | 购买流程 | 付款方式 | 联系我们 [ 会员登录/注册 ]
促销推广
客服中心
业务咨询
有事点击这里…  531199185
有事点击这里…  61352289
点击这里给我发消息  81721488
有事点击这里…  376585780
有事点击这里…  872642803
有事点击这里…  459248018
有事点击这里…  61352288
有事点击这里…  380791050
技术支持
有事点击这里…  714236853
有事点击这里…  719304487
有事点击这里…  1208894568
有事点击这里…  61352289
在线客服
有事点击这里…  531199185
有事点击这里…  61352288
有事点击这里…  983054746
有事点击这里…  893984210
当前位置:首页 >> 技术文章 >> 文章浏览
技术文章

低内存的情况下安装CentOS系统

添加时间:2016-6-21 4:33:09  添加: 思海网络 
装centos 6.3在本机上测试,但是在text 模式下安装却提示我“you do not have enough ram to install system ……”。不是text下安装只要180M的ram就可以了吗?但是确实是装不上,我试过将vm的内存调制512M,才能装。如何强制在低于512M内存下安装呢?下面重点说下在低内存下安装的方法。
1.从32-bit CentOS LiveCD (CentOS-6.0-i386-LiveCD.iso)启动,可以根据自己内存选择是图形界面还是文本模式

2.以root身份登录,方便后面的操作,省的每次都要su

3.编辑/usr/sbin/anaconda,在"within_available_memory"下面添加一行代码:return True,修改后的样子如下:

  
代码如下:"within_available_memory" adding a line "return True" like this:
def within_available_memory(needed_ram):
return True
# kernel binary code estimate that is
# not reported in MemTotal by /proc/meminfo
epsilon = 15360 # 15 MB
return needed_ram < (iutil.memInstalled() + epsilon)  

4.编辑/usr/lib/anaconda/storage/__init__.py,找到第四个"swapoff",将

  
代码如下:"umountFilesystems" from:
for device in devices:
if not device.format.mountable and
(device.format.type != "swap" or swapoff):
continue  

修改成

  
代码如下:for device in devices:
if not (device.format.mountable and
(device.format.type != "swap" or swapoff)):
continue  

5.运行liveinst,这样安装的时候就会有swap了,就有足够的内存运行安装程序了。


关键字:CentOS、系统、安装程序
分享到:

顶部 】 【 关闭
版权所有:佛山思海电脑网络有限公司 ©1998-2024 All Rights Reserved.
联系电话:(0757)22630313、22633833
中华人民共和国增值电信业务经营许可证: 粤B1.B2-20030321 备案号:粤B2-20030321-1
网站公安备案编号:44060602000007 交互式栏目专项备案编号:200303DD003  
察察 工商 网安 举报有奖  警警  手机打开网站