记录我的一些生活写照、无聊的牢骚、内心世界的活动 注册 | 登陆

修改配置解决VMware vSphere最低内存2G的限制

修改配置解决VMware vSphere最低内存2G的限制

VMware vSphere对硬件的要求比较高,但是对于测试系统来说我们是希望配置要求越低越好,CPU的要求卡死在哪里,必须要64位系统,安装客户机必须要支持VT技术才能安装64位的,这些是没什么好商量的。

但是内存方面VMware vSphere最低2G的内存似乎是高了点,如果达不到这个要求系统是无法启动的,对于测试环境来说可能每台esx服务器只安装一两个客户机不一定用得到这么多内存,因此我们可以通过手动修改VMware vSphere的配置来达到低于2G内存启动VMware vSphere。

如下图所示,当内存少于2G时,VMware vSphere自动中断启动。

 

修改配置解决VMware vSphere最低内存2G的限制 - zhuzhu - 五事九思 (大连Linux主机维护)

 

修改办法如下:

满足2G内存的情况下启动VMware vSphere,按Alt+F1进入维护模式

 

修改配置解决VMware vSphere最低内存2G的限制 - zhuzhu - 五事九思 (大连Linux主机维护)

 

输入命令"vi /etc/vmware/init/init.d/vi 00.vmnix"修改VMware vSphere配置

找到“RequiredMemory=2064384”这行配置,将2064384修改你希望的内存大小,保存配置。

 

修改配置解决VMware vSphere最低内存2G的限制 - zhuzhu - 五事九思 (大连Linux主机维护)

 

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

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

修改配置解决VMware vSphere最低内存2G的限制 - zhuzhu - 五事九思 (大连Linux主机维护)
 
F2进入管理界面
 
2.启动 esxi5.1系统
 
修改配置解决VMware vSphere最低内存2G的限制 - zhuzhu - 五事九思 (大连Linux主机维护)
输入密码:
 
3.进入故障模式
 
修改配置解决VMware vSphere最低内存2G的限制 - zhuzhu - 五事九思 (大连Linux主机维护)
 
 
4.修改esxi shell 和 ssh的当前模式---默认是关闭的
  下图是修改成功后的图片 
修改配置解决VMware vSphere最低内存2G的限制 - zhuzhu - 五事九思 (大连Linux主机维护)
                                                                                               以显示 esxi shell is enabled 表示开启 shell
 
5.按 ALT+F1切换
 
修改配置解决VMware vSphere最低内存2G的限制 - zhuzhu - 五事九思 (大连Linux主机维护)
 输入密码和登录用户

 

 
修改配置解决VMware vSphere最低内存2G的限制 - zhuzhu - 五事九思 (大连Linux主机维护)
 
修改配置解决VMware vSphere最低内存2G的限制 - zhuzhu - 五事九思 (大连Linux主机维护)
 
 
添加
 
修改配置解决VMware vSphere最低内存2G的限制 - zhuzhu - 五事九思 (大连Linux主机维护)
 
 
 

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’t reduce the memory because the following error will occur:





I couldn’t find a way of pre-adjusting the memory requirements but there’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… it’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’s what I actually use to create screenshots and prepare blog articles.)

ESX:
  1. Install vSphere(ESX) with at least 2 GB memory
  2. Login to the Service Console and type the following:
    vi /etc/vmware/init/init.d/00.vmnix
  3. Change the following line to the desired value: RequiredMemory=2064384
  4. Shutdown the virtual machine and change the VMs memory and boot it up!
Thanks Mark for the comment on ESXi:
  1. Install vSphere(ESXi) with at least 2 GB memory
  2. Login to the console via the “unsupported” method.
  3. Edit the file /etc/vmware/esx.conf and add the following line:
    /vmkernel/minMemoryCheck = “false”
  4. Save the file and shutdown ESXi, change the memory and boot it up!
Don’t use any other editor than “vi”, there are multiple reports of nano wrecking the layout of the file which leads to an unrecoverable error during booting.

 

« 上一篇 | 下一篇 »

发表评论

评论内容 (必填):