Got it

[Summary Case] Troubleshooting Image Creation Failures Highlighted

Latest reply: Jun 23, 2022 16:27:10 2371 38 9 0 0

Dear friends, numerous errors may occur when we create images. In this post, Olive will summarize the failure cases of creating images. These cases are excellent cases that Olive carefully selects for you.

During image creation, the VM cannot be started or the software fails to be installed. As a result, the image fails to be created. 

The key process for creating an image is as follows:

create image


The troubleshooting roadmap is as follows:

1. Check whether the cinder-volume service is normal.

For example:

The status of the cinder-volume-vrm001 component instance on a host is abnormal.

cps template-instance-list --service cinder cinder-volume-vrm001

cps template-instance-list

Reference cases:

Failed to Create an Image Due to Insufficient Resource Isolation Specifications

2. Whether the operation is standard. 

Reference cases Failed to Install the VMTools When Creating an Image Using the CentOS6.5 OS.

3. The image_cache space or permission is insufficient. 

Reference cases:

a. Failed to Create an Image Because the image_cache Space of the Host Where the cinder-volume Resides Is Insufficient

Users failed to create an image from an ECS on ManageOne Operation Portal. The call chain logs show the following error message for the cinder-volume-openstack service (cinder-volume-cascaded in the Region Type I scenario):

cinder-volume-cascaded


Click the error code. The message "Unexpected error while running command" is displayed. Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf qemu-img convert -O qcow2 *** /opt/HUAWEI/image_cache/*** Exit code: 1 Stdout: u'' Stderr: u'qemu-img: error while writing sector 5091327: No space left on device\n'.

error code

b. Image Files Created from a Windows VM Are Too Large

1. After some files are deleted from the VM, the disk space occupied is reduced slightly, but the size of the qcow2 image file created from the VM is still 106 GB, same as the one created before the file deletion.

2. After an image is created from the VM, check the image size. The VM data is 39.9 GB only, but the image size is 106 GB. The image-cache space is insufficient and an alarm is generated.

image-cache

c. Failed to Create an Image Because the image_cache Directory on the Host Where the cinder-volume Resides Is Inaccessible.

Users failed to create an image using an ECS or request an ECS on ManageOne Operation Portal. The call chain logs show the following error message for the cinder-volume-openstack service (cinder-volume-cascaded in the Region Type I scenario):

cinder-volume-cascaded

Click the error code. A dialog box is displayed, showing the message "Errno 13] Permission denied: '/opt/HUAWEI/image_cache/***"

/opt/HUAWEI/image_cache

4. Hard disks cannot be selected during OS installation. 

Reference cases:

Hard Disks Cannot Be Selected During Windows VM Image Installation

When users create a Windows VM image on Service OM, the VM can be provisioned successfully, but no disk is available during OS installation.

Service OM


5.  Check whether the command for creating an image is correct. 

qemu-kvm -enable-kvm -m 16384 -smp 4 -hda /mnt/sdb/image/windows-image/rawdisk.raw -cdrom /mnt/sdb/image/iso/win2008_ent_R2_64.iso -boot d -name videowin2k8 -vnc :40

This command can be used in UVPV2R1C00. In UVPV2R2C00, the qemu component is upgraded, and the command line has changed. The -machine pc-i440fx-1.5 parameter is added. The complete command is similar to the following:

qemu-kvm -enable-kvm -machine pc-i440fx-1.5 -m 16384 -smp 4 -hda /mnt/sdb/image/windows-image/rawdisk.raw -cdrom /mnt/sdb/image/iso/win2008_ent_R2_64.iso -boot d -name videowin2k8 -vnc :40


Reference case:

The Windows Login Page Is Stuck During Image Creation.


6. Check whether the configuration file is modified correctly.

a. Use UltraISO to open the image file and find the isolinux.cfg file in the /boot/x86_64/loader/ directory.

b. Save the isolinux.cfg file to the local PC. Then, delete lines 3, 4, and 5 in the file and change harddisk in the first line to install.

isolinux.cfg

isolinux.cfg

Reference cases:

SUSE Image Creation Stuck at "VM Booting from Hard Disk".

That's all, thanks!

The post is synchronized to: Troubleshooting about Cloud & Big Data

  • x
  • convention:

olive.zhao
Admin Created Feb 23, 2022 11:18:11

Hello, everyone!

Do you know what is image? This post will share with you.

What Is a VM Image?


View more
  • x
  • convention:

user_4463975
user_4463975 Created Jun 23, 2022 08:37:59 (0) (0)
 
user_4207987
Created Sep 19, 2021 18:07:35

I need also information
View more
  • x
  • convention:

olive.zhao
olive.zhao Created Sep 26, 2021 02:26:38 (0) (0)
Thanks!  
Caroline_Herrera
Created Sep 22, 2021 16:25:21

Good share
View more
  • x
  • convention:

olive.zhao
olive.zhao Created Sep 26, 2021 02:27:03 (0) (0)
Thanks!  
lisali
Created Sep 28, 2021 03:01:18

A good case about create image
View more
  • x
  • convention:

nochhie
nochhie Created Oct 3, 2021 07:44:13 (0) (0)
 
user_4237671
user_4237671 Created Oct 21, 2021 09:27:06 (0) (0)
 
zj5000
Created Sep 29, 2021 00:59:57

  • x
  • convention:

olive.zhao
olive.zhao Created Sep 29, 2021 01:01:17 (0) (0)
Thanks for you like my case!  
hpl_Panda
hpl_Panda Created Oct 3, 2021 08:09:00 (0) (0)
 
user_4411447
user_4411447 Created Jun 23, 2022 08:38:58 (0) (0)
 
Sokrin
Created Oct 3, 2021 07:45:35

Well note
View more
  • x
  • convention:

user_4411447
user_4411447 Created Jun 23, 2022 08:39:03 (0) (0)
 
hpl_Panda
Created Oct 3, 2021 08:09:08

Good
View more
  • x
  • convention:

olive.zhao
olive.zhao Created Oct 11, 2021 04:02:58 (0) (0)
Thanks!  
MahMush
Moderator Author Created Oct 9, 2021 09:10:45

very nice explanation of failure case
View more
  • x
  • convention:

olive.zhao
olive.zhao Created Oct 11, 2021 04:03:09 (0) (0)
 
Navin_kay
Navin_kay Created Jun 23, 2022 08:41:34 (0) (0)
 
Unicef
MVE Created Oct 9, 2021 10:56:51

Thanks for sharing
View more
  • x
  • convention:

Navin_kay
Navin_kay Created Jun 23, 2022 08:41:41 (0) (0)
note  
Unicef
MVE Created Oct 9, 2021 10:57:09

Thanks for sharing
View more
  • x
  • convention:

12
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.