New Question
0

Cloudbase-init modifed my drive letter

asked 2017-04-19 10:59:11 +0200

flynnut gravatar image

We're deploying a VM using cloudbase-init in Vcenter 5x. The original image/template has drive X: assigned to pagefile. When we provision a new image the pagefile is changed to drive E:. If we create a new VM without cloudbase-init, there is no change to the drive letter. Cloudbase-init was reinstalled on a clone of the original image with the same results. What could be the issue?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2017-04-19 16:56:15 +0200

flynnut gravatar image

Hi Adrian, Thanks for your reply...

We used the msi installer.

edit flag offensive delete link more

Comments

During the cloudbase-init installation, there is a checkbox whether to perform sysprep or not. During sysprep, it might be the case that your pagefile setting is changed. Can you install cloudbase-init without performing sysprep?

avladu gravatar imageavladu ( 2017-04-19 17:03:44 +0200 )edit

Yes... we ran cloud init without sysprep and the drive did not change so I'm sure the error is with sysprep. This image was use with Drive E: before and now we would like to use X:. This there a configuration for sysprep or windows registry setting? We're using Windows 2008R2.

flynnut gravatar imageflynnut ( 2017-04-19 17:23:04 +0200 )edit

You can leverage Localscripts plugin from cloudbase-init and add a powershell or batch script in the LocalScripts folder, which will be run at boot time by cloudbase-init. The registry key you want to modify is: get-item 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\'

avladu gravatar imageavladu ( 2017-04-19 17:42:02 +0200 )edit

You can leverage Localscripts plugin from cloudbase-init and add a powershell or batch script in the LocalScripts folder, which will be run at boot time by cloudbase-init. The registry key you want to modify is: 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\'

avladu gravatar imageavladu ( 2017-04-19 17:42:33 +0200 )edit

More info on the LocalScripts plugin here:http://cloudbase-init.readthedocs.io/en/latest/plugins.html#scripts-execution-main

avladu gravatar imageavladu ( 2017-04-19 17:43:45 +0200 )edit
0

answered 2017-04-19 16:13:38 +0200

avladu gravatar image

Hello,

Are you using Cloudbase-Init msi installer to install cloudbase-init and are you performing the sysprep step from the installer?

Thank you, Adrian Vladu

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-04-19 10:59:11 +0200

Seen: 349 times

Last updated: Apr 19 '17