Am I supposed to remove cloud-init once the server has been createdWhere are the logs for my user-data script? cloud-initCloud-init: how to install it from the source code?What are the use cases for cloud-init?I'm using Ubuntu Server for a simple home server - do I need cloud-init?winScp: Connection has been unexpectedly closed. server sent command exit status 127Ubuntu server after boot - cloud-init[892]

A story both SF and Fantasy where a character in a spacesuit has a phantom arm

Moving into check for a draw as black, why is it illegal? Comparison to Racing Kings

How to Quickly Replace a Parameter in a Piped Command Chain

Using (draft) C++20 chrono, how to compute various facts about a date

Why would a table with a Clustered Columnstore Index have many open rowgroups?

Why is the OS obfuscation defense against "It's a Unix system!" not widely implemented?

find ".ts" but not ".d.ts"

Sort-of Alexa clone using Python on a raspberry pi

SQL Server Truncates Transaction Logs with Copy Only Backups

Should I sign a NDA that holds me liable for legal fees even if I am in the right?

Is it common to use pinky (little finger) on black keys?

Corridor seats on the TGV — why? Are seat reservations not always mandatory?

How would I measure the Carbon Dioxide content in Coca Cola over a period of time?

Texas gun laws - can an overseas visitor buy ammunition?

Is the number of federal judges appointed by Trump unusual?

How are the Van der Waals constants a and b related to each other?

Magento 2 Escrow Payment Integration

Tactical illusion combat countermeasures (password system)

Should I provide my username and password for my brokerage account to my mortgage lender to verify my assets?

As its creator, can Snape reverse Sectumsempra?

Why is Leela so good at beating Stockfish in the French/Caro-Kann?

Implementation gap in logistics

Creating 2020 in the fewest number of steps

UFW OpenSSH application port change?



Am I supposed to remove cloud-init once the server has been created


Where are the logs for my user-data script? cloud-initCloud-init: how to install it from the source code?What are the use cases for cloud-init?I'm using Ubuntu Server for a simple home server - do I need cloud-init?winScp: Connection has been unexpectedly closed. server sent command exit status 127Ubuntu server after boot - cloud-init[892]






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1


















As far as I understand it, cloud-init handles early initialization of a cloud/VM instance.
Ive been using it to help build KVM VMs and it works really well.



One aspect of cloud-init I don't understand is what happens once its done the initial creation of the instance.



  • Does it automatically disable itself so it never runs again?


  • Can it execute again under certain circumstances (e.g. on a change to /etc/machine-id)? I'm pretty sure I forced it to re-run at some point by running



    sudo rm -rf /var/lib/cloud/*


  • Is it designed so that I should be uninstalling cloud-init once my instance has been built and its gone into production, or does cloud-init stay installed (doing nothing) even after its been instantiated?










share|improve this question



























  • "Initialization" is not the same as "installation".

    – Rinzwind
    Oct 3 at 7:36

















1


















As far as I understand it, cloud-init handles early initialization of a cloud/VM instance.
Ive been using it to help build KVM VMs and it works really well.



One aspect of cloud-init I don't understand is what happens once its done the initial creation of the instance.



  • Does it automatically disable itself so it never runs again?


  • Can it execute again under certain circumstances (e.g. on a change to /etc/machine-id)? I'm pretty sure I forced it to re-run at some point by running



    sudo rm -rf /var/lib/cloud/*


  • Is it designed so that I should be uninstalling cloud-init once my instance has been built and its gone into production, or does cloud-init stay installed (doing nothing) even after its been instantiated?










share|improve this question



























  • "Initialization" is not the same as "installation".

    – Rinzwind
    Oct 3 at 7:36













1













1









1


1






As far as I understand it, cloud-init handles early initialization of a cloud/VM instance.
Ive been using it to help build KVM VMs and it works really well.



One aspect of cloud-init I don't understand is what happens once its done the initial creation of the instance.



  • Does it automatically disable itself so it never runs again?


  • Can it execute again under certain circumstances (e.g. on a change to /etc/machine-id)? I'm pretty sure I forced it to re-run at some point by running



    sudo rm -rf /var/lib/cloud/*


  • Is it designed so that I should be uninstalling cloud-init once my instance has been built and its gone into production, or does cloud-init stay installed (doing nothing) even after its been instantiated?










share|improve this question
















As far as I understand it, cloud-init handles early initialization of a cloud/VM instance.
Ive been using it to help build KVM VMs and it works really well.



One aspect of cloud-init I don't understand is what happens once its done the initial creation of the instance.



  • Does it automatically disable itself so it never runs again?


  • Can it execute again under certain circumstances (e.g. on a change to /etc/machine-id)? I'm pretty sure I forced it to re-run at some point by running



    sudo rm -rf /var/lib/cloud/*


  • Is it designed so that I should be uninstalling cloud-init once my instance has been built and its gone into production, or does cloud-init stay installed (doing nothing) even after its been instantiated?







server cloud-init






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 3 at 6:28









NIMISHAN

1,2484 gold badges13 silver badges22 bronze badges




1,2484 gold badges13 silver badges22 bronze badges










asked Oct 3 at 2:57









CrustyCrusty

112 bronze badges




112 bronze badges















  • "Initialization" is not the same as "installation".

    – Rinzwind
    Oct 3 at 7:36

















  • "Initialization" is not the same as "installation".

    – Rinzwind
    Oct 3 at 7:36
















"Initialization" is not the same as "installation".

– Rinzwind
Oct 3 at 7:36





"Initialization" is not the same as "installation".

– Rinzwind
Oct 3 at 7:36










0






active

oldest

votes













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1178235%2fam-i-supposed-to-remove-cloud-init-once-the-server-has-been-created%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown


























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1178235%2fam-i-supposed-to-remove-cloud-init-once-the-server-has-been-created%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown









Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?