Skip to main content
Support
0
Contact us
Nederlands
Deutsch
Español
Dedicated serversFlexible VPSCloud TechnologyColocationChallenges in ITSectorsCareers
Cloud Compute

With Cloud Compute, you have access anytime and anywhere to a portal through which you can configure your entire IT environment from wherever you are in the world.

Cloud Storage

Reliable access to your files, infrastructure, and applications at all times – with no interruptions or delays. At Worldstream, we offer a variety of storage solutions.

Flexible cloud icon
Flexible cloud
Private cloud icon
Private cloud
Bare metal icon
Bare Metal Compute
Hollow cube icon
Object storage
Hollow cube icon
File storage
Block storage icon
Block storage
Backup storage icon
Backup storage
Need support?

With experienced engineers and an average response time track record on 7 minutes, you can expect a solid technical support solution in next to no time.

All Servers

Choose your Dedicated Server now. Custom or Instant Delivery. Powerhouse servers built for your use case.

Use Cases

Whatever your use case, we’re here to help you find the ideal solution.

Deal servers icon
Deals
AMD servers icon
AMD Processors
AI servers icon
Intel Processors
Hollow cube icon
Virtualisation, Containerisation and Orchestration
Hollow cube icon
Websites and Applications
Hollow cube icon
Gaming and Streaming Infrastructure

24/7/365 support with an average response time of just 7 minutes. Thanks to our own data centers, our engineers can go directly to your server for fast, hands-on assistance. Email or call us anytime.

Smart outsourcing

Some IT creates added value, while other types are supportive. Use that as a starting point for outsourcing.

Cost Efficiency

Complete IT packages may seem like the safe option, but when you consider the costs, other choices often make more sense.

IT flexibility & control

Outsourcing doesn’t mean losing control; it actually provides more flexibility and control.

Cloud repatriation

The cloud is not a final destination: You should continuously evaluate and adjust your cloud environment as needs evolve.

Financial services
Logistics & Transportation
Retail & E-commerce
Media & Entertainment
Tech & Software Development
Security
Managed Service Providers
Need support?

With experienced engineers and an average response time track record on 7 minutes, you can expect a solid technical support solution in next to no time.

Chat with usContact us
About WorldstreamAbout the technologyCasesKnowledge base
About usMeet the teamJobsBecome a resellerCertificationsOur data centersOur networkDDoS ProtectionAMD EPYC serversTechnology PartnersOperating SystemsAll casesEasyTerraDutch Drone CompanyPerfGridArticlesFAQNews and BlogsProducts and Services
Contact us

Call +31 (0) 174 – 712 117

Industriestraat 53, Naaldwijk

Nederlands
Deutsch
Español
0
Dedicated serversFlexible VPSCloud TechnologyColocationChallenges in ITSectorsCareersAbout WorldstreamAbout the technologyCasesKnowledge baseMy Worldstream
Contact
Support
NederlandsDeutschEspañol
  1. HomeHome
  2. Knowledge Base
  3. Compute
  4. Cloud-init: automating first-boot setup for your VPS

Cloud-init: automating first-boot setup for your VPS

Applies to Flexible VPS, Linux distributionsAudience Developer, DevOps engineerLast reviewed September 2026

Quick answer

Cloud-init is the standard tool most Linux cloud images use to run first-boot configuration: setting the hostname, injecting SSH keys, installing packages, and running your own scripts, all before you ever log in. It's an industry-standard, open-source tool, not something specific to any one provider.

What cloud-init actually is

Cloud-init runs automatically the first time a cloud image boots, before you get a login prompt. It reads configuration supplied at creation time and applies it: setting the hostname, creating user accounts, injecting SSH public keys, installing packages, writing files, and running arbitrary commands. Nearly every mainstream Linux cloud image (Ubuntu, Debian, Rocky Linux, AlmaLinux, and others) ships with cloud-init pre-installed, which is why it's become the de facto standard for first-boot automation across cloud providers generally, rather than something tied to any one platform.

What a typical user-data file contains

Cloud-init is driven by a file usually called user-data, written in YAML. The directives you will meet first:

DirectiveWhat it does
packages:A list of packages to install on first boot
write_files:Files to create, with their content and target path, before the machine finishes booting
runcmd:Shell commands to run once, near the end of the first-boot process
ssh_authorized_keys:Public keys to add to the default user's authorized_keys so key-based login works immediately

The file starts with #cloud-config on its own first line, which is how cloud-init recognises it as a config directive file rather than a raw shell script (a plain #!/bin/bash script is also valid user-data, and runs directly, if you'd rather script the whole thing yourself).

Why it matters for repeatable infrastructure

Without cloud-init, first-boot setup means logging in after creation and running the same setup steps by hand, every time. That's slow, and it's easy to get inconsistent results between machines. Cloud-init moves that setup into a declarative file that runs unattended, which means:

  • New servers come up already configured, rather than needing a manual pass after creation.
  • The same user-data file produces the same result every time, which is exactly what infrastructure-as-code workflows depend on.
  • Provisioning tools (Terraform, Ansible, and similar) can generate or template the user-data file per server, so first-boot configuration becomes part of your version-controlled infrastructure rather than a manual runbook.

For the full range of what a user-data file can do beyond the directives above, see the official cloud-init documentation.

Related articles

  • Deploying your first Flexible VPS
  • Creating an SSH key pair
  • Common API automation recipes
Was this article helpful?

Solid IT. No Surprises

Sparring partner for IT maturity
Eliminating barriers so you can run
Predictable and transparant costs

Contact

  • Industriestraat 53, Naaldwijk
  • Payment Methods
  • Abuse
  • Developers Resources
  • Network Operations Center
  • About us
  • Meet the team
  • Jobs
  • Become a reseller
  • Certifications
  • Our data centers
  • Our network
  • DDoS Protection
  • AMD EPYC servers
  • Technology Partners
  • Operating Systems
  • Overview
  • FAQ
  • Cases
  • News & Blogs
  • Use Cases
Nederlands
Deutsch
Español
Nederlands
Deutsch
Español
  • Legal
  • Disclosure