Also that might be an improvement for the esx.pm to set the default to 512MB if it's less than 512. Created JIRA issue VCL-130 <https://issues.apache.org/jira/browse/VCL-130>

here's the snippet from the vmware.pm module. It's not perfect(doesn't account for assigning too much ram) but it might help:

#check for memory settings
my $dynamicmemvalue = "512";
if (defined($vmclient_imageminram)) {
        #preform some sanity check
if (($dynamicmemvalue < $vmclient_imageminram) && ($vmclient_imageminram < $vmhost_RAM)) {
                $dynamicmemvalue = $vmclient_imageminram;
                notify($ERRORS{'OK'}, 0, "setting memory to $dynamicmemvalue");
        }
        else {
notify($ERRORS{'WARNING'}, 0, "image memory value $vmclient_imageminram out of the expected range in host machine $vmhost_RAM setting to 512");
        }
}



--On April 9, 2009 12:41:33 PM -0400 Wayne Schildhauer <wschi...@linux.vnet.ibm.com> wrote:

I found it.  The image data in the database had 0 instead of 512.  It
seems like we looked at everything but the most obvious....

Wayne F. Schildhauer
IBM Corporation
Research Triangle Park, NC

----- Original Message ----- From: "Wayne Schildhauer"
<wschi...@linux.vnet.ibm.com>
To: "vcl-dev" <vcl-dev@incubator.apache.org>
Sent: Wednesday, 08 April, 2009 18:22
Subject: xp image power on fail


I am sorry for the naive question to come, but we figured out why our
Windows XPs VMs are not powering on.  In the deployed vmx file on ESXi,
esx3-windowsxp-v0.vmx, memsize = 0:

  !/usr/bin/vmware
  config.version = "8"
  virtualHW.version = "4"
  memsize = "0"
  displayName = "windowsxp-bl1"
  guestOS = "other"

  <deleted remaining>

This causes VMware ESXi to panic the VM with an ASSERT failure.

Our master configuration file shows it being 512 MB (memsize = "512"),
and  the slots appear to be configured for 512 MB as well.  I suspect
that  memsize is not getting initialized, rather than overwritten, but I
cannot  trace where the object that is being given to esx.pm is
originally  generated.  Perhaps in the reservation?

Thanks....Wayne





Aaron Peeler
OIT Advanced Computing
College of Engineering-NCSU
919.513.4571
http://vcl.ncsu.edu

Reply via email to