Create a Custom Image

<p>This article describes how to create private custom image based on an existing ECS instance.</p> <p><strong>Prerequisites</strong></p> <p>1.The ECS instance must be stopped.</p> <p>2.Release the EIP of the ECS instance before creating an image.</p> <p>3.There are two network cards of an instance. Delete Network Card 1 before creating an image.</p> <p>4.For <strong>Linux system</strong>, the following cleanup command must be executed: rm -f /etc/udev/rules.d/70-persistent-* /var/lib/dhclient/* /var/lib/dhcp/*</p> <p><strong>Usage Guidelines</strong></p> <p>1.&nbsp;Before creating a custom image in a Linux system, we recommend that you unmount all file systems and data disks of the instance, and stop the instance before creating a custom image. Otherwise, the instance created using this image cannot be started.</p> <p>2.When you create a custom image for a Linux instance, data disk information cannot be included in /etc/fstab files. Otherwise, the instance created with the image cannot be started.</p> <p>3.Do not upgrade the kernel and operating system version at will.</p> <p>4.Do not adjust the instance system disk partition.</p> <p>5.Make sure the system disk has enough free space.</p> <p>6.Do not modify key system files, such as diretory of /etc/, /boot, /usr, /bin, /lib, and sbin.</p> <p>7.The default login username is root, and do not modify it.</p> <p><strong>Restriction</strong></p> <p>1.A user can create a maximum of five custom images.</p> <p>2.A snapshot is automatically created when you create an image. The snapshot takes up the snapshot quota. You can decide whether to delete.</p> <p><strong>Procedures</strong></p> <p>1.Log into the <a href="#https://yun.pingan.com/console/ecs/overview" target="_blank">ECS Console</a>.</p> <p>2.In the left navigation pane, click <strong>Instance</strong> to enter the <strong>Instance Management</strong> page.</p> <p>3.Select the target region. In the operation column of the target instance, click <strong>More &gt; Operations Management &gt; Create Image</strong>.</p> <p>4.On the page of <strong>Create Image </strong>that opens, enter the image name and description.</p> <p><strong>Note</strong>: The image name can be Chinese, English letters, digits, at sign (@), underscore (_), and hyphen (-). It should contain no more than 45 characters.</p> <p><strong>5.</strong>Click <strong>Confirm</strong>.</p> <p><strong>Result</strong></p> <p>A message of <strong>Operation succeeded</strong> appears at the bottom of the page after completion. In the left navigation pane, click <strong>Image and Snapshots &gt; Image</strong> to view the newly created custom image. The status of the custom image turns from <strong>Pending</strong> to <strong>Available.</strong> It represents that the custom image is created.</p>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products