Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Linux
Windows
Uno script di avvio è un file contenente comandi che vengono eseguiti all'avvio di un'istanza di macchina virtuale (VM). Compute Engine supporta l'esecuzione
di script di avvio su VM Linux e VM Windows.
La tabella seguente contiene link alla documentazione che descrive come utilizzare
gli script di avvio.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-21 UTC."],[[["\u003cp\u003eStartup scripts are files containing commands that execute upon the boot of a virtual machine (VM) instance, supported by both Linux and Windows VMs.\u003c/p\u003e\n"],["\u003cp\u003eStartup scripts can be passed directly, from a local file, or from Cloud Storage, depending on the script's size, with direct and local files limited to 256 KB, and Cloud Storage for larger scripts.\u003c/p\u003e\n"],["\u003cp\u003eYou can use startup scripts to pass different values to each VM via metadata.\u003c/p\u003e\n"],["\u003cp\u003eYou can rerun a startup script without having to restart the VM.\u003c/p\u003e\n"],["\u003cp\u003eThere is documentation to describe how to monitor the progress of a script when it is running, and also how to add a shutdown script.\u003c/p\u003e\n"]]],[],null,["# About startup scripts\n\nLinux Windows\n\n*** ** * ** ***\n\nA startup script is a file that contains commands that run when a virtual\nmachine (VM) instance boots. Compute Engine provides support for running\nstartup scripts on Linux VMs and Windows VMs.\n\nThe following table contains links to documentation that describes how to use\nstartup scripts.\n\nWhat's next\n-----------\n\n- Learn how to [add a shutdown script](/compute/docs/shutdownscript)."]]