Hi There,
I'm testing my existing script which executes well with ESX 3.5 U4 to work with ESX 4.0, the only bit doesn't change is the amount of RAM allocation to the service console to be 800MB.
Below the script that works with ESX 3.5 U4
cp /etc/vmware/esx.conf /etc/vmware/esx.conf.ORIG
perl -spi -e 's|/boot/memSize = \"272\"|/boot/memSize = \"800\"|' /etc/vmware/esx.conf
cp /etc/grub.conf /etc/grub.conf.ORIG
esxcfg-boot -g
esxcfg-boot -b
Has anyone got this working in ESX 4?
Cheers,
Vishy
Try this instead.
vimsh -n -e "/hostsvc/memoryinfo 838860800"
you will have to change grub.conf also . modify the param mem=272M to mem=800M.
Thanks guys,
When I run this from the Service Console it works fine, but when I add it to my script it not working. I will dofews other methods and post my comments bit later
Cheers,
Vishy
this is what I used for 3.5 and I believe it still works for 4.0:
Upsize console memory
mv -f /etc/vmware/esx.conf /etc/vmware/esx.conf.old
/bin/sed -e 's/boot\/memSize = \"272\"/boot\/memSize = \"800\"/g' /etc/vmware/esx.conf.old >> /etc/vmware/esx.conf
mv -f /boot/grub/grub.conf /tmp/grub.conf.bak
/bin/sed -e 's/uppermem 277504/uppermem 818176/g' -e 's/mem=272M/mem=800M/g' /tmp/grub.conf.bak >> /boot/grub/grub.conf
Duncan
VMware Communities User Moderator | VCP | VCDX
-
Blogging: http://www.yellow-bricks.com
If you find this information useful, please award points for "correct" or "helpful".
HI Guys,
Finally go it working using Duncan's method, please note some changes to existing script
mv -f /etc/vmware/esx.conf /etc/vmware/esx.conf.old
/bin/sed -e 's/boot\/memSize = \"300\"/boot\/memSize = \"800\"/g' /etc/vmware/esx.conf.old >> /etc/vmware/esx.conf
mv -f /boot/grub/grub.conf /boot/grub/grub.conf.bak
/bin/sed -e 's/uppermem 307200/uppermem 818176/g' -e 's/mem=300M/mem=800M/g' /boot/grub/grub.conf.bak >> /boot/grub/grub.conf
The default ESX 4.0 SC RAM now stands at 300MB as suppose to 272M, same applies to uppermen is now 307200 as suppose to 277504
Also the backup location for grub.conf changed to same located as orig file. The /tmp directly doesn't work using script method, I was able to write post logs to /tmp when used with ESX 3.x but not in ESX 4.0, however was able to write post logs to /var/log
Thanks, Dunacn appreciate your help
Vishy
Here's another easy method to achieve it (change COS RAM to 800MB). It works in ESX4.
/usr/bin/vmware-vim-cmd /hostsvc/memoryinfo 838860800 /usr/sbin/esxcfg-boot -b /usr/sbin/esxcfg-boot -t
Christoph Wegener