• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Search

Archives for May 2021

GCP Instance Scheduler

May 28, 2021

GCP recently added Instance Schedule to its console.

To configure, perform the following.

– Create an instance schedule.
– Add instance(s) to a schedule.
– If no errors, the service account has the correct permissions.

The service account used by Instance Schedule is owned by GCP and is not visible in the GCP console.

If service account has no permissions, the you must perform the following.

– Create a custom role with compute.instances.start and compute.instances.stop permissions.
– Add custom role to the service account.

Finally, validate instances are starting and stopping based on schedule.

Filed Under: Cloud Tagged With: configuration, gcp, instance schedule, service account

Generated by NetworkManager

May 27, 2021

If your /etc/resolv.conf keeps getting overwritten, take a look at /etc/NetworkManager/NetworkManager.conf. Set DNS to none.

[main]
dns=none

[main] dns=none

Filed Under: Linux Tagged With: dns, generated, networkmanager, overwritten, resolv.conf

GCP Compute Enable OS Login

May 27, 2021

If you have trouble logging in (SSH) to your GCP instance, you may have to enable OS Login.

gcloud compute instances add-metadata server-name \
--metadata enable-oslogin=TRUE \
--zone us-central1-c \
--project project-id

gcloud compute instances add-metadata server-name \ --metadata enable-oslogin=TRUE \ --zone us-central1-c \ --project project-id

When done, you can set it back to FALSE.

Filed Under: Cloud Tagged With: compute, gcloud, gcp, login, os, true

GCP Display Serial Port in Shell

May 26, 2021

How to display serial port in GCP Cloud Shell.

gcloud compute instances get-serial-port-output instance-name \
--zone=us-central1-a \
--project=your-project-id

gcloud compute instances get-serial-port-output instance-name \ --zone=us-central1-a \ --project=your-project-id

Filed Under: Cloud Tagged With: cloud shell, console, gcp, serial port, terminal

Winbind Fix

May 24, 2021

Here’s the process to restore Winbind.

Restore old config.

cp /etc/sssd/sssd.conf-xxxxxxx /etc/sssd/sssd.conf
cp /etc/krb5.conf-xxxxxxx /etc/krb5.conf

cp /etc/sssd/sssd.conf-xxxxxxx /etc/sssd/sssd.conf cp /etc/krb5.conf-xxxxxxx /etc/krb5.conf

Disable SSSD. Authconfig creates /etc/nswitch.conf.

authconfig --disablesssd --disablesssdauth --updateall

authconfig --disablesssd --disablesssdauth --updateall

Start Winbind.

service winbind start; service smb start; service nmb start

service winbind start; service smb start; service nmb start

Filed Under: Linux Tagged With: disable, restart, restore, winbind

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to Next Page »
  • Home
  • About
  • Search

Copyright © 2023