<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/ DTD/wml_1.1.xml">

<wml>
<head>
<meta http-equiv="cache-control" content="max-age=180,private" />
</head>
<card title="修改配置解决VMware vSphere最低内存2G的限制">
<p>
作者:<a href="index.php?action=showuser&amp;userid=1&amp;hash=">admin</a><br />时间:2014-06-12 17:27<br />分类:<a href="index.php?action=list&amp;cid=3&amp;hash=">电脑技术</a><br />内容:
修改配置解决VMware vSphere最低内存2G的限制

VMware vSphere对硬件的要求比较高，但是对于测试系统来说我们是希望配置要求越低越好，CPU的要求卡死在哪里，必须要64位系统，安装客户机必须要支持VT技术才能安装64位的，这些是没什么好商量的。

但是内存方面VMware vSphere最低2G的内存似乎是高了点，如果达不到这个要求系统是无法启动的，对于测试环境来说可能每台esx服务器只安装一两个客户机不一定用得到这么多内存，因此我们可以通过手动修改VMware vSphere的配置来达到低于2G内存启动VMware vSphere。

如下图所示，当内存少于2G时，VMware vSphere自动中断启动。

 




 

修改办法如下：

满足2G内存的情况下启动VMware vSphere，按Alt+F1进入维护模式

 




 

输入命令&quot;vi /etc/vmware/init/init.d/vi 00.vmnix&quot;修改VMware vSphere配置

找到&ldquo;RequiredMemory=2064384&rdquo;这行配置，将2064384修改你希望的内存大小，保存配置。

 




 

关闭系统，修改低于2G的内存数值，重新启动VMware vSphere就可以正常启动了。




 

 

esxi5    启动字符界面的方法

 

1.启动 esxi5.1系统


 




 

F2进入管理界面

 

2.启动 esxi5.1系统

 



输入密码：

 

3.进入故障模式

 


 

 

4.修改esxi shell 和 ssh的当前模式---默认是关闭的

  下图是修改成功后的图片 



                                                                                               以显示 esxi shell is enabled 表示开启 shell

 

5.按 ALT+F1切换

 


 输入密码和登录用户


 

 




 


 

 

添加

 




 

 

 


As some of you noticed, when you install vSphere(ESX) within a VM you will need at least 2GB to get the installer started. Even when it has finished installing you can&rsquo;t reduce the memory because the following error will occur:





I couldn&rsquo;t find a way of pre-adjusting the memory requirements but there&rsquo;s a way to change this be

havior and to downsize the memory when the installation has finished. Keep in mind this is, as far as I know, not supported&hellip; it&rsquo;s only to be used to run ESX within VMware Workstation for your demo / test environment. I personally use it for running 2 ESX servers and vCenter within VMware Workstation on my 4GB laptop. (That&rsquo;s what I actually use to create screenshots and prepare blog articles.)

ESX:




    Install vSphere(ESX) with at least 2 GB memory

    Login to the Service Console and type the following:
    vi /etc/vmware/init/init.d/00.vmnix
    

    Change the following line to the desired value: RequiredMemory=2064384

    Shutdown the virtual machine and change the VMs memory and boot it up!




Thanks Mark for the comment on ESXi:



    Install vSphere(ESXi) with at least 2 GB memory

    Login to the console via the &ldquo;unsupported&rdquo; method.

    Edit the file /etc/vmware/esx.conf and add the following line:
    /vmkernel/minMemoryCheck = &ldquo;false&rdquo;
    

    Save the file and shutdown ESXi, change the memory and boot it up!




Don&rsquo;t use any other editor than &ldquo;vi&rdquo;, there are multiple reports of nano wrecking the layout of the file which leads to an unrecoverable error during booting.






 
</p><p>
<a href="index.php?action=login&amp;hash=">立即登陆发表评论</a><br />
</p>
<p><a href="index.php?action=list&amp;hash=">返回日志列表</a><br /><a href="index.php?action=index&amp;hash=">返回主页</a></p>
</card>
</wml>
