Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Cloud-Init 0.7.6

Updated on 2022-07-12 GMT+08:00
  1. Add the following key-value pair with an empty line above and below it:
    no_ssh_fingerprints: true
  2. set users to default.
    users:
         - default
  3. Modify the following fields:
    disable_root: True
    preserve_hostname: false
    syslog_fix_perms: root:root
  4. Configure ssh_pwauth. This parameter specifies whether to enable password login in SSH mode.
    ssh_pwauth: false
  5. Use the number sign (#) to comment out the following statements:
    mount_default_fields: [~, ~, 'auto', 'defaults', '0', '2']
    manual_cache_clean: true
  6. Add network statements.
    network:
      config: disabled
    datasource_list: [ OpenStack ]

    For SUSE 11 SP4, you also need to add growpart statements.

    growpart:
      mode: false
    NOTICE:

    For Debian 8.6, the following line does not need to be added:

    datasource_list: [ OpenStack ]
  7. Add the following statement after - final-message in cloud_final_modules:
    - power-state-change
  8. Check and modify the information in system info to make it consistent with the following content:
    system_info:
       distro: sles
       default_user:
          name: linux  //Username for OS login
          lock_passwd: True   //True indicates that login using a password is disabled. Note that some OSs use value 1 to disable the password login.
         gecos: redhat
    groups: [adm, audio, cdrom, dialout, dip, floppy, lxd, netdev, plugdev, sudo, video]   // (Optional) Add the user to other groups that have been configured in etc/group.
          sudo: ["ALL=(ALL) NOPASSWD:ALL"]  //Current user has all the root rights.
          shell: /bin/bash   //Execute shell in bash mode.
        paths:
          cloud_dir: /var/lib/cloud/
          templates_dir: /etc/cloud/templates/
        ssh_svcname: sshd

    In the preceding command, change the value of distro based on the OS, such as distro: sles, distro: rhel, distro: ubuntu, distro: debian, and dustro: fedora.

  9. Use the number sign (#) to comment out the following statement:
    ssh_genkeytypes: ['rsa', 'dsa']
  10. (Optional) For Debian 8.6, perform the following operations:
    1. Run the following commands to configure the OpenStack source:

      dpkg-reconf igure cloud-init

      Run the vim /etc/cloud/cloud.cfg.d/90_dpkg.cfg command to open the configuration file and check whether the items are correctly configured in the file.

      # to update this file, run dpkg-reconf igure cloud-init
      datasource_list: [ OpenStack ]
      ~
      ~
      ~

      If the configuration file content is consistent with the preceding command output, the configuration is successful.

  11. (Optional) For EulerOS 2.2 and EulerOS 2.3, perform the following operations:

    Check whether the line shown in the following figure has been commented out using the number sign (#) in the /etc/pam.d/su configuration file. If the line has been commented out, skip this step.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback