-----BEGIN PGP SIGNED MESSAGE-----
What I believe is happening is during the image creation VCL disables
the pagefile, reboots, and then removes the pagefile. This makes for
a smaller image file.
Then, during the image provisioning, the pagefile is re-enabled using
the default settings (which is pagefile = ram size).
If you look at the 'Windows.pm' there is a sub function called
"enable_pagefile". There is a "reg.exe" call used by cygwin that
looks like it's re-enabling the pagefile to the default settings.
Maybe you could zero out the function, so that it doesn't make the call
to cygwin. Or, maybe, modify the "reg.exe" string to limit the
registry's setting so that the new pagefile is just a couple Gigs.
In the past, I've found registry settings by dumping the registry to a
text file, making the changes, and then dumping the registry again.
You should be able to find the setting by comparing the files
Then roll your own "reg.exe" string.. (or I guess you could just Google
the setting, lol)
Hope this helps,
On 3/28/2012 2:34 PM, Dmitri Chebotarov wrote:
> Yes, I have changed the setting for pagefile. But it resets to default after
> I capture image and make reservation.
> I've also commented disable_pagefile() in Windows.pm (and restarted vcld),
> but it doesn't help. New image still has default pagefile setting.
> Is there another place in the code where I could stop VCL from changing
> pagefile settings?
> Dmitri Chebotarov
> Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
> 223 Aquia Building, Ffx, MSN: 1B5
> Phone: (703) 993-6175
> Fax: (703) 993-3404
> On Wednesday, March 28, 2012 at 16:19 , James O'Dell wrote:
> Have you tried disabling/reducing the page file before making the image?
>>>> Control Panel
>>>> System and Security
>>>> Click to open System.
>>>> In the left pane, click Advanced system settings. If you are prompted for
>>>> an administrator password or confirmation, type the password or provide
>>>> On the Advanced tab, under Performance, click Settings.
>>>> Click the Advanced tab, and then, under Virtual memory, click Change.
>>>> Clear the Automatically manage paging file size for all drives check box.
>>>> Under Drive [Volume Label], click the drive that contains the paging file
>>>> you want to change.
>>>> Click Custom size, type a new size in megabytes in the Initial size (MB)
>>>> or Maximum size (MB) box, click Set, and then click OK.
> This should make a registry change, that hopefully prevents Windows from
> "Automatically manage paging file size for all drives"
> "Automatically" typically makes the page file the same as the available ram.
> On 3/28/2012 12:57 PM, Dmitri Chebotarov wrote:
>>>> Hi, All
>>>> I'm using Windows 7 Ent image with VCL/xCAT on a blade with 48GB of
>>>> Before capturing the image I set page file to 2GB, once capture is done,
>>>> the new reservation ends up with 48GB page file.
>>>> This leave little space left to install new applications.
>>>> I found that Windows.pm calls disable_pagefile() on line 474 during image
>>>> Would it be OK to disable this function?
>>>> Thank you.
>>>> Dmitri Chebotarov
>>>> Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
>>>> 223 Aquia Building, Ffx, MSN: 1B5
>>>> Phone: (703) 993-6175
>>>> Fax: (703) 993-3404
California State University Fullerton
Phone: (657) 278-2256
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----