Part of Datorkirurgen AB – IT experts across Sweden

Compute Engine, Container-Optimized OS, OS Login and cost control: this is how we work with Linux on Google Cloud, and we set up and operate your virtual servers.

Which Linux does Google offer?

Google has no Linux distribution of its own for ordinary servers, but it has Container-Optimized OS. It is a small, hardened system based on Chromium OS, and it is made to run containers. For ordinary virtual servers in Compute Engine, you instead choose from ready-made images of Debian, Ubuntu, Red Hat Enterprise Linux, Rocky Linux and several others. Therefore, Linux on Google Cloud is mostly about choosing the right image for the right task.

Container-Optimized OS fits when everything runs in containers and you want minimal maintenance. However, it lacks a package manager, and as a result you cannot install programs in the usual way. For a traditional web server with Apache, PHP and a database, we therefore usually choose Debian or Ubuntu. If you have requirements for certified software, we instead propose RHEL. We help you choose before the server is created. In fact, a switch afterwards requires a new installation, and therefore it pays to think first. In addition, we choose the disk size with a margin, since you can enlarge a disk without interruption but not shrink it.

Linux on Google Cloud: overview of Compute Engine, SQL and Cloud Run
Linux on Google Cloud: overview of Compute Engine, SQL and Cloud Run. Source: the Google Cloud website.

How we create a Linux server in Compute Engine

We create a new server with the gcloud compute instances create command or in the web console. We choose a region in Europe, often Finland or the Netherlands, since it gives low latency to Sweden. After that, we choose the machine type, disk and image. Small web servers often manage with an e2 machine, while databases need more memory. We would rather start a little smaller and scale up when needed.

We set up sign-in with OS Login. Then the SSH access is linked to the Google account, and as a result you avoid sharing keys between people. When someone leaves, it is enough to remove the account. In addition, we activate two-step verification for all administrators. We apply the firewall rules at network level, so that only the necessary ports are open.

Linux on Google Cloud: creating a server in Compute Engine with gcloud
Linux on Google Cloud: creating a server in Compute Engine with gcloud. Do you need help with Linux? Linux Service helps you in Stockholm, on site or remotely.

Monitoring, alerts and costs

Google Cloud has built-in monitoring with dashboards, alert rules and uptime checks. We set up alerts for processor, memory and disk, and also a check that calls the website every minute. If the site stops responding, you and we receive a message immediately. We collect the logs in Cloud Logging, so that we can search them even if the server has restarted.

The cost is often what surprises people most in the cloud. Therefore, we set up budget alerts already on the first day. We also go through disks and static addresses that remain unused, since they cost money every month. In addition, discounts for sustained use can lower the price considerably. In short, you get a server that both works and has a predictable price.

We also go through which services really need a server of their own. Sometimes a managed database or Cloud Run is a better choice, since Google then manages the operating system. This reduces the work with updates and security. At the same time, the price can become lower when the traffic varies a lot. We compare the options honestly and recommend what suits you.

Monitoring with dashboards, alert rules and uptime checks in Google Cloud
Monitoring with dashboards, alert rules and uptime checks in Google Cloud. Source: the Google Cloud console.

Moving existing servers to Google Cloud

Many clients want to move an existing Linux server to the cloud. Sometimes you can move the whole disk, but usually a new installation gives a better result. In that case, we build a new server, move the data and test. After that, we switch DNS, and the old server remains for a few days as a reserve. In addition, we lower the lifetime of the DNS record in advance, so that the switch takes effect quickly. In this way, the interruption is short and the risk small.

We also take care of certificates, email and backups in connection with the move. We like to keep backups in Cloud Storage, with a rule that deletes old copies automatically. This gives low cost and high security. Feel free to also read about Ubuntu Server, which is a common choice in Compute Engine.

Workflow for moving an existing Linux server to Google Cloud
Workflow for moving an existing Linux server to Google Cloud. Linux Service, part of Datorkirurgen AB, helps businesses in Solna and Sundbyberg with servers, scripts and databases.

Contact Linux Service about Linux on Google Cloud

Linux Service is part of Datorkirurgen AB and works with Linux in all major clouds: AWS, Azure, Google and Oracle. We set up, move and operate Linux on Google Cloud for businesses across Sweden. Google describes its images in the documentation for Compute Engine.

Therefore, contact us when you plan a move or when the costs have grown. We go through the environment and propose improvements. We work entirely remotely, but we are happy to meet you in Stockholm. Moreover, we can take over the operation when everything is in place.

Frequently asked questions about Linux on Google Cloud

Questions about Linux on Google Cloud

Linux on Google Cloud: security and monitoring

More about moves and support

Website developed by Datorkirurgen AB · Privacy policy