- Visão geral de serviço
- Primeiros passos
-
Guia de usuário
- Gerenciando imagens públicas
-
Criando uma imagem privada
- Introdução
- Criando uma imagem de disco do sistema a partir de um ECS de Windows
- Criando uma imagem de disco do sistema a partir de um Linux
- Criando uma imagem de disco do sistema Windows a partir de um arquivo externo de imagem
- Criando uma imagem de disco do sistema Linux a partir de um arquivo de imagem externo
- Criando uma imagem de disco do sistema BMS
- Criando uma imagem de disco de dados a partir de um ECS
- Criando uma imagem de disco de dados a partir de um arquivo de imagem externo
- Criando uma imagem de ECS inteiro a partir de um ECS
- Criando uma imagem de ECS inteiro a partir de um backup de CSBS
- Criando uma imagem de ECS inteiro a partir de um backup do CBR
- Criando uma imagem de disco do sistema Windows a partir de um arquivo ISO
- Criando uma imagem de disco do sistema Linux a partir de um arquivo ISO
- Importando rapidamente um arquivo de imagem
-
Gerenciando imagens privadas
- Modificando uma imagem
- Exportando lista de imagens
- Verificando a capacidade do disco de uma imagem
- Criando um a partir de uma imagem
- Excluindo imagens
-
Compartilhando imagens
- Visão geral
- Obtendo o ID do Projeto
- Compartilhando imagens especificadas
- Aceitando ou rejeitando imagens compartilhadas
- Rejeitando imagens aceitas
- Aceitando imagens rejeitadas
- Parando de compartilhar imagens
- Adicionando locatários que podem usar imagens compartilhadas
- Excluindo destinatários de imagem que podem usar imagens compartilhadas
- Replicando uma imagem compartilhada
- Importando uma imagem
- Exportando uma imagem
- Otimizando uma imagem privada de Windows
-
Otimizando uma imagem privada de Linux
- Processo de otimização
- Visualizando o tipo de virtualização de um ECS de Linux
- Desinstalando o driver PV de um ECS de Linux
- Alterando o identificador de disco no arquivo de configuração do GRUB para UUID
- Alterando o identificador de disco no arquivo fstab para UUID
- Instalando drivers nativos de KVM
- Limpando logs do sistema
- Criptografando imagens
- Replicando imagens Dentro de uma região
- Replicando imagens entre regiões
- Marcando uma imagem
- Auditando operações-chave
- Operações de Windows
- Operações de Linux
- Gerenciamento de permissões
- Histórico de alterações
-
Perguntas frequentes
-
Consultoria de imagem
- Como selecionar uma imagem?
- O que devo fazer se não conseguir encontrar uma imagem desejada?
- O que devo fazer se eu quiser configurar um ambiente OpenVPN ou PyTorch, mas nenhuma imagem pública contendo OpenVPN ou PyTorch estiver disponível?
- Como aumentar a cota de imagens?
- Quais são as diferenças entre imagens e backups?
- Posso adaptar uma imagem?
- Como migrar um ECS para uma região diferente de outra conta?
- Como fazer backup do status atual de um ECS para restauração no caso de uma falha do sistema?
- Como aplicar uma imagem privada a um ECS existente?
- Posso importar dados de uma imagem de disco de dados para um disco de dados?
- Posso usar imagens privadas de outros locatários?
-
Criação de imagens
- Perguntas frequentes sobre criação de imagens
- Perguntas frequentes sobre imagens do ECS completo
- Como usar um backup para criar um disco EVS ou ECS?
- Existe alguma diferença entre a imagem criada a partir de um backup do CSBS/CBR e aquela criada a partir de um ECSs?
- Por que não consigo encontrar uma imagem ISO quando quero usá-la para criar um ECS ou alterar o sistema operacional de um ECS?
- Como criar uma imagem de ECS completo usando um ECS que tem um volume estendido?
- Por que o Sysprep é necessário para criar uma imagem privada a partir de um ECS do Windows?
- O que devo fazer se um ECSs criado a partir de uma imagem do Windows não conseguir iniciar após a execução do Sysprep?
- Compartilhamento de imagens
-
SO
- Como escolher um SO?
- Como o BIOS é diferente de UEFI?
- Como excluir conexões de rede redundantes de um ECS do Windows?
- O que devo fazer se um ECS iniciar lentamente?
- O que devo fazer se o plug-in de redefinição de senha com um clique não for iniciado?
- Por que não consigo encontrar minha imagem privada quando quero usá-la para criar um ECSs ou alterar o sistema operacional de um ECSs?
-
Importação de imagem
- Posso usar imagens em formatos diferentes dos especificados?
- Quais são os impactos se eu não pré-configurar um ECS usado para criar uma imagem privada?
- Como importar um arquivo OVF ou OVA para a plataforma de nuvem?
- O que devo fazer se tiver configurado um sistema operacional ou tamanho de disco do sistema incorreto durante o registro de imagem privada usando um arquivo de imagem?
- O que devo fazer se o tamanho do disco do sistema em um arquivo de imagem VHD exceder o tamanho especificado no console de gerenciamento quando uso este arquivo para registrar uma imagem privada?
- Como importar imagens privadas existentes da HUAWEI CLOUD para uma região especificada?
-
Exportação de imagem
- Posso fazer download das minhas imagens privadas para um PC local?
- Posso usar a imagem de disco do sistema de um ECSs em um BMS depois de exportá-la da plataforma de nuvem?
- Por que o tamanho da imagem em um bucket do OBS é diferente do exibido no IMS?
- Posso baixar uma imagem pública para o meu PC local?
- Quais são as diferenças entre importação/exportação e importação/exportação rápida?
- O que devo fazer se a opção de exportação não estiver disponível para minha imagem?
-
Optimização de imagem
- Por que é necessário instalar e atualizar o VMTools para Windows?
- O que o sistema fará com um arquivo de imagem quando eu usar o arquivo para registrar uma imagem privada?
- Como configurar um ECS, BMS ou arquivo de imagem antes de usá-lo para criar uma imagem?
- O que devo fazer se um arquivo de imagem do Windows não estiver pré-configurado quando eu o usar para registrar uma imagem privada?
- O que devo fazer se um arquivo de imagem do Linux não estiver pré-configurado quando eu usá-lo para registrar uma imagem privada?
- Como habilitar a multifila de NIC para uma imagem?
- Como configurar um ECS para adquirir dinamicamente endereços IPv6?
- Como faço para que uma imagem de disco do sistema suporte a criação rápida de ECS?
- Como instalar os drivers Xen e KVM nativos?
- Replicação de imagem
- Exclusão de imagem
- Criptografia de imagem
-
Contas e permissões
- Como criar uma agência de IAM?
- O que devo fazer se as imagens privadas não puderem ser encontradas na página do Enterprise Project Management Service após a ativação do EPS?
- O que devo fazer se não for possível criar uma imagem a partir de um backup do CSBS ou BMS usando uma subconta com a permissão Allow_all após a ativação do EPS?
-
Cloud-Init
- Cloud-Init
- O que posso fazer com um ECS do Cloud-Init?
- O que devo fazer se a injeção da chave ou da senha usando o Cloud-Init falhar após a instalação do NetworkManager?
- Como instalar o growpart para o SUSE 11 SP4?
- How Do I Configure a Linux Private Image to Make It Automatically Expand Its Root Partition?
-
Criação de ECSs
- Posso alterar a imagem de um ECS comprado?
- Posso usar uma imagem privada para criar ECSs com especificações de hardware diferentes do ECS usado para criar a imagem privada?
- Posso especificar o tamanho do disco do sistema ao criar um ECS usando uma imagem?
- O que devo fazer se nenhuma partição for encontrada durante a inicialização de um ECS criado a partir de uma imagem privada importada?
- O que devo fazer se os discos de um ECSs criado a partir de uma imagem do CentOS não puderem ser encontrados?
- O que devo fazer se um ECSs criado a partir de uma imagem do Windows não conseguir iniciar quando eu tiver ativado a configuração automática durante o registro da imagem?
- O que devo fazer se ocorrer uma exceção quando eu iniciar um ECSs criado a partir de uma imagem usando o modo de inicialização UEFI?
- Cobrança
-
Consultoria de imagem
-
Referência de API
- Antes de começar
- Visão geral da API
- Chamada das API
- Introdução
-
As API do IMS
-
Imagem
- Consulta de imagens
- Atualização de informações de imagem
- Criação de uma imagem
- Importação rápida de um arquivo de imagem
- Criação de uma imagem de disco de dados com uso de um arquivo de imagem externo
- Criação de uma imagem de ECS inteiro
- Registração de uma imagem
- Exportação de uma imagem
- Consulta dos SO suportados por imagem
- Marcação de imagem
- Compartilhamento de imagens
- Replicação da imagem
- Cota de imagem
- Trabalhos de imagem
-
Imagem
-
As API OpenStack nativo
-
Imagem (As API OpenStack nativo)
- Consulta de imagens (API OpenStack nativo)
- Consulta de detalhes de uma imagem (API OpenStack nativo)
- Atualização de informações da imagem (API OpenStack nativo)
- Carregamento de uma imagem (API OpenStack nativo)
- Exclusão de uma imagem (API OpenStack nativo)
- Criação de metadados de imagem (API OpenStack nativo)
- Exclusão de uma imagem (API OpenStack nativo v1.1 - abandonada e não recomendada)
- Consulta dos metadados da imagem (API OpenStack nativo v1 - abandonada e não recomendada)
- Consulta de detalhes de imagens (API OpenStack nativo v1.1 - abandonada e não recomendada)
- Marcação de imagem (As API OpenStack nativo)
- Esquema da imagem (As API OpenStack nativo)
-
Compartilhamento de imagem (As API OpenStack nativo)
- Adição de um membro de imagem (API OpenStack nativo)
- Atualização do status de compartilhamento de imagens em lotes (API OpenStack nativo)
- Consulta de detalhes do membro da imagem (API OpenStack nativo)
- Consulta dos membros de uma imagem (API OpenStack nativo)
- Exclusão de um membro da imagem (API OpenStack nativa)
- Consulta de versão da API (API OpenStack nativo)
-
Imagem (As API OpenStack nativo)
- Exemplos
- Políticas de permissão e ações suportadas
- Parâmetros comuns
- Códigos de status
- Códigos de erro
- Histórico de alterações
-
Melhores práticas
- Visão geral
- Criação de uma imagem do Windows usando o VirtualBox e um arquivo ISO
- Criação de uma imagem do Linux usando o VirtualBox e um arquivo ISO
- Limpeza do espaço em disco de um ECS do Windows
- Conversão do formato da imagem
- Criação de uma imagem privada usando o Packer
- Configuração de um arquivo ISO como uma fonte de imagem local
- Migração de ECSs entre contas e regiões
- Migração de dados de serviço entre contas (discos de dados)
- No momento, o conteúdo não está disponível no seu idioma selecionado. Consulte a versão em inglês.
- What's New
- Function Overview
- SDK Reference
- Videos
- Glossary
-
More Documents
-
User Guide (ME-Abu Dhabi Region)
- Overview
- Using IAM to Grant Access to IMS
-
Creating a Private Image
- Introduction
- Creating a System Disk Image from a Windows ECS
- Creating a System Disk Image from a Linux ECS
- Creating a Windows System Disk Image from an External Image File
- Creating a Linux System Disk Image from an External Image File
- Creating a BMS System Disk Image
- Creating a Data Disk Image from an ECS
- Creating a Data Disk Image from an External Image File
- Creating a Full-ECS Image from an ECS
- Creating a Full-ECS Image from a CBR Backup
- Creating a Windows System Disk Image from an ISO File
- Creating a Linux System Disk Image from an ISO File
- Importing an Image
- Fast Import of an Image File
-
Managing Private Images
- Creating an ECS from an Image
- Modifying an Image
- Exporting an Image
- Exporting Image List
- Checking the Disk Capacity of an Image
- Deleting Images
-
Sharing Images
- Overview
- Obtaining the Account Name and Project Name
- Sharing Specified Images
- Accepting or Rejecting Shared Images
- Rejecting Accepted Images
- Accepting Rejected Images
- Stopping Sharing Images
- Adding Tenants Who Can Use Shared Images
- Deleting Image Recipients Who Can Use Shared Images
- Replicating a Shared Image
- Replicating Images
- Optimizing a Windows Private Image
-
Optimizing a Linux Private Image
- Optimization Process
- Checking Whether a Private Image Needs to be Optimized
- Uninstalling PV Drivers from a Linux ECS
- Changing Disk Identifiers in the GRUB File to UUID
- Changing Disk Identifiers in the fstab File to UUID
- Installing Native Xen and KVM Drivers
- Installing Native KVM Drivers
- Clearing System Logs
- Encrypting Images
- Converting the Image Format
- Windows Operations
- Linux Operations
- Managing Tags
- Managing Quotas
- Auditing Key Operations
-
FAQs
-
Image Consulting
- Basic Concepts
- How Do I Select an Image?
- What Do I Do If I Cannot Find a Desired Image?
- What Are the Differences Between Images and Backups?
- Can I Tailor an Image?
- How Can I Back Up the Current Status of an ECS for Restoration in the Case of a System Fault?
- How Can I Apply a Private Image to an Existing ECS?
- Can I Import Data from a Data Disk Image to a Data Disk?
- Can I Use Private Images of Other Accounts?
-
Image Creation
- General Creation FAQ
- Full-ECS Image FAQ
- Is There Any Difference Between the Image Created from a CSBS/CBR Backup and That Created from an ECS?
- Why Can't I Find an ISO Image When I Want to Use It to Create an ECS or Change the OS of an ECS?
- How Do I Create a Full-ECS Image Using an ECS That Has a Spanned Volume?
- Why Is Sysprep Required for Creating a Private Image from a Windows ECS?
- How Do I Handle the Startup Failure of a Windows ECS Created from a Windows Image Generalized by Sysprep?
- What Do I Do If I Cannot Create an Image in ZVHD2 Format Using an API?
- Image Sharing
- OS
-
Image Import
- Can I Use Images in Formats not Described in This Document?
- What Are the Impacts If I Do Not Pre-configure an ECS Used to Create a Private Image?
- How Do I Import an OVF or OVA File to the Cloud Platform?
- What Do I Do If I Chose the Wrong OS or System Disk Capacity When Registering a Private Image?
- Why Did My VHD Upload Fail? Why Does the System Say the System Disk in the VHD Image File Is Larger Than What I Specified on the Management Console?
-
Image Export
- Can I Download My Private Images to a Local PC?
- Can I Use the System Disk Image of an ECS on a BMS After I Export It from the Cloud Platform?
- Why Is the Image Size in an OBS Bucket Different from That Displayed in IMS?
- Can I Download a Public Image to My PC?
- What Are the Differences Between Import/Export and Fast Import/Export?
- Why the Export Option Is Unavailable for My Image?
-
Image Optimization
- Must I Install Guest OS Drivers on an ECS?
- Why Do I Need to Install and Update VirtIO Drivers for Windows?
- What Will the System Do to an Image File When I Use the File to Register a Private Image?
- How Do I Configure an ECS or an Image File Before I Use It to Create an Image?
- What Do I Do If a Windows Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- What Do I Do If a Linux Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- How Do I Enable NIC Multi-Queue for an Image?
- How Do I Configure an ECS to Use DHCPv6?
- How Do I Make a System Disk Image Support Fast ECS Creation?
- Why Did I Fail to Install Guest OS Drivers on a Windows ECS?
- How Do I Install Native Xen and KVM Drivers?
- Image Replication
- Image Deletion
- Image Encryption
- Accounts and Permissions
- Cloud-Init
-
ECS Creation
- Can I Change the Image of a Purchased ECS?
- Can I Change the Specifications Defined by a Private Image When I Use the Image to Create an ECS?
- Can I Specify the System Disk Capacity When I Create an ECS Using an Image?
- What Do I Do If a Partition Is Not Found During the Startup of an ECS Created from an Imported Private Image?
- What Do I Do If the Disks of a CentOS ECS Created from an Image Cannot Be Found?
- What Do I Do If I Enabled Automatic Configuration During Image Registration for an ECS Created from a Windows Image and Now It Won't Start?
- What Do I Do If an Exception Occurs When I Start an ECS Created from an Image Using UEFI Boot?
-
Driver Installation
- Must I Install Guest OS Drivers on an ECS?
- Why Do I Need to Install and Update VirtIO Drivers for Windows?
- Why Did I Fail to Install Guest OS Drivers on a Windows ECS?
- How Do I Install VirtIO Drivers in Windows?
- How Do I Install Native KVM Drivers in Linux?
- How Do I Install Native Xen and KVM Drivers?
- Image Tags
- Billing
-
Image Consulting
-
API Reference (ME-Abu Dhabi Region)
- Before You Start
- API Overview
- Calling APIs
- Getting Started
- IMS APIs
-
Native OpenStack APIs
-
Image (Native OpenStack APIs)
- Querying Images (Native OpenStack API)
- Querying Image Details (Native OpenStack API)
- Updating Image Information (Native OpenStack API)
- Uploading an Image (Native OpenStack API)
- Deleting an Image (Native OpenStack API)
- Creating Image Metadata (Native OpenStack API)
- Deleting an Image (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Querying Image Metadata (Native OpenStack API v1 - Abandoned and Not Recommended)
- Querying Image Details (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Image Schema (Native OpenStack APIs)
- Image Sharing (Native OpenStack APIs)
- API Version Query (Native OpenStack API)
-
Image (Native OpenStack APIs)
- Examples
- Permission Policies and Supported Actions
- Common Parameters
- Status Codes
- Error Codes
- Change History
-
User Guide (Paris Regions)
- Overview
- Using IAM to Grant Access to IMS
-
Creating a Private Image
- Introduction
- Creating a System Disk Image from a Windows ECS
- Creating a System Disk Image from a Linux ECS
- Creating a Windows System Disk Image from an External Image File
- Creating a Linux System Disk Image from an External Image File
- Creating a Data Disk Image from an External Image File
- Creating a Full-ECS Image from an ECS
- Creating a Full-ECS Image from a CSBS Backup
- Creating a Full-ECS Image from a CBR Backup
- Creating a Windows System Disk Image from an ISO File
- Creating a Linux System Disk Image from an ISO File
- Importing an Image
- Fast Import of an Image File
-
Managing Private Images
- Creating an ECS from an Image
- Modifying an Image
- Exporting an Image
- Exporting Image List
- Checking the Disk Capacity of an Image
- Deleting Images
- Sharing Images
- Replicating Images Within a Region
- Optimizing a Windows Private Image
-
Optimizing a Linux Private Image
- Optimization Process
- Checking Whether a Private Image Needs to be Optimized
- Uninstalling PV Drivers from a Linux ECS
- Changing Disk Identifiers in the GRUB File to UUID
- Changing Disk Identifiers in the fstab File to UUID
- Installing Native Xen and KVM Drivers
- Installing Native KVM Drivers
- Clearing System Logs
- Encrypting Images
- Converting the Image Format
- Windows Operations
- Linux Operations
- Managing Tags
- Managing Quotas
- Auditing Key Operations
-
FAQs
-
Image Consulting
- Basic Concepts
- How Do I Select an Image?
- What Do I Do If I Cannot Find a Desired Image?
- What Are the Differences Between Images and Backups?
- Can I Tailor an Image?
- How Can I Back Up the Current Status of an ECS for Restoration in the Case of a System Fault?
- How Can I Apply a Private Image to an Existing ECS?
- Can I Import Data from a Data Disk Image to a Data Disk?
- Can I Use Private Images of Other Accounts?
- End-of-Support for OSs
-
Image Creation
- General Creation FAQ
- Full-ECS Image FAQ
- How Can I Use a Backup to Create an EVS Disk or ECS?
- Is There Any Difference Between the Image Created from a CSBS/CBR Backup and That Created from an ECS?
- Why Can't I Find an ISO Image When I Want to Use It to Create an ECS or Change the OS of an ECS?
- How Do I Create a Full-ECS Image Using an ECS That Has a Spanned Volume?
- Why Is Sysprep Required for Creating a Private Image from a Windows ECS?
- How Do I Handle the Startup Failure of a Windows ECS Created from a Windows Image Generalized by Sysprep?
- What Do I Do If I Cannot Create an Image in ZVHD2 Format Using an API?
- Image Sharing
-
OS
- How Do I Select an OS?
- How Is BIOS Different from UEFI?
- How Do I Delete Redundant Network Connections from a Windows ECS?
- What Do I Do If an ECS Starts Slowly?
- What Do I Do If a Windows 7 ECS Equipped with an Intel 82599 NIC Reports an Error in SR-IOV Scenarios?
- Why Can't I Find My Private Image When I Want to Use It to Create an ECS or Change the OS of an ECS?
-
Image Import
- Can I Use Images in Formats not Described in This Document?
- What Are the Impacts If I Do Not Pre-configure an ECS Used to Create a Private Image?
- What Do I Do If I Chose the Wrong OS or System Disk Capacity When Registering a Private Image?
- Why Did My VHD Upload Fail? Why Does the System Say the System Disk in the VHD Image File Is Larger Than What I Specified on the Management Console?
-
Image Export
- Can I Download My Private Images to a Local PC?
- Can I Use the System Disk Image of an ECS on a BMS After I Export It from the Cloud Platform?
- Why Is the Image Size in an OBS Bucket Different from That Displayed in IMS?
- Can I Download a Public Image to My PC?
- What Are the Differences Between Import/Export and Fast Import/Export?
- Why the Export Option Is Unavailable for My Image?
-
Image Optimization
- Must I Install Guest OS Drivers on an ECS?
- Why Do I Need to Install and Update VirtIO Drivers for Windows?
- What Will the System Do to an Image File When I Use the File to Register a Private Image?
- How Do I Configure an ECS, a BMS, or an Image File Before I Use It to Create an Image?
- What Do I Do If a Windows Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- What Do I Do If a Linux Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- How Do I Enable NIC Multi-Queue for an Image?
- How Do I Make a System Disk Image Support Fast ECS Creation?
- Why Did I Fail to Install Guest OS Drivers on a Windows ECS?
- How Do I Install Native Xen and KVM Drivers?
- Image Replication
- Image Deletion
- Image Encryption
- Accounts and Permissions
- Cloud-Init
-
ECS Creation
- Can I Change the Image of a Purchased ECS?
- Can I Change the Specifications Defined by a Private Image When I Use the Image to Create an ECS?
- Can I Specify the System Disk Capacity When I Create an ECS Using an Image?
- What Do I Do If a Partition Is Not Found During the Startup of an ECS Created from an Imported Private Image?
- What Do I Do If the Disks of a CentOS ECS Created from an Image Cannot Be Found?
- What Do I Do If I Enabled Automatic Configuration During Image Registration for an ECS Created from a Windows Image and Now It Won't Start?
- What Do I Do If an Exception Occurs When I Start an ECS Created from an Image Using UEFI Boot?
-
Driver Installation
- Must I Install Guest OS Drivers on an ECS?
- Why Do I Need to Install and Update VirtIO Drivers for Windows?
- Why Did I Fail to Install Guest OS Drivers on a Windows ECS?
- How Do I Install VirtIO Drivers in Windows?
- How Do I Install Native KVM Drivers in Linux?
- How Do I Install Native Xen and KVM Drivers?
- Image Tags
-
Image Consulting
-
API Reference (Paris Regions)
- Before You Start
- API Overview
- Calling APIs
- Getting Started
- IMS APIs
-
Native OpenStack APIs
-
Image (Native OpenStack APIs)
- Querying Images (Native OpenStack API)
- Querying Image Details (Native OpenStack API)
- Updating Image Information (Native OpenStack API)
- Uploading an Image (Native OpenStack API)
- Deleting an Image (Native OpenStack API)
- Creating Image Metadata (Native OpenStack API)
- Deleting an Image (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Querying Image Metadata (Native OpenStack API v1 - Abandoned and Not Recommended)
- Querying Image Details (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Image Tagging (Native OpenStack APIs)
- Image Schema (Native OpenStack APIs)
- Image Sharing (Native OpenStack APIs)
- API Version Query (Native OpenStack API)
-
Image (Native OpenStack APIs)
- Examples
- API Actions
- Common Parameters
- Status Codes
- Error Codes
- Change History
-
User Guide (Kuala Lumpur Region)
- Overview
- Using IAM to Grant Access to IMS
-
Creating a Private Image
- Introduction
- Creating a System Disk Image from a Windows ECS
- Creating a System Disk Image from a Linux ECS
- Creating a Windows System Disk Image from an External Image File
- Creating a Linux System Disk Image from an External Image File
- Creating a BMS System Disk Image
- Creating a Data Disk Image from an ECS
- Creating a Data Disk Image from an External Image File
- Creating a Full-ECS Image from an ECS
- Creating a Full-ECS Image from a CBR Backup
- Creating a Windows System Disk Image from an ISO File
- Creating a Linux System Disk Image from an ISO File
- Importing an Image
- Fast Import of an Image File
-
Managing Private Images
- Creating an ECS from an Image
- Modifying an Image
- Exporting an Image
- Exporting Image List
- Checking the Disk Capacity of an Image
- Deleting Images
-
Sharing Images
- Overview
- Obtaining the Account Name and Project Name
- Sharing Specified Images
- Accepting or Rejecting Shared Images
- Rejecting Accepted Images
- Accepting Rejected Images
- Stopping Sharing Images
- Adding Tenants Who Can Use Shared Images
- Deleting Image Recipients Who Can Use Shared Images
- Replicating a Shared Image
- Replicating Images Within a Region
- Optimizing a Windows Private Image
-
Optimizing a Linux Private Image
- Optimization Process
- Checking Whether a Private Image Needs to be Optimized
- Uninstalling PV Drivers from a Linux ECS
- Changing Disk Identifiers in the GRUB File to UUID
- Changing Disk Identifiers in the fstab File to UUID
- Installing Native Xen and KVM Drivers
- Installing Native KVM Drivers
- Clearing System Logs
- Encrypting Images
- Converting the Image Format
- Windows Operations
- Linux Operations
- Managing Tags
- Managing Quotas
- Auditing Key Operations
-
FAQs
-
Image Consulting
- Basic Concepts
- How Do I Select an Image?
- What Do I Do If I Cannot Find a Desired Image?
- What Are the Differences Between Images and Backups?
- Can I Tailor an Image?
- How Can I Back Up the Current Status of an ECS for Restoration in the Case of a System Fault?
- How Can I Apply a Private Image to an Existing ECS?
- Can I Import Data from a Data Disk Image to a Data Disk?
- Can I Use Private Images of Other Accounts?
- End-of-Support for OSs
-
Image Creation
- General Creation FAQ
- Full-ECS Image FAQ
- Is There Any Difference Between the Image Created from a CSBS/CBR Backup and That Created from an ECS?
- Why Can't I Find an ISO Image When I Want to Use It to Create an ECS or Change the OS of an ECS?
- How Do I Create a Full-ECS Image Using an ECS That Has a Spanned Volume?
- Why Is Sysprep Required for Creating a Private Image from a Windows ECS?
- How Do I Handle the Startup Failure of a Windows ECS Created from a Windows Image Generalized by Sysprep?
- What Do I Do If I Cannot Create an Image in ZVHD2 Format Using an API?
- Image Sharing
- OS
-
Image Import
- Can I Use Images in Formats not Described in This Document?
- What Are the Impacts If I Do Not Pre-configure an ECS Used to Create a Private Image?
- How Do I Import an OVF or OVA File to the Cloud Platform?
- What Do I Do If I Chose the Wrong OS or System Disk Capacity When Registering a Private Image?
- Why Did My VHD Upload Fail? Why Does the System Say the System Disk in the VHD Image File Is Larger Than What I Specified on the Management Console?
-
Image Export
- Can I Download My Private Images to a Local PC?
- Can I Use the System Disk Image of an ECS on a BMS After I Export It from the Cloud Platform?
- Why Is the Image Size in an OBS Bucket Different from That Displayed in IMS?
- Can I Download a Public Image to My PC?
- What Are the Differences Between Import/Export and Fast Import/Export?
- Why the Export Option Is Unavailable for My Image?
-
Image Optimization
- Must I Install Guest OS Drivers on an ECS?
- Why Do I Need to Install and Update VirtIO Drivers for Windows?
- What Will the System Do to an Image File When I Use the File to Register a Private Image?
- How Do I Configure an ECS or an Image File Before I Use It to Create an Image?
- What Do I Do If a Windows Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- What Do I Do If a Linux Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- How Do I Enable NIC Multi-Queue for an Image?
- How Do I Configure an ECS to Use DHCPv6?
- How Do I Make a System Disk Image Support Fast ECS Creation?
- Why Did I Fail to Install Guest OS Drivers on a Windows ECS?
- How Do I Install Native Xen and KVM Drivers?
- Image Replication
- Image Deletion
- Image Encryption
- Accounts and Permissions
- Cloud-Init
-
ECS Creation
- Can I Change the Image of a Purchased ECS?
- Can I Change the Specifications Defined by a Private Image When I Use the Image to Create an ECS?
- Can I Specify the System Disk Capacity When I Create an ECS Using an Image?
- What Do I Do If a Partition Is Not Found During the Startup of an ECS Created from an Imported Private Image?
- What Do I Do If the Disks of a CentOS ECS Created from an Image Cannot Be Found?
- What Do I Do If I Enabled Automatic Configuration During Image Registration for an ECS Created from a Windows Image and Now It Won't Start?
- What Do I Do If an Exception Occurs When I Start an ECS Created from an Image Using UEFI Boot?
-
Driver Installation
- Must I Install Guest OS Drivers on an ECS?
- Why Do I Need to Install and Update VirtIO Drivers for Windows?
- Why Did I Fail to Install Guest OS Drivers on a Windows ECS?
- How Do I Install VirtIO Drivers in Windows?
- How Do I Install Native KVM Drivers in Linux?
- How Do I Install Native Xen and KVM Drivers?
- Image Tags
-
Image Consulting
-
API Reference (Kuala Lumpur Region)
- Before You Start
- API Overview
- Calling APIs
- Getting Started
- IMS APIs
-
Native OpenStack APIs
-
Image (Native OpenStack APIs)
- Querying Images (Native OpenStack API)
- Querying Image Details (Native OpenStack API)
- Updating Image Information (Native OpenStack API)
- Uploading an Image (Native OpenStack API)
- Deleting an Image (Native OpenStack API)
- Creating Image Metadata (Native OpenStack API)
- Deleting an Image (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Querying Image Metadata (Native OpenStack API v1 - Abandoned and Not Recommended)
- Querying Image Details (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Image Schema (Native OpenStack APIs)
- Image Sharing (Native OpenStack APIs)
- API Version Query (Native OpenStack API)
-
Image (Native OpenStack APIs)
- Examples
- Permission Policies and Supported Actions
- Common Parameters
- Status Codes
- Error Codes
- Change History
-
User Guide (Ankara Region)
- Overview
- Using IAM to Grant Access to IMS
-
Creating a Private Image
- Introduction
- Creating a System Disk Image from a Windows ECS
- Creating a System Disk Image from a Linux ECS
- Creating a Windows System Disk Image from an External Image File
- Creating a Linux System Disk Image from an External Image File
- Creating a Data Disk Image from an ECS
- Creating a Data Disk Image from an External Image File
- Creating a Full-ECS Image from an ECS
- Creating a Full-ECS Image from a CSBS Backup
- Creating a Full-ECS Image from a CBR Backup
- Creating a Windows System Disk Image from an ISO File
- Creating a Linux System Disk Image from an ISO File
- Fast Import of an Image File
-
Managing Private Images
- Creating an ECS from an Image
- Modifying an Image
- Exporting an Image
- Exporting Image List
- Checking the Disk Capacity of an Image
- Deleting Images
- Sharing Images
- Replicating Images
- Optimizing a Windows Private Image
-
Optimizing a Linux Private Image
- Optimization Process
- Checking Whether a Private Image Needs to be Optimized
- Uninstalling PV Drivers from a Linux ECS
- Changing Disk Identifiers in the GRUB File to UUID
- Changing Disk Identifiers in the fstab File to UUID
- Installing Native Xen and KVM Drivers
- Installing Native KVM Drivers
- Clearing System Logs
- Converting the Image Format
- Windows Operations
- Linux Operations
- Managing Tags
- Managing Quotas
- Auditing Key Operations
-
FAQs
-
Image Consulting
- How Do I Select an Image?
- What Are the Differences Between Images and Backups?
- Can I Tailor an Image?
- How Can I Back Up the Current Status of an ECS for Restoration in the Case of a System Fault?
- How Can I Apply a Private Image to an Existing ECS?
- Can I Import Data from a Data Disk Image to a Data Disk?
- Can I Use Private Images of Other Accounts?
-
Image Creation
- General Creation FAQ
- Full-ECS Image FAQ
- Is There Any Difference Between the Image Created from a CSBS/CBR Backup and That Created from an ECS?
- Why Can't I Find an ISO Image When I Want to Use It to Create an ECS or Change the OS of an ECS?
- How Do I Create a Full-ECS Image Using an ECS That Has a Spanned Volume?
- Why Is Sysprep Required for Creating a Private Image from a Windows ECS?
- How Do I Handle the Startup Failure of a Windows ECS Created from a Windows Image Generalized by Sysprep?
- What Do I Do If I Cannot Create an Image in ZVHD2 Format Using an API?
- Image Sharing
-
OS
- How Do I Select an OS?
- How Is BIOS Different from UEFI?
- How Do I Delete Redundant Network Connections from a Windows ECS?
- What Do I Do If an ECS Starts Slowly?
- What Do I Do If the One-Click Password Resetting Plug-In Failed to Start?
- What Do I Do If a Windows 7 ECS Equipped with an Intel 82599 NIC Reports an Error in SR-IOV Scenarios?
- Why Can't I Find My Private Image When I Want to Use It to Create an ECS or Change the OS of an ECS?
-
Image Import
- Can I Use Images in Formats not Described in This Document?
- What Are the Impacts If I Do Not Pre-configure an ECS Used to Create a Private Image?
- What Do I Do If I Chose the Wrong OS or System Disk Capacity When Registering a Private Image?
- Why Did My VHD Upload Fail? Why Does the System Say the System Disk in the VHD Image File Is Larger Than What I Specified on the Management Console?
-
Image Export
- Can I Download My Private Images to a Local PC?
- Can I Use the System Disk Image of an ECS on a BMS After I Export It from the Cloud Platform?
- Why Is the Image Size in an OBS Bucket Different from That Displayed in IMS?
- Can I Download a Public Image to My PC?
- Why the Export Option Is Unavailable for My Image?
-
Image Optimization
- Must I Install Guest OS Drivers on an ECS?
- Why Do I Need to Install and Update VirtIO Drivers for Windows?
- What Will the System Do to an Image File When I Use the File to Register a Private Image?
- How Do I Configure an ECS or an Image File Before I Use It to Create an Image?
- What Do I Do If a Windows Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- What Do I Do If a Linux Image File Is Not Pre-Configured When I Use It to Register a Private Image?
- How Do I Enable NIC Multi-Queue for an Image?
- How Do I Configure an ECS to Use DHCPv6?
- How Do I Make a System Disk Image Support Fast ECS Creation?
- Why Did I Fail to Install Guest OS Drivers on a Windows ECS?
- How Do I Install Native Xen and KVM Drivers?
- Image Replication
- Image Deletion
- Image Encryption
- Cloud-Init
-
ECS Creation
- Can I Change the Image of a Purchased ECS?
- Can I Change the Specifications Defined by a Private Image When I Use the Image to Create an ECS?
- Can I Specify the System Disk Capacity When I Create an ECS Using an Image?
- What Do I Do If a Partition Is Not Found During the Startup of an ECS Created from an Imported Private Image?
- What Do I Do If the Disks of a CentOS ECS Created from an Image Cannot Be Found?
- What Do I Do If I Enabled Automatic Configuration During Image Registration for an ECS Created from a Windows Image and Now It Won't Start?
- What Do I Do If an Exception Occurs When I Start an ECS Created from an Image Using UEFI Boot?
-
Driver Installation
- Must I Install Guest OS Drivers on an ECS?
- Why Do I Need to Install and Update VirtIO Drivers for Windows?
- Why Did I Fail to Install Guest OS Drivers on a Windows ECS?
- How Do I Install VirtIO Drivers in Windows?
- How Do I Install Native KVM Drivers in Linux?
- How Do I Install Native Xen and KVM Drivers?
- Image Tags
-
Image Consulting
-
API Reference (Ankara Region)
- Before You Start
- API Overview
- Calling APIs
- Getting Started
- IMS APIs
-
Native OpenStack APIs
-
Image (Native OpenStack APIs)
- Querying Images (Native OpenStack API)
- Querying Image Details (Native OpenStack API)
- Updating Image Information (Native OpenStack API)
- Uploading an Image (Native OpenStack API)
- Deleting an Image (Native OpenStack API)
- Creating Image Metadata (Native OpenStack API)
- Deleting an Image (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Querying Image Metadata (Native OpenStack API v1 - Abandoned and Not Recommended)
- Querying Image Details (Native OpenStack API v1.1 - Abandoned and Not Recommended)
- Image Schema (Native OpenStack APIs)
- Image Sharing (Native OpenStack APIs)
- API Version Query (Native OpenStack API)
-
Image (Native OpenStack APIs)
- Examples
- Permission Policies and Supported Actions
- Common Parameters
- Status Codes
- Error Codes
- Change History
-
User Guide (ME-Abu Dhabi Region)
Copiado.
Instalando Cloud-Init
Cenários
Para garantir que você possa usar a função de injeção de dados do usuário para injetar informações personalizadas iniciais nos ECS criados a partir de uma imagem privada (como definir a senha de login do ECS), instale o Cloud-Init no usado ECS para criar a imagem.
- Você precisa baixar Cloud-Init de cujo site oficial. Portanto, você deve vincular um EIP ao ECS.
- Se Cloud-Init não estiver instalado, não será possível configurar um ECS. Como resultado, você só pode usar a senha no arquivo de imagem para fazer login nos criados ECSs.
- Por padrão, os ECS criados a partir de uma imagem pública têm o Cloud-Init instalado. Não é necessário instalar ou configurar o Cloud-Init nesses ECS.
- Para os criados a partir de arquivos de imagem externos, instale e configure o Cloud-Init executando as operações desta seção. Para saber como configurar o Cloud-Init, consulte Configurando Cloud-Init.
Pré-requisitos
- Um EIP foi vinculado ao ECS.
- Você fez login no ECS.
- O modo de ECS obtenção do endereço IP do é DHCP.
Procedimento
- Verifique se o Cloud-Init foi instalado.
Para mais detalhes, consulte Verifique se o Cloud-Init foi instalado.
- Install Cloud-Init.
Você pode instalar o Cloud-Init de qualquer uma das seguintes maneiras: (Recomendado) Instale o Cloud-Init usando o pacote oficial de instalação, Instale o Cloud-Init usando o pacote de código-fonte oficial e o pip, e Instale o Cloud-Init usando o código-fonte oficial do GitHub.
Verifique se o Cloud-Init foi instalado
Execute as operações fornecidas aqui para verificar se o Cloud-Init foi instalado.
Os métodos de verificar se o Cloud-Init está instalado variam dependendo dos SO. Tome o CentOS 6 como um exemplo. Execute o seguinte comando para verificar se o Cloud-Init está instalado:
rpm -qa |grep cloud-init
Se informações semelhantes às seguintes forem exibidas, o Cloud-Init foi instalado:
cloud-init-0.7.5-10.el6.centos.2.x86_64
- Verifique se deve usar o certificado no SO do ECS. Se o certificado não for mais usado, exclua-o.
- Se o certificado estiver armazenado em um diretório do usuário root, por exemplo, /$path/$to/$root/.ssh/authorized_keys, execute os seguintes comandos:
cd /root/.ssh
rm authorized_keys
- Se o certificado não estiver armazenado em um diretório do usuário root, por exemplo, /$path/$to/$none-root/.ssh/authorized_keys, execute os seguintes comandos:
cd /home/centos/.ssh
rm authorized_keys
- Se o certificado estiver armazenado em um diretório do usuário root, por exemplo, /$path/$to/$root/.ssh/authorized_keys, execute os seguintes comandos:
- Execute o comando a seguir para excluir o cache gerado pelo Cloud-Init e garantir que o criado ECS a partir da imagem privada possa ser logado usando o certificado:

Não reinicie o ECS depois de executar a configuração. Caso contrário, você precisará configurá-lo novamente.
(Recomendado) Instale o Cloud-Init usando o pacote oficial de instalação
O método de instalação do Cloud-Init em um ECS varia dependendo do SO. Execute as operações de instalação como usuário root.
A seguir, descrevemos como instalar o Cloud-Init em um ECS executando SUSE Linux, CentOS, , Fedora, Debian e Ubuntu. Para outros tipos de SO, instale o tipo necessário de Cloud-Init. Por exemplo, você precisa instalar o coreos-cloudinit nos ECS executando o CoreOS.
- SUSE-Linux
Caminhos para obter o pacote de instalação Cloud-Init para SUSE Linux
https://ftp5.gwdg.de/pub/opensuse/repositories/Cloud:/Tools/
http://download.opensuse.org/repositories/Cloud:/Tools/
Selecione o pacote de instalação de repo necessário nos caminhos fornecidos.
Tome o SUSE Enterprise Linux Server 12 como um exemplo. Execute as seguintes etapas para instalar o Cloud-Init:
- Faça login no ECS usado para criar uma imagem privada do Linux.
- Execute o seguinte comando para instalar a origem de instalação de rede do SUSE Enterprise Linux Server 12:
zypper ar https://ftp5.gwdg.de/pub/opensuse/repositories/Cloud:/Tools/SLE_12_SP3/Cloud:Tools.repo
- Execute o seguinte comando para atualizar a fonte de instalação de rede:
- Execute o seguinte comando para instalar o Cloud-Init:
- Execute os seguintes comandos para permitir que o Cloud-Init seja iniciado automaticamente na inicialização do sistema:
- SUSE 11
chkconfig cloud-init-local on; chkconfig cloud-init on; chkconfig cloud-config on; chkconfig cloud-final on
service cloud-init-local status; service cloud-init status; service cloud-config status; service cloud-final status
- SUSE 12 e openSUSE 12/13/42
systemctl enable cloud-init-local.service cloud-init.service cloud-config.service cloud-final.service
systemctl status cloud-init-local.service cloud-init.service cloud-config.service cloud-final.service
Para SUSE e openSUSE, execute as seguintes etapas para desativar a alteração dinâmica do nome do ECS:
- Execute o seguinte comando para abrir o arquivo dhcp usando editor vi:
vi etc/sysconfig/network/dhcp
- Altere o valor de DHCLIENT_SET_HOSTNAME no arquivo dhcp para no.
- SUSE 11
- CentOS
Tabela 1 lista os caminhos de instalação do Cloud-Init para o CentOS. Selecione o pacote de instalação necessário nos seguintes endereços.
Tabela 1 Endereços do pacote de instalação Cloud-Init OS Type
Version
How to Obtain
CentOS
6 32-bit
6 64-bit
https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/
7 64-bit
https://archives.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/
Execute os seguintes comandos para instalar o Cloud-Init:
yum install Cloud-Init pacote de instalação endereço/epel-release-x-y.noarch.rpm
yum install cloud-init
O endereço do pacote de instalação do Cloud-Init indica o endereço do pacote de instalação do Cloud-Init epel-release e x-y indica a versão do Cloud-Init epel-release exigida pelo SO atual. Substitua-os pelos valores reais de acordo com Tabela 1.
- Tome como exemplo o CentOS 6 64-bit. Se a versão for 6.8, o comando é o seguinte:
yum install https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm
- Tome como exemplo o CentOS 7 64-bit. Se a versão for 7.14, o comando é o seguinte:
yum install https://archives.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm
- Tome como exemplo o CentOS 6 64-bit. Se a versão for 6.8, o comando é o seguinte:
- Fedora
Antes de instalar o Cloud-Init, verifique se o endereço de origem da instalação de rede foi configurado para o SO, verificando se o arquivo /etc/yum.repo.d/fedora.repo contém o endereço de origem da instalação do pacote de software. Se o arquivo não contiver o endereço, configure o endereço seguindo as instruções no site oficial do Fedora.
Execute o seguinte comando para instalar o Cloud-Init:
yum install cloud-init
- Debian e Ubuntu
Antes de instalar o Cloud-Init, certifique-se de que o endereço de origem de instalação de rede foi configurado para o SO, verificando se o arquivo /etc/apt/sources.list contém o endereço de origem de instalação do pacote de software. Se o arquivo não contiver o endereço, configure o endereço seguindo as instruções no site oficial do Debian ou Ubuntu.
Execute os seguintes comandos para instalar o Cloud-Init:
apt-get update
apt-get install cloud-init
Instale o Cloud-Init usando o pacote de código-fonte oficial e o pip
As operações a seguir usam o Cloud-Init 0.7.9 como um exemplo para descrever como instalar o Cloud-Init.
- Faça o download do pacote de código fonte cloud-init-0.7.9.tar.gz (recomenda-se a versão 0.7.9) e faça o upload para o diretório /home/ do ECS.
Baixe cloud-init-0.7.9.tar.gz a partir do seguinte caminho:
https://launchpad.net/cloud-init/trunk/0.7.9/+download/cloud-init-0.7.9.tar.gz
- Crie um arquivo pip.conf no diretório ~/.pip/ e edite o seguinte conteúdo:
Se o diretório ~/.pip/ não existir, execute o comando mkdir ~/.pip para criá-lo.
[global] index-url = https://<$mirror>/simple/ trusted-host = <$mirror>
Substitua <$mirror> com uma fonte PyPI de rede pública.
Fonte PyPI da rede pública: https://pypi.python.org/
- Execute o seguinte comando para instalar o pacote de código fonte Cloud-Init baixado (selecione --upgrade conforme necessário durante a instalação):
pip install [--upgrade] /home/cloud-init-0.7.9.tar.gz
- Execute o comando cloud-init -v. O Cloud-Init será instalado com sucesso se as seguintes informações forem exibidas:
cloud-init 0.7.9
- Ative o Cloud-Init para iniciar automaticamente na inicialização do sistema.
- Se o SO usar o SysVinit para gerenciar o início automático dos serviços, execute os seguintes comandos:
chkconfig --add cloud-init-local; chkconfig --add cloud-init; chkconfig --add cloud-config; chkconfig --add cloud-final
chkconfig cloud-init-local on; chkconfig cloud-init on; chkconfig cloud-config on; chkconfig cloud-final on
service cloud-init-local status; service cloud-init status; service cloud-config status; service cloud-final status
- Se o SO usar o Systemd para gerenciar o início automático dos serviços, execute os seguintes comandos:
systemctl enable cloud-init-local.service cloud-init.service cloud-config.service cloud-final.service
systemctl status cloud-init-local.service cloud-init.service cloud-config.service cloud-final.service
- Se o SO usar o SysVinit para gerenciar o início automático dos serviços, execute os seguintes comandos:

Se você instalar o Cloud-Init usando o pacote de código-fonte oficial e o pip, preste atenção ao seguinte:
- Adicione o usuário syslog ao grupo adm durante a instalação. Se o usuário syslog existir, adicione-o ao grupo adm. Para alguns SO (como CentOS e SUSE), o usuário syslog pode não existir. Execute os seguintes comandos para criar o usuário syslog e adicioná-lo ao grupo adm:
useradd syslog
groupadd adm
usermod -g adm syslog
- Altere o valor de distro em system_info no arquivo /etc/cloud/cloud.cfg com base na versão do SO, como distro: ubuntu, distro: sles, distro: debian, e distro: fedora.
Instale o Cloud-Init usando o código-fonte oficial do GitHub
Você pode obter o código-fonte do Cloud-Init da GitHub em https://github.com/canonical/cloud-init/
- Execute os seguintes comandos para baixar o pacote de código-fonte e copiá-lo para a pasta /tmp/CLOUD-INIT:
Cloud-Init 0.7.6: https://github.com/canonical/cloud-init/archive/refs/tags/0.7.6.zip
Cloud-Init 0.7.9: https://github.com/canonical/cloud-init/archive/refs/tags/0.7.9.zip
Todas as versões https://github.com/canonical/cloud-init/releases
wget https://github.com/canonical/cloud-init/archive/refs/tags/0.7.6.zip
mkdir /tmp/CLOUD-INIT
cp cloud-init-0.7.6.zip /tmp/CLOUD-INIT
cd /tmp/CLOUD-INIT
- Execute o seguinte comando para descompactar o pacote:
- Execute o seguinte comando para entrar na pasta cloud-init-0.7.6:
cd cloud-init-0.7.6
- Instale Cloud-Init. Os comandos variam dependendo do tipo de SO.
- Para o CentOS 6.x ou SUSE 11.x, execute os seguintes comandos:
python setup.py install --init-system sysvinit
- Para CentOS 7.x ou SUSE 12.x, execute os seguintes comandos:
python setup.py install --init-system systemd
Adicione o usuário syslog ao grupo adm durante a instalação. Se o usuário syslog existir, adicione-o ao grupo adm. Para alguns SO (como CentOS e SUSE), o usuário syslog pode não existir. Execute os seguintes comandos para criar o usuário syslog e adicioná-lo ao grupo adm:
useradd syslog
groupadd adm
usermod -g adm syslog
- Para o CentOS 6.x ou SUSE 11.x, execute os seguintes comandos:
- Ative o Cloud-Init para iniciar automaticamente na inicialização do sistema.
- Se o SO usar o SysVinit para gerenciar o início automático dos serviços, execute os seguintes comandos:
chkconfig --add cloud-init-local; chkconfig --add cloud-init; chkconfig --add cloud-config; chkconfig --add cloud-final
chkconfig cloud-init-local on; chkconfig cloud-init on; chkconfig cloud-config on; chkconfig cloud-final on
service cloud-init-local status; service cloud-init status; service cloud-config status; service cloud-final status
- Se o SO usar o Systemd para gerenciar o início automático dos serviços, execute os seguintes comandos:
systemctl enable cloud-init-local.service cloud-init.service cloud-config.service cloud-final.service
systemctl status cloud-init-local.service cloud-init.service cloud-config.service cloud-final.service
- Se o SO usar o SysVinit para gerenciar o início automático dos serviços, execute os seguintes comandos:
- Execute os seguintes comandos para verificar se o Cloud-Init foi instalado:
cloud-init init --local
Cloud-Init será instalado com sucesso se as seguintes informações forem exibidas:
cloud-init 0.7.6