- Descripción general del servicio
- Pasos iniciales
-
Guía del usuario
- Gestión de imágenes públicas
-
Crear una imagen privada
- Introducción
- Creación de una imagen de disco del sistema a partir de Windows ECS
- Creación de una imagen de disco del sistema desde un Linux ECS
- Creación de una imagen de disco del sistema Windows a partir de un archivo de imagen externo
- Creación de una imagen de disco de sistema Linux a partir de un archivo de imagen externo
- Creación de una imagen de disco del sistema BMS
- Creación de una imagen de disco de datos a partir de un ECS
- Creación de una imagen de disco de datos a partir de un archivo de imagen externo
- Creación de una imagen completa de ECS a partir de un ECS
- Creación de una imagen completa de ECS a partir de una copia de respaldo de CSBS
- Creación de una imagen completa de ECS a partir de una copia de respaldo de CBR
-
Creación de una imagen de disco de sistema Windows a partir de un archivo ISO
- Descripción general
- Integración del controlador de VMTools en un archivo ISO mediante UltraISO
- Registro de un archivo ISO como una imagen ISO
- Creación de un ECS de Windows a partir de una imagen ISO
- Instalación de un sistema operativo de Windows y el controlador de VMTools
- Configuración del ECS y creación de una imagen de disco del sistema Windows
- Creación de una imagen de disco de sistema Linux a partir de un archivo ISO
- Importación rápida de un archivo de imagen
-
Gestión de imágenes privadas
- Modificación de una imagen
- Exportación de lista de imágenes
- Comprobación de la capacidad del disco de una imagen
- Crear una ECS a partir de una imagen
- Eliminar imágenes
-
Compartir imágenes
- Descripción general
- Obtención de la ID del proyecto
- Compartir las imágenes especificadas
- Aceptar o rechazar imágenes compartidas
- Rechazar imágenes aceptadas
- Aceptar imágenes rechazadas
- Dejar de compartir imágenes
- Incorporación de suscriptores que pueden usar imágenes compartidas
- Eliminar destinatarios de imágenes que pueden usar imágenes compartidas
- Replicación de una imagen compartida
- Importación de una imagen
- Exportación de una imagen
- Optimización de una imagen privada de Windows
-
Optimización de una imagen privada de Linux
- Proceso de Optimización
- Consulta del tipo de virtualización de un ECS de Linux
- Desinstalación del controlador PV de un ECS de Linux
- Cambio del identificador de disco en el archivo de configuración de GRUB a UUID
- Cambio del identificador de disco en el archivo fstab a UUID
- Instalación de controladores KVM nativos
- Borrar registros del sistema
- Encriptación de imágenes
- Replicación de imágenes dentro de una región
- Replicación de imágenes entre regiones
- Etiquetado de una imagen
- Auditoría de operaciones clave
- Operaciones de Windows
- Operaciones Linux
- Gestión de permisos
- Historial de revisiones
-
Preguntas frecuentes
-
Consultoría de Imagen
- ¿Cómo selecciono una imagen?
- ¿Qué hago si no puedo encontrar una imagen deseada?
- ¿Qué hago si quiero configurar un entorno OpenVPN o PyTorch pero no hay imágenes públicas que contengan OpenVPN o PyTorch disponibles?
- ¿Cómo puedo aumentar la cuota de imagen?
- ¿Cuáles son las diferencias entre imágenes y copias de respaldo?
- ¿Puedo personalizar una imagen?
- ¿Cómo puedo migrar un ECS a una región diferente de otra cuenta?
- ¿Cómo puedo hacer una copia de respaldo del estado actual de un ECS para la restauración en el caso de una falla del sistema?
- ¿Cómo puedo aplicar una imagen privada a un ECS existente?
- ¿Puedo importar datos de una imagen de disco de datos a un disco de datos?
- ¿Puedo usar imágenes privadas de otros tenants?
-
Creación de imágenes
- Preguntas frecuentes sobre creación de imágenes
- Preguntas frecuentes sobre la imagen completa de ECS
- ¿Cómo puedo usar una copia de respaldo para crear un disco EVS o ECS?
- ¿Hay alguna diferencia entre la imagen creada a partir de una copia de respaldo de CSBS/CBR y la creada a partir de un ECS?
- ¿Por qué no puedo encontrar una imagen ISO cuando quiero usarla para crear un ECS o cambiar el sistema operativo de un ECS?
- ¿Cómo puedo crear una imagen completa de ECS usando un ECS que tiene un volumen extendido?
- ¿Por qué se requiere Sysprep para crear una imagen privada desde un ECS de Windows?
- ¿Qué hago si un ECS creado a partir de una imagen de Windows no se inicia después de ejecutar Sysprep?
- Compartir imágenes
-
Sistema operativo
- ¿Cómo selecciono un SO?
- ¿En qué se diferencia el BIOS de UEFI?
- ¿Cómo elimino conexiones de red redundantes de un ECS de Windows?
- ¿Qué hago si un ECS comienza lentamente?
- ¿Qué hago si no se puede iniciar el complemento de restablecimiento de contraseña con un solo clic?
- ¿Por qué no puedo encontrar mi imagen privada cuando quiero usarla para crear un ECS o cambiar el sistema operativo de un ECS?
-
Importación de imágenes
- ¿Puedo usar imágenes en formatos distintos a los especificados?
- ¿Cuáles son los impactos si no preconfigura un ECS utilizado para crear una imagen privada?
- ¿Cómo puedo importar un archivo OVF u OVA a la plataforma en la nube?
- ¿Qué hago si configuré un sistema operativo incorrecto o un tamaño de disco del sistema durante el registro de imágenes privadas usando un archivo de imagen?
- ¿Qué hago si el tamaño del disco del sistema en un archivo de imagen VHD supera el que he especificado en la consola de administración cuando uso este archivo para registrar una imagen privada?
- ¿Cómo puedo importar imágenes privadas de Huawei Cloud existentes a una región especificada?
-
Exportación de imágenes
- ¿Puedo descargar mis imágenes privadas a un PC local?
- ¿Puedo usar la imagen de disco del sistema de un ECS en un BMS después de exportarlo desde la plataforma en la nube?
- ¿Por qué el tamaño de la imagen en un bucket de OBS es diferente del que se muestra en IMS?
- ¿Puedo descargar una imagen pública a mi PC local?
- ¿Cuáles son las diferencias entre la importación/exportación y la importación/exportación rápida?
- ¿Qué hago si la opción de exportación no está disponible para mi imagen?
-
Optimización de imágenes
- ¿Por qué necesito instalar y actualizar VMTools para Windows?
- ¿Qué hará el sistema con un archivo de imagen cuando uso el archivo para registrar una imagen privada?
- ¿Cómo configuro un ECS, BMS, o archivo de imagen antes de usarlo para crear una imagen?
- ¿Qué hago si un archivo de imagen de Windows no está preconfigurado cuando lo uso para registrar una imagen privada?
- ¿Qué hago si un archivo de imagen de Linux no está preconfigurado cuando lo uso para registrar una imagen privada?
- ¿Cómo puedo optimizar una imagen?
- ¿Cómo activo la cola múltiple de NIC para una imagen?
- ¿Cómo configuro un ECS para adquirir dinámicamente direcciones IPv6?
- ¿Cómo puedo hacer que una imagen de disco de sistema admita la creación rápida de ECS?
- ¿Cómo instalo los controladores nativos de Xen y KVM?
- Replicación de imágenes
- Eliminación de imágenes
- Encriptación de imágenes
-
Cuentas y permisos
- ¿Cómo creo una agencia de IAM?
- ¿Qué hago si no se pueden encontrar imágenes privadas en la página Enterprise Project Management Service después de activar EPS?
- ¿Qué hago si no puedo crear una imagen desde una copia de seguridad CSBS o BMS usando una subcuenta con el Allow_all Permission después de que EPS esté habilitado?
- Cloud-Init
-
Creación de ECS
- ¿Puedo cambiar la imagen de un ECS comprado?
- ¿Puedo usar una imagen privada para crear ECS con diferentes especificaciones de hardware del ECS utilizado para crear la imagen privada?
- ¿Puedo especificar el tamaño del disco del sistema al crear un ECS usando una imagen?
- ¿Qué hago si no se encuentra ninguna partición durante el inicio de un ECS creado a partir de una imagen privada importada?
- ¿Qué hago si no se pueden encontrar los discos de un ECS creado a partir de una imagen de CentOS?
- ¿Qué hago si un ECS creado a partir de una imagen de Windows no se puede iniciar cuando he habilitado la configuración automática durante el registro de imágenes?
- ¿Qué hago si se produce una excepción al iniciar un ECS creado a partir de una imagen usando el modo de arranque UEFI?
- Facturación
- Historial de cambios
-
Consultoría de Imagen
-
Referencia de la API
- Antes de empezar
- Descripción de las API
- Llamada a APIs
- Tareas iniciales
-
Las API de IMS
-
Imagen
- Consulta de imágenes
- Actualización de información de imagen
- Creación de una imagen
- Importación rápida de un archivo de imagen
- Creación de una imagen de disco de datos mediante un archivo de imagen externo
- Creación de una imagen completa de ECS
- Registro de una imagen
- Exportación de una imagen
- Consulta de sistemas operativos de imágenes compatibles
- Etiquetado de imagen
- Compartir imágenes
- Replicación de imágenes
- Cuota de imagen
- Trabajos de Imagen
-
Imagen
-
Las API de Native OpenStack
-
Imagen (Native OpenStack APIs)
- Consulta de imágenes (API de OpenStack nativo)
- Consulta de detalles de imagen (API de OpenStack nativo)
- Actualización de la información de imagen (API de OpenStack nativo)
- Carga de una imagen (API de OpenStack nativo)
- Eliminación de una imagen (API de OpenStack nativo)
- Creación de metadatos de imágenes (API de OpenStack nativo)
- Eliminación de una imagen (API de OpenStack nativo v1.1: abandonada y no recomendada)
- Consulta de metadatos de imágenes (API de OpenStack nativo v1: abandonada y no recomendada)
- Consulta de detalles de imagen (API de OpenStack nativo v1.1 - abandonada y no recomendada)
- Etiquetado de imágenes (Native OpenStack APIs)
-
Esquema de imagen (Native OpenStack APIs)
- Consulta de un esquema de imagen (API de OpenStack nativo)
- Consulta de un esquema de lista de imágenes (API de OpenStack nativo)
- Consulta de un esquema para un miembro de uso compartido de imágenes (API de OpenStack nativo)
- Consulta de un esquema para una lista de miembros de compartición de imágenes (API de OpenStack nativo)
-
Uso compartido de imágenes (Native OpenStack APIs)
- Adición de un miembro para compartir imágenes (API de OpenStack nativo)
- Actualización del estado de uso compartido de imágenes (API de OpenStack nativo)
- Consulta de detalles de miembro de compartición de imagen (API de OpenStack nativo)
- Consulta de miembros de compartición de imagen (API de OpenStack nativo)
- Eliminación de un miembro de compartición de imágenes (API de OpenStack nativo)
- Consulta de versión de la API (API de Native OpenStack)
-
Imagen (Native OpenStack APIs)
- Ejemplos
- Políticas de permisos y acciones admitidas
- Parámetros comunes
- Códigos de estado
- Códigos de error
- Historial de cambios
- Actualmente, el contenido no está disponible en el idioma seleccionado. Sugerimos consultar la versión en inglés.
- What's New
- Function Overview
-
Best Practices
- Overview
- Creating a Windows Image Using VirtualBox and an ISO File
- Creating a Linux Image Using VirtualBox and an ISO File
- Cleaning Up the Disk Space of a Windows ECS
- Converting the Image Format
- Creating a Private Image Using Packer
- Configuring an ISO File as a Local Image Source
- Migrating ECSs Across Accounts and Regions
- Migrating Service Data Across Accounts (Data Disks)
- 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.
Instalación de Cloud-Init
Escenarios
Para asegurarse de que puede usar la función de inyección de datos de usuario para inyectar información personalizada inicial en los ECS creados a partir de una imagen privada (como configurar la ECS contraseña de inicio de sesión), instale Cloud-Init en el ECS utilizado para crear la imagen.
- Es necesario descargar Cloud-Init desde su sitio web oficial. Por lo tanto, debe vincular una EIP a la ECS.
- Si Cloud-Init no está instalado, no puede configurar una ECS. Como resultado, solo puede usar la contraseña del archivo de imagen para iniciar sesión en los ECSs creados.
- De forma predeterminada, los ECS creados a partir de una imagen pública tienen Cloud-Init instalado. No es necesario instalar o configurar Cloud-Init en dichos ECS.
- Para los ECS creados con un archivo de imagen externo, instale y configure Cloud-Init realizando las operaciones de esta sección. Para ver cómo configurar Cloud-Init, consulte Configuración de Cloud-Init.
Prerrequisitos
- Una EIP ha estado vinculada a la ECS.
- Usted ha iniciado sesión en el ECS.
- El modo de obtención de la dirección IP ECS es DHCP.
Procedimiento
- Revise si se instaló Cloud-Init.
Para más detalles, consulte Comprobar si se ha instalado Cloud-Init.
- Instale Cloud-Init.
Puede instalar Cloud-Init de cualquiera de las siguientes maneras: (Recomendado) Instalar Cloud-Init usando el paquete de instalación oficial, Instalar Cloud-Init usando el paquete oficial de código fuente y pip, y Instalar Cloud-Init usando el código fuente oficial de GitHub.
Comprobar si se ha instalado Cloud-Init
Realice las operaciones proporcionadas aquí para comprobar si se ha instalado Cloud-Init.
Los métodos para comprobar si Cloud-Init está instalado varían en función de los sistemas operativos. Tome CentOS 6 como ejemplo. Ejecute el siguiente comando para comprobar si Cloud-Init está instalado:
rpm -qa |grep cloud-init
Si se muestra información similar a la siguiente, se ha instalado Cloud-Init:
cloud-init-0.7.5-10.el6.centos.2.x86_64
- Compruebe si desea utilizar el certificado en el ECS sistema operativo. Si el certificado ya no se utiliza, elimínelo.
- Si el certificado se almacena en un directorio de usuario root, por ejemplo, /$path/$to/$root/.ssh/autorized_keys, ejecute los siguientes comandos:
cd /root/.ssh
rm authorized_keys
- Si el certificado no está almacenado en un directorio de usuario root, por ejemplo, /$path/$to/$none-root/.ssh/autorized_keys, ejecute los siguientes comandos:
cd /home/centos/.ssh
rm authorized_keys
- Si el certificado se almacena en un directorio de usuario root, por ejemplo, /$path/$to/$root/.ssh/autorized_keys, ejecute los siguientes comandos:
- Ejecute el siguiente comando para eliminar la caché generada por Cloud-Init y asegúrese de que la ECS creada a partir de la imagen privada se puede iniciar con el certificado:
No reinicie el ECS después de realizar la configuración. De lo contrario, necesita configurarlo de nuevo.
(Recomendado) Instalar Cloud-Init usando el paquete de instalación oficial
El método de instalación de Cloud-Init en un ECS varía dependiendo del sistema operativo. Realice las operaciones de instalación como usuario root.
A continuación se describe cómo instalar Cloud-Init en un ECS que ejecute SUSE Linux, CentOS, Fedora, Debian y Ubuntu. Para otros tipos de sistemas operativos, instale el tipo requerido de Cloud-Init. Por ejemplo, necesita instalar coreos-cloudinit en ECSs que ejecutan CoreOS.
- SUSE Linux
Rutas de acceso para obtener el paquete de instalación de Cloud-Init para SUSE Linux
https://ftp5.gwdg.de/pub/opensuse/repositories/Cloud:/Tools/
http://download.opensuse.org/repositories/Cloud:/Tools/
NOTA:
Seleccione el paquete de instalación de repositorio necesario en las rutas proporcionadas.
Tome SUSE Enterprise Linux Server 12 como ejemplo. Realice los siguientes pasos para instalar Cloud-Init:
- Inicie sesión en el ECS usado para crear una imagen privada de Linux.
- Ejecute el siguiente comando para instalar el origen de instalación de red para SUSE Enterprise Linux Server 12:
zypper ar https://ftp5.gwdg.de/pub/opensuse/repositories/Cloud:/Tools/SLE_12_SP3/Cloud:Tools.repo
- Ejecute el siguiente comando para actualizar el origen de instalación de red:
- Ejecute el siguiente comando para instalar Cloud-Init:
- Ejecute los siguientes comandos para habilitar Cloud-Init para que se inicie automáticamente al iniciar el 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 y 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
ATENCIóN:
Para SUSE y openSUSE, realice los siguientes pasos para deshabilitar el cambio dinámico del ECS nombre:
- Ejecute el siguiente comando para abrir el archivo dhcp usando el editor vi:
vi etc/sysconfig/network/dhcp
- Cambie el valor de DHCLIENT_SET_HOSTNAME en el archivo dhcp a no.
- SUSE 11
- CentOS
Tabla 1 enumera las rutas de instalación de Cloud-Init para CentOS. Seleccione el paquete de instalación requerido en las siguientes direcciones.
Tabla 1 Direcciones del paquete de instalación de Cloud-Init Tipo de sistema operativo
Versión
Cómo obtener
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/epel/7/x86_64/Packages/e/
Ejecute los siguientes comandos para instalar Cloud-Init:
yum install Cloud-Init installation package address/epel-release-x-y.noarch.rpm
yum install cloud-init
NOTA:
La dirección del paquete de instalación de Cloud-Init indica la dirección del paquete de instalación de Cloud-Init epel-release, y x-y indica la versión de Cloud-Init epel-release requerida por el sistema operativo actual. Reemplazarlos con los valores reales según Tabla 1.
- Tome CentOS 6 de 64 bits como ejemplo. Si la versión es 6.8, el comando es el siguiente:
yum install https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm
- Tome CentOS 7 de 64 bits como ejemplo. Si la versión es 7.14, el comando es el siguiente:
yum install https://archives.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm
- Tome CentOS 6 de 64 bits como ejemplo. Si la versión es 6.8, el comando es el siguiente:
- Fedora
Antes de instalar Cloud-Init, asegúrese de que la dirección de origen de instalación de red se ha configurado para el sistema operativo comprobando si el archivo /etc/yum.repo.d/fedora.repo contiene la dirección de origen de instalación del paquete de software. Si el archivo no contiene la dirección, configure la dirección siguiendo las instrucciones en el sitio web oficial de Fedora.
Ejecute el siguiente comando para instalar Cloud-Init:
yum install cloud-init
- Debian y Ubuntu
Antes de instalar Cloud-Init, asegúrese de que la dirección de origen de instalación de red se ha configurado para el sistema operativo comprobando si el archivo /etc/apt/sources.list contiene la dirección de origen de instalación del paquete de software. Si el archivo no contiene la dirección, configure la dirección siguiendo las instrucciones en el sitio web oficial de Debian o Ubuntu.
Ejecute los siguientes comandos para instalar Cloud-Init:
apt-get update
apt-get install cloud-init
Instalar Cloud-Init usando el paquete oficial de código fuente y pip
Las siguientes operaciones usan Cloud-Init 0.7.9 como ejemplo para describir cómo instalar Cloud-Init.
- Descargue el paquete de código fuente cloud-init-0.7.9.tar.gz (se recomienda la versión 0.7.9) y súbalo al directorio /home/ de la ECS.
Descargue cloud-init-0.7.9.tar.gz desde la siguiente ruta:
https://launchpad.net/cloud-init/trunk/0.7.9/+download/cloud-init-0.7.9.tar.gz
- Cree un archivo pip.conf en el directorio ~/.pip/ y edite el siguiente contenido:
NOTA:
Si el directorio ~/.pip/ no existe, ejecute el comando mkdir ~/.pip para crearlo.
[global] index-url = https://<$mirror>/simple/ trusted-host = <$mirror>
NOTA:
Reemplace <$mirror> con un origen PyPI de red pública.
Fuente de PyPI de la red pública https://pypi.python.org/
- Ejecute el siguiente comando para instalar el paquete de código fuente de Cloud-Init descargado (seleccione --upgrade según sea necesario durante la instalación):
pip install [--upgrade] /home/cloud-init-0.7.9.tar.gz
- Ejecute el comando cloud-init -v. Cloud-Init se instala correctamente si se muestra la siguiente información:
cloud-init 0.7.9
- Habilite Cloud-Init para que se inicie automáticamente al iniciar el sistema.
- Si el sistema operativo utiliza SysVinit para gestionar el inicio automático de los servicios, ejecute los siguientes 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
- Si el sistema operativo utiliza Systemd para gestionar el inicio automático de servicios, ejecute los siguientes 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
- Si el sistema operativo utiliza SysVinit para gestionar el inicio automático de los servicios, ejecute los siguientes comandos:
Si instalas Cloud-Init usando el paquete de código fuente oficial y pip, preste atención a lo siguiente:
- Agregar usuario de syslog al grupo adm durante la instalación. Si existe usuario de syslog, agréguelo al grupo adm. Para algunos sistemas operativos (como CentOS y SUSE), es posible que el usuario de syslog no exista. Ejecute los siguientes comandos para crear usuario de syslog y agregarlo al grupo adm:
useradd syslog
groupadd adm
usermod -g adm syslog
- Cambie el valor de distro en system_info en el archivo /etc/cloud/cloud.cfg basado en la versión de lanzamiento del sistema operativo, como distro: ubuntu, distro: sles, distro: debian, and distro: fedora.
Instalar Cloud-Init usando el código fuente oficial de GitHub
Puede obtener el código fuente de Cloud-Init de GitHub en https://github.com/canonical/cloud-init/
- Ejecute los siguientes comandos para descargar el paquete de código fuente y copiarlo a la carpeta /tmp/CLOUD-INIT :
NOTA:
Cloud-Init 0.7.6: https://github.com/canonical/cloud-init/archive/refs/tags/0.7.6.zip (en inglés)
Cloud-Init 0.7.9: https://github.com/canonical/cloud-init/archive/refs/tags/0.7.9.zip
Todas las versiones: 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
- Ejecute el siguiente comando para descomprimir el paquete:
- Ejecute el siguiente comando para ingresar a la carpeta cloud-init-0.7.6:
cd cloud-init-0.7.6
- Instale Cloud-Init. Los comandos varían según el tipo de sistema operativo.
- Para CentOS 6.x o SUSE 11.x, ejecute los siguientes comandos:
python setup.py install --init-system sysvinit
- Para CentOS 7.x o SUSE 12.x, ejecute los siguientes comandos:
python setup.py install --init-system systemd
NOTA:
Agregar usuario de syslog al grupo adm durante la instalación. Si existe usuario de syslog, agréguelo al grupo adm. Para algunos sistemas operativos (como CentOS y SUSE), es posible que el usuario de syslog no exista. Ejecute los siguientes comandos para crear usuario de syslog y agregarlo al grupo adm:
useradd syslog
groupadd adm
usermod -g adm syslog
- Para CentOS 6.x o SUSE 11.x, ejecute los siguientes comandos:
- Habilite Cloud-Init para que se inicie automáticamente al iniciar el sistema.
- Si el sistema operativo utiliza SysVinit para gestionar el inicio automático de los servicios, ejecute los siguientes 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
- Si el sistema operativo utiliza Systemd para gestionar el inicio automático de servicios, ejecute los siguientes 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
- Si el sistema operativo utiliza SysVinit para gestionar el inicio automático de los servicios, ejecute los siguientes comandos:
- Ejecute los siguientes comandos para comprobar si se ha instalado Cloud-Init:
cloud-init init --local
Cloud-Init se instala correctamente si se muestra la siguiente información:
cloud-init 0.7.6