- 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.
Criação de uma imagem privada usando o Packer
Packer é uma ferramenta de código aberto para criar imagens personalizadas. O comportamento do Packer é determinado por um modelo que é uma Linguagem de configuração do HashiCorp (HCL2) ou arquivo JSON e contém principalmente três tipos de componentes: construtor, provisionador e pós-processador. Esses componentes podem ser combinados de forma flexível no modelo para criar automaticamente arquivos de imagem para várias plataformas de nuvem em paralelo. O Packer simplifica a criação de imagens privadas usando código gerenciável. Desta forma, os usuários podem personalizar imagens de forma flexível e usar facilmente imagens idênticas entre diferentes plataformas de nuvem.
Esta seção descreve como usar o Packer para criar uma imagem privada de Ubuntu 22.04 Server 64-bit em um ECS do CentOS 8.2 64-bit.
Restrições
As imagens do ECS completo não podem ser usadas como uma fonte de imagem quando você usa o Packer para criar imagens privadas.
Procedimento
Instalar o Packer
- Faça logon no console de gerenciamento, crie um ECS (por exemplo, um ECS executando o CentOS 8.2 64-bit) e vincule um EIP ao ECS.
- Faça logon no ECS.
- Visite https://www.packer.io/downloads e baixe a versão mais recente do Packer que corresponde ao sistema operacional e à arquitetura do ECS.
- Execute o seguinte comando para instalar o Packer (packer_1.9.1_linux_amd64.zip como exemplo):
wget --no-check-certificate https://releases.hashicorp.com/packer/1.9.1/packer_1.9.1_linux_amd64.zip
- Certifique-se de que você vinculou um EIP ao ECS para que o ECS possa acessar a Internet.
- Se a mensagem "command not found" for exibida, a ferramenta wget não está instalada. Execute o comando yum install wget para instalá-lo.
- Execute o seguinte comando para descompactar o pacote de instalação do Packer:
- Execute o seguinte comando para mover o pacote de instalação do Packer para o diretório /usr/local/bin:
mv packer /usr/local/bin
O diretório /usr/local/bin foi adicionado às variáveis de ambiente. Você também pode mover o pacote de instalação do Packer para outro diretório que tenha sido adicionado às variáveis de ambiente.
- Execute o seguinte comando para verificar se o Packer foi instalado com sucesso:
- Se a saída do comando contiver o número da versão do Packer, o Packer foi instalado com sucesso.
- Se "command not found" for exibido, a instalação do Packer falhou. Verifique se o diretório em que o Packer reside foi adicionado às variáveis de ambiente.
Execute o comando env | grep PATH para verificar se a variável de ambiente PATH contém o diretório de instalação do Packer.
Se PATH não contiver o diretório de instalação do Packer, execute as seguintes operações para adicioná-lo ao PATH:
- Execute o seguinte comando para abrir o arquivo profile:
vim /etc/profile
- Pressione i para entrar no modo de edição e adicione export PATH=$PATH:/usr/local/bin ao final do arquivo.
Se o seu Packer reside em um diretório diferente de /usr/local/bin, substitua /usr/local/bin no comando pelo diretório real.
- Pressione Esc para sair do modo de edição. Digite :wq e pressione Enter para salvar as alterações e sair.
- Execute o seguinte comando para que a alteração tenha efeito:
- Execute o seguinte comando para abrir o arquivo profile:
Criar um modelo do Packer
Para criar uma imagem usando o Packer, você precisa de um modelo no formato .pkr.hcl. No modelo, você precisa configurar construtores, provisionadores e pós-processadores. Em um provisionador, você pode modificar a imagem de origem conforme necessário. Por exemplo, você pode modificar as configurações e especificar o software a ser pré-instalado. Neste exemplo, um pós-processador é usado para redirecionar o caminho de saída do manifesto. Se o modelo do Packer tiver vários construtores, você poderá localizar o ID da imagem criada de cada construtor com base na saída do manifesto. Para obter mais informações sobre construtores, provisionadores e pós-processadores, consulte a documentação oficial do Packer.
Esta seção usa um provisionador Shell como exemplo.
- Execute o seguinte comando para criar um arquivo hwcloud.pkr.hcl:
touch hwcloud.pkr.hcl
- Execute o seguinte comando para abrir o arquivo hwcloud.pkr.hcl:
vim hwcloud.pkr.hcl
- Pressione i para entrar no modo de edição e editar o modelo com base nos requisitos do site. Para obter detalhes do parâmetro, consulte Tabela 1. O conteúdo a seguir é apenas para referência.
packer { required_plugins { huaweicloud = { version = ">= 1.0.0" source = "github.com/huaweicloud/huaweicloud" } } } source "huaweicloud-ecs" "artifact" { region = "xxx" availability_zone = "xxx" flavor = "c6.large.2" source_image_name = "Ubuntu 22.04 server 64bit" image_name = "Ubuntu-2204-image-powered-by-Packer" image_tags = { builder = "packer" os = "Ubuntu-22.04-server" } ssh_username = "root" eip_type = "5_bgp" eip_bandwidth_size = 5 } build { sources = ["source.huaweicloud-ecs.artifact"] provisioner "shell" { inline = ["apt-get update -y"] } post-processor "manifest" { strip_path = true output = "packer-result.json" } }
Em Tabela 1, region, availability_zone, flavor e source_image_name são os atributos do ECS temporário que serão usados para criar a imagem privada.
Tabela 1 Parâmetros do modelo de Packer Parâmetro
Descrição
Obrigatório
region
Nome da região. Obtenha o nome da região em Regiões e pontos de extremidade.
Sim
flavor
Flavor do ECS temporário.
Sim
image_name
Nome da imagem privada a ser criada.
Sim
image_tags
Tags da imagem privada a ser criada.
Não
availability_zone
AZ. Obtenha o nome da região em Regiões e pontos de extremidade.
Não
source_image_name
Nome da imagem de origem. Esta é a imagem sobre a qual você pretende construir o sistema operacional base. Você pode obter o nome da imagem de origem na lista de imagens públicas no console do IMS.
NOTA:
Para especificar uma imagem de origem, você também pode usar source_image para especificar um ID de imagem ou usar source_image_filter para filtrar uma imagem de origem.
Não
ssh_username
Nome de usuário de logon SSH da imagem privada a ser criada.
Este parâmetro é obrigatório para logon SSH.
Não
eip_type
Tipo de linha do EIP.
Não
eip_bandwidth_size
Largura de banda do EIP (Mbit/s). Este parâmetro é obrigatório se o acesso à Internet for necessário.
NOTA:
eip_type e eip_bandwidth_size são configurados para criar um novo EIP. Para usar um EIP existente, configure reuse_ips e floating_ip.
Não
provisioner
Tipo de provisionador. Para obter detalhes, consulte Provisionadores de Packer.
Sim
post-processor
Tipo de pós-processador.
Não
Criar uma imagem privada usando o Packer
- Depois que o modelo do Packer for criado, execute o seguinte comando para importar AK/SK:
export HW_ACCESS_KEY=<AccessKey ID>
export HW_SECRET_KEY=<AccessKey Secret>
- Execute o seguinte comando para criar uma imagem:
huaweicloud-ecs.artifact: output will be in this color. ==> huaweicloud-ecs.artifact: Loading availability zones... huaweicloud-ecs.artifact: the specified availability_zone ap-southeast-1a is available ==> huaweicloud-ecs.artifact: Loading flavor: c6.large.2 ==> huaweicloud-ecs.artifact: Creating temporary keypair: packer_64abc4fd-xxxx-xxxx-xxxx-2139eee76819... ==> huaweicloud-ecs.artifact: Created temporary keypair: packer_64abc4fd-xxxx-xxxx-xxxx-2139eee76819 huaweicloud-ecs.artifact: Found Image ID: 19d9079e-xxxx-xxxx-xxxx-642116ad6557 ==> huaweicloud-ecs.artifact: Creating temporary VPC... huaweicloud-ecs.artifact: temporary VPC ID: 6e309adc-xxxx-xxxx-xxxx-4c3356b972c7 ==> huaweicloud-ecs.artifact: Creating temporary subnet... huaweicloud-ecs.artifact: temporary subnet ID: 66ab3bc3-xxxx-xxxx-xxxx-d8ca2d9378cc huaweicloud-ecs.artifact: the [default] security groups will be used ... ==> huaweicloud-ecs.artifact: Creating EIP ... huaweicloud-ecs.artifact: Created EIP: '0cd696e3-xxxx-xxxx-xxxx-220b8d277604' (159.xxx.xxx.180) ==> huaweicloud-ecs.artifact: Launching server in AZ ap-southeast-1a... huaweicloud-ecs.artifact: Waiting for server to become ready... huaweicloud-ecs.artifact: Server ID: 13f78f88-xxxx-xxxx-xxxx-7e8c27a9ad1f ==> huaweicloud-ecs.artifact: Using SSH communicator to connect: 159.138.141.180 ==> huaweicloud-ecs.artifact: Waiting for SSH to become available... ==> huaweicloud-ecs.artifact: Connected to SSH! ==> huaweicloud-ecs.artifact: Provisioning with shell script: /tmp/packer-shell2456008753 huaweicloud-ecs.artifact: Hit:1 http://repo.huaweicloud.com/ubuntu jammy InRelease ...... huaweicloud-ecs.artifact: Fetched 5,536 kB in 3s (2,006 kB/s) huaweicloud-ecs.artifact: Reading package lists... ==> huaweicloud-ecs.artifact: Stopping server: 13f78f88-xxxx-xxxx-xxxx-7e8c27a9ad1f ... huaweicloud-ecs.artifact: Waiting for server to stop: 13f78f88-xxxx-xxxx-xxxx-7e8c27a9ad1f ... ==> huaweicloud-ecs.artifact: Creating the system image: Ubuntu-2204-image-powered-by-Packer ... huaweicloud-ecs.artifact: Image: 62dc6e37-xxxx-xxxx-xxxx-a2a00a677f5b ==> huaweicloud-ecs.artifact: Terminating the source server: 13f78f88-xxxx-xxxx-xxxx-7e8c27a9ad1f... ==> huaweicloud-ecs.artifact: Deleted temporary public IP '0cd696e3-xxx-xxxx-xxxx-220b8d277604' (159.xxx.xxx.180) ==> huaweicloud-ecs.artifact: Deleting temporary subnet: 66ab3bc3-xxxx-xxxx-xxxx-d8ca2d9378cc... ==> huaweicloud-ecs.artifact: Deleting temporary VPC: 6e309adc-xxxx-xxxx-xxxx-4c3356b972c7... ==> huaweicloud-ecs.artifact: Deleting temporary keypair: packer_64abc4fd-xxxx-xxxx-xxxx-2139eee76819 ... ==> huaweicloud-ecs.artifact: Running post-processor: (type manifest) Build 'huaweicloud-ecs.artifact' finished after 5 minutes 48 seconds. ==> Wait completed after 5 minutes 48 seconds ==> Builds finished. The artifacts of successful builds are: --> huaweicloud-ecs.artifact: An image was created: 62dc6e37-xxxx-xxxx-xxxx-a2a00a677f5b
- Faça logon no console de gerenciamento e clique em Image Management Service em Compute.
- Clique na guia Private Images e visualize a imagem criada usando o Packer. Figura 1 mostra a imagem criada.
Links úteis
Guia oficial do Packer: https://www.packer.io/intro/getting-started/install.html