Hi All!
My VM created from contextualization Image (Centos 7)
I noticed that dropped my keys which was manually adding after first start my VM.
I think that scripts of contextualization run every time boot (after reboot) and recreated my authorized_keys file.
Is it normal action for contextualization and how it to avoid (Is it have way to disable automatically autostart vmcontext after first boot VM)?
As far as I know you either need to use contextualization or not. I don’t think you can mix and match. So you’ll need to add the keys via Sunstone, or disable Add SSH contextualization in the Context settings for that VM.
I want to execute the startup scripts to be executed only the first time VM boot. I dont want the init script to be executed everytime VM boot (reboot). How can I achieve this?
I tried your suggestion. The files is getting created on boot. However for the second boot time, looks like the files is not present. It gets deleted upon boot. Is there any specific folder where the files will be persistent(permanent) across boot.