New Question

mld68's profile - activity

2018-03-30 14:19:21 +0200 received badge  Self-Learner (source)
2018-03-30 14:19:21 +0200 received badge  Teacher (source)
2018-03-30 14:19:15 +0200 marked best answer usage of cloudbase-init.conf and cloudbase-init-unattend.conf

Hi all,

Sorry this post is quite long. Today

I would like to know the usage differences between theses two files as they can host the same settings. When each of them are interpreted ? At first boot ? At every boot ?

I made my first Windows 2016 instance. Then I reboot it and I notice 2 log files just written :

  • cloudbase-init.log
  • cloudbase-init-unattend.log,

So AFAIK the 2 configuration file were interpreted by cloudbase-init. Why ?

Here is how I build the image

  • I install Windows as our standards in my company (antivirus, ntp, registry settings...)
  • At the end of setupcomplete.cmd, I added the silent installation of CloudbaseInitSetup0911x64.msi
  • Put settings on cloudbase-init.conf and/or (?) cloudbase-init-unattended.conf
  • Launch sysprep specifying the unattend.xml provided by cloubaseinit installation.
  • System shutdown, ready to copy on openstack

And the corresponding code :

msiexec /i CloudbaseInitSetup__0__9__11__x64.msi /qn /l*v "C:\Logiciels\CloudInit.log" LOGGINGSERIALPORTNAME=COM1
copy personnalized cloudbase-init.conf "%ProgramFiles%\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init.conf"
ipconfig /release  
cd "%ProgramFiles%\Cloudbase Solutions\Cloudbase-Init\conf"
\Windows\System32\Sysprep\Sysprep.exe" /generalize /oobe /shutdown /unattend:Unattend.xml

According Unattend.xml, at first boot, the following will be run : cmd.exe /c ""C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Scripts\cloudbase-init.exe" --config-file "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init-unattend.conf

So, does it mean the cloudbase-init-unattend.conf is used only once at fist boot. So this file should init the user : according theses entries using the pluging : cloudbaseinit.plugins.windows.createuser.CreateUserPlugin

username=Admin
groups=Administrators

As all plugin are executed by defaut, no need for a plugins entry in this ini file

If cloubase-init.conf has also the username/groups entries, it will change the password of the admin user at each reboot ? The only way to automaticaly change this password and be able to get it vith the nova command

If one want to keep the provided password at first boot, one have to remove these entries and specify la limited set of plugin in the plugins= entry ?

Thanks !

2018-03-28 12:56:39 +0200 edited question Cloud init beta 0.9.12 release date

Cloud init beta 0.9.12 release date Hi all One can see that the beta version is 0.9.12 in https://github.com/openstack/c

2018-03-28 12:56:00 +0200 received badge  Famous Question (source)
2018-03-27 18:38:48 +0200 edited answer usage of cloudbase-init.conf and cloudbase-init-unattend.conf

Hi Adrian, Thanks for theses explanation. The two .conf files may be identicals in fact. AFAIU, running Cloudinit at ea

2018-03-27 18:36:24 +0200 edited answer usage of cloudbase-init.conf and cloudbase-init-unattend.conf

Hi Adrian, Thanks for theses explanation. The two .conf files may be identicals in fact. AFAIU, running Cloudinit at ea

2018-03-27 18:30:51 +0200 answered a question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

Hi Adrian, Thanks for theses explanation. The two .conf files may be identicals in fact. AFAIU, running Cloudinit at ea

2018-03-26 16:30:18 +0200 received badge  Famous Question (source)
2018-03-23 13:58:31 +0200 received badge  Notable Question (source)
2018-03-23 13:58:31 +0200 received badge  Popular Question (source)
2018-03-23 11:43:13 +0200 received badge  Notable Question (source)
2018-03-23 11:43:13 +0200 received badge  Popular Question (source)
2018-03-19 20:57:24 +0200 edited question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, Sorry this post is quite long. Today I would li

2018-03-19 20:55:46 +0200 edited question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, I would like to know the usage differences betwee

2018-03-19 20:54:47 +0200 edited question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, I would like to know the usage differences betwee

2018-03-19 20:53:25 +0200 edited question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, I would like to know the usage differences betwee

2018-03-19 20:37:36 +0200 edited question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, I would like to know the usage differences betwee

2018-03-19 20:37:16 +0200 edited question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, I would like to know the usage differences betwee

2018-03-19 20:36:44 +0200 edited question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, I would like to know the usage differences betwee

2018-03-19 20:34:07 +0200 edited question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, I would like to know the usage differences betwee

2018-03-19 20:33:09 +0200 edited question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, I would like to know the usage differences betwee

2018-03-19 20:32:02 +0200 edited question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, I would like to know the usage differences betwee

2018-03-19 20:23:12 +0200 edited question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, I would like to know the usage differences betwee

2018-03-19 20:22:16 +0200 edited question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, I would like to know the usage differences betwee

2018-03-19 20:21:39 +0200 edited question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, I would like to know the usage differences betwee

2018-03-19 14:44:33 +0200 asked a question usage of cloudbase-init.conf and cloudbase-init-unattend.conf

usage of cloudbase-init.conf and cloudbase-init-unattend.conf Hi all, I would like to know the usage differences betwee

2018-03-19 14:29:06 +0200 received badge  Organizer (source)
2018-03-19 14:28:38 +0200 received badge  Editor (source)
2018-03-19 14:28:38 +0200 edited question Cloud init beta 0.9.12 release date

Cloud init beta 0.9.12 release date Hi all One car see that the beta version is 0.9.12 in https://github.com/openstack/c

2018-03-19 14:27:02 +0200 asked a question Cloud init beta 0.9.12 release date

Cloud init beta 0.9.12 release date Hi all One car see that the beta version is 0.9.12 in https://github.com/openstack/c